/* ==========================================================================
   IPAM Proyectos — estilos (tema claro, compacto)
   Paleta tomada del logo: verde #189898, teal #189898, teal profundo #085050.
   Todo se controla con las variables de :root.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --tint: #f3f9f6;
  --tint-2: #e8f4ef;
  --ink: #0c2a2b;
  --muted: #4a6462;
  --line: #dbe9e4;

  --deep: #085050;
  --teal: #189898;
  --teal-ink: #0d7474;
  --green: #189898;
  --green-ink: #0d7474;
  --green-l: #dff2f1;
  --amber: #f5b83d;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1140px;
  --gutter: clamp(18px, 4vw, 32px);
  --island-h: 64px;
  --island-top: 12px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(8, 80, 80, .06), 0 4px 14px rgba(8, 80, 80, .06);
  --shadow: 0 18px 44px -18px rgba(8, 80, 80, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--island-h) + var(--island-top) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: #082d2d; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--deep); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--green-l); color: var(--green-ink); font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); line-height: 1.7; }
.hl { background: linear-gradient(transparent 62%, rgba(128, 195, 64, .45) 62%); padding: 0 .1em; }

.section { padding: clamp(44px, 6vw, 80px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin-top: 12px; }
.section-head p { margin-top: 10px; color: var(--muted); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 26px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: .9rem; line-height: 1; transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease; }
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--deep); color: #fff; box-shadow: 0 10px 24px -10px rgba(8, 80, 80, .7); }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #0a3030; box-shadow: 0 10px 24px -10px rgba(95, 159, 42, .8); }
.btn-green:hover { background: #92d151; transform: translateY(-2px); }
.btn-ghost { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn-ghost:hover { background: var(--deep); color: #fff; }
.btn-white { background: #fff; color: var(--deep); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35); }

/* ---------- Header: isla flotante de cristal ---------- */
.site-header { position: sticky; top: 0; z-index: 80; height: 0; }
.island { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; width: min(100% - 24px, 1200px); height: var(--island-h); top: var(--island-top); margin: 0 auto; padding: 0 12px 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 14px 38px -16px rgba(8, 80, 80, .4); transition: border-color .35s ease, box-shadow .35s ease; animation: islandIn .85s var(--ease) backwards; }
/* el cristal va en un pseudo-elemento: un backdrop-filter en el propio .island rompería el menú móvil (position: fixed) */
.island::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, .84); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); transition: background .35s ease; }
@keyframes islandIn { from { opacity: 0; transform: translateY(-26px) scale(.97); } to { opacity: 1; transform: none; } }
html.intro-active .island { animation-delay: 2.5s; }

.brand { position: relative; z-index: 96; display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 44px; height: 44px; flex: none; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; letter-spacing: .14em; color: var(--deep); transition: color .3s ease; }
.brand-text small { font-family: var(--font-head); font-size: .56rem; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--teal-ink); margin-top: 5px; transition: color .3s ease; }

.nav { position: relative; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav ul > li > a { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--muted); transition: color .25s ease; }
.nav ul > li > a:hover, .nav ul > li > a[aria-current] { color: var(--deep); }
.nav-pill { position: absolute; left: 0; top: 50%; z-index: 0; height: 40px; width: 0; border-radius: 999px; background: var(--tint-2); opacity: 0; pointer-events: none; transform: translate(0, -50%); transition: transform .4s var(--ease), width .4s var(--ease), opacity .25s ease, background .3s ease; }
.nav-pill.is-ready { opacity: 1; }
.has-menu > a svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.has-menu:hover > a svg, .has-menu:focus-within > a svg { transform: rotate(180deg); }

/* Menú desplegable de servicios */
.mega { position: absolute; top: calc(100% + 18px); left: 50%; width: min(700px, 92vw); padding: 12px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(8, 80, 80, .45);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .25s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* puente para que no se cierre al mover el mouse */
.has-menu:hover > .mega, .has-menu:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; transition: background .2s ease; }
.mega-item:hover, .mega-item:focus-visible { background: var(--tint); }
.mega-item img { flex: none; width: 76px; height: 50px; border-radius: 10px; object-fit: cover; }
.mega-item b { display: block; font-family: var(--font-head); font-size: .86rem; line-height: 1.25; color: var(--deep); }
.mega-item small { display: block; margin-top: 3px; font-size: .76rem; line-height: 1.35; color: var(--muted); }
.mega-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 11px; border-radius: 14px; background: var(--tint-2); font-weight: 700; font-size: .86rem; color: var(--teal-ink); transition: background .2s ease; }
.mega-all:hover { background: var(--green-l); }
.mega-all svg { width: 16px; height: 16px; }

.nav-phone { display: none; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); place-items: center; color: var(--deep); transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease); }
.nav-phone svg { width: 19px; height: 19px; }
.nav-phone:hover { background: var(--deep); color: #fff; border-color: var(--deep); transform: rotate(-12deg); }
@media (min-width: 1100px) { .nav-phone { display: grid; } }
.nav-cta { min-height: 44px; padding: 11px 22px; font-size: .86rem; }
.nav a.btn-primary { color: #fff; }
.nav-toggle { display: none; position: relative; z-index: 96; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--deep); transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s, background .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Barra de progreso de lectura (borde inferior de la isla) */
.scroll-progress { position: absolute; left: 30px; right: 30px; bottom: 4px; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--green), var(--teal)); }

/* Sobre el banner (solo home, arriba del todo): isla transparente con letras blancas */
html.js .site-header.on-hero:not(.is-solid) .island { border-color: rgba(255, 255, 255, .28); box-shadow: 0 14px 40px -20px rgba(0, 30, 30, .6); }
html.js .site-header.on-hero:not(.is-solid) .island::before { background: rgba(255, 255, 255, .12); }
html.js .site-header.on-hero:not(.is-solid) .brand-text strong { color: #fff; }
html.js .site-header.on-hero:not(.is-solid) .brand-text small { color: #cfeea0; }
html.js .site-header.on-hero:not(.is-solid) .nav ul > li > a { color: rgba(255, 255, 255, .9); }
html.js .site-header.on-hero:not(.is-solid) .nav ul > li > a:hover, html.js .site-header.on-hero:not(.is-solid) .nav ul > li > a[aria-current] { color: #fff; }
html.js .site-header.on-hero:not(.is-solid) .nav-pill { background: rgba(255, 255, 255, .2); }
html.js .site-header.on-hero:not(.is-solid) .nav-phone { border-color: rgba(255, 255, 255, .5); color: #fff; }
html.js .site-header.on-hero:not(.is-solid) .nav-phone:hover { background: #fff; color: var(--deep); }
html.js .site-header.on-hero:not(.is-solid) .nav-toggle { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); }
html.js .site-header.on-hero:not(.is-solid) .nav-toggle span { background: #fff; }
html.js .site-header.on-hero:not(.is-solid) .nav-cta { background: var(--green); color: #0a3030; box-shadow: 0 10px 24px -10px rgba(95, 159, 42, .8); }
html.js .site-header.on-hero:not(.is-solid) .nav-cta:hover { background: #92d151; }
.site-header.is-solid .island { box-shadow: 0 16px 40px -16px rgba(8, 80, 80, .5); }

@media (max-width: 1060px) { .nav ul > li > a { padding: 10px 11px; font-size: .88rem; } }
@media (max-width: 940px) {
  .island { width: calc(100% - 20px); padding: 0 8px 0 12px; border-radius: 24px; }
  .nav-toggle { display: block; }
  .nav-cta, .nav-pill { display: none; }
  .nav { position: fixed; inset: 0; z-index: 90; padding: calc(var(--island-h) + var(--island-top) * 2 + 18px) var(--gutter) 36px; overflow-y: auto; background: #fff; display: block; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav ul > li > a { padding: 14px 12px; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--deep); border-radius: 12px; }
  html.js .site-header.on-hero:not(.is-solid) .nav ul > li > a { color: var(--deep); }
  .has-menu > a svg { display: none; }
  .mega { position: static; width: auto; padding: 0 0 6px 10px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; display: block; transition: none; }
  .has-menu:hover > .mega, .has-menu:focus-within > .mega { transform: none; }
  .mega::before, .mega-all, .mega-item img, .mega-item small { display: none; }
  .mega-item { padding: 9px 12px; border-radius: 10px; }
  .mega-item b { font-weight: 600; font-size: .98rem; color: var(--muted); }
  .nav .nav-cta-mobile { margin-top: 18px; }
  .nav .nav-cta-mobile a { display: flex; justify-content: center; font-size: 1rem; color: #fff; padding: 16px 24px; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 941px) { .nav .nav-cta-mobile { display: none; } }
@media (prefers-reduced-motion: reduce) { .island { animation: none; } }

/* ---------- Hero: carrusel a pantalla completa ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: #0b4a4a; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; isolation: isolate; display: flex; align-items: center; min-height: max(640px, 100svh); padding: clamp(112px, 16vh, 152px) 0 clamp(124px, 19vh, 176px); opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0b4a4a; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.slide.is-active .hero-bg img { animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 62, 62, .62) 0%, rgba(8, 80, 80, .48) 36%, rgba(8, 80, 80, .16) 68%, rgba(8, 80, 80, .03) 100%), linear-gradient(0deg, rgba(5, 50, 50, .32), transparent 40%); }
.hero-copy { max-width: 720px; }
.slide .hero-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); }
.slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.slide.is-active .hero-copy > :nth-child(1) { transition-delay: .15s; }
.slide.is-active .hero-copy > :nth-child(2) { transition-delay: .27s; }
.slide.is-active .hero-copy > :nth-child(3) { transition-delay: .39s; }
.slide.is-active .hero-copy > :nth-child(4) { transition-delay: .5s; }
.slide.is-active .hero-copy > :nth-child(5) { transition-delay: .6s; }
.hero .eyebrow { background: rgba(255, 255, 255, .14); color: #e6f6cf; border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .eyebrow::before { background: var(--green); }
.hero-title { display: block; color: #fff; margin: 18px 0 16px; font-size: clamp(2.05rem, 4.6vw, 3.45rem); letter-spacing: -.03em; text-shadow: 0 2px 24px rgba(0, 40, 40, .35); }
.hero .hl { background: linear-gradient(transparent 64%, rgba(128, 195, 64, .8) 64%); }
.hero-lead { color: rgba(255, 255, 255, .92); max-width: 50ch; font-size: clamp(1.02rem, 1.7vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { min-height: 54px; padding: 15px 30px; font-size: .98rem; }
.btn-outline-light { border-color: rgba(255, 255, 255, .8); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: #fff; color: var(--deep); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags span { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-family: var(--font-head); font-size: .74rem; font-weight: 700; color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Barra inferior: datos + controles */
.hero-bar { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vh, 36px); z-index: 5; pointer-events: none; }
.hero-bar-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.hero-bar-inner > * { pointer-events: auto; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px clamp(24px, 4vw, 48px); padding: 14px 24px; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #fff; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: .78rem; color: rgba(255, 255, 255, .86); line-height: 1.25; max-width: 15ch; }
.hero-controls { display: none; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.js .hero-controls { display: flex; }
.car-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s ease, transform .2s var(--ease); }
.car-btn:hover { background: rgba(255, 255, 255, .22); }
.car-btn:active { transform: scale(.92); }
.car-btn svg { width: 20px; height: 20px; }
.car-btn:focus-visible, .car-dot:focus-visible { outline-color: #fff; }
.car-toggle .i-play { display: none; }
.car-toggle[aria-pressed="true"] .i-play { display: block; }
.car-toggle[aria-pressed="true"] .i-pause { display: none; }
.car-dots { display: flex; align-items: center; }
.car-dot { display: grid; place-items: center; width: 22px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .4s var(--ease); }
.car-dot.is-active { width: 48px; }
.car-dot span { position: relative; display: block; width: 10px; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .5); transition: width .4s var(--ease), background .3s ease; }
.car-dot:hover span { background: rgba(255, 255, 255, .85); }
.car-dot.is-active span { width: 36px; background: rgba(255, 255, 255, .35); }
.car-dot.is-active span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(1); }
.hero.is-playing .car-dot.is-active span::after { transform: scaleX(0); animation: dotfill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-playing.is-hover .car-dot.is-active span::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }

@media (max-width: 700px) {
  .slide { padding-bottom: 128px; }
  .slide::before { background: linear-gradient(180deg, rgba(5, 62, 62, .5) 0%, rgba(8, 80, 80, .32) 52%, rgba(5, 50, 50, .55) 100%); }
  .hero-bg img { object-position: 50% 50%; }
  .hero-stats { display: none; }
  .hero-bar-inner { justify-content: center; }
  .hero-tags { display: none; }
}

/* ---------- Clientes ---------- */
.clients { padding: 22px 0; border-block: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 28px; }
.clients-title { flex: none; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); max-width: 180px; line-height: 1.4; }
.marquee { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(32px, 5vw, 56px); padding-right: clamp(32px, 5vw, 56px); }
.client-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(.95rem, 1.6vw, 1.2rem); letter-spacing: .02em; white-space: nowrap; color: #9bb3ae; transition: color .25s ease; }
.client-name:hover { color: var(--deep); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .clients { flex-direction: column; align-items: stretch; gap: 12px; } .clients-title { padding-left: var(--gutter); max-width: none; } }

/* ---------- Servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.svc-card { grid-column: span 2; position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
.svc-card:nth-child(n+4) { grid-column: span 3; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #b7dccf; }
.svc-img { aspect-ratio: 400 / 190; overflow: hidden; background: var(--tint-2); }
.svc-card:nth-child(n+4) .svc-img { aspect-ratio: 400 / 150; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform .6s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.svc-body h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.svc-body h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-body p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chips li { padding: 4px 10px; border-radius: 999px; background: var(--tint-2); color: var(--deep); font-size: .72rem; font-weight: 700; }
.more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; color: var(--teal-ink); }
.more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.svc-card:hover .more svg { transform: translateX(4px); }
@media (max-width: 900px) { .svc-card, .svc-card:nth-child(n+4) { grid-column: span 3; } .svc-card:nth-child(5) { grid-column: span 6; } .svc-card:nth-child(n) .svc-img { aspect-ratio: 400 / 170; } }
@media (max-width: 600px) {
  .svc-grid { gap: 12px; }
  .svc-card, .svc-card:nth-child(n+4), .svc-card:nth-child(5) { grid-column: span 6; flex-direction: row; align-items: stretch; }
  .svc-card:nth-child(n) .svc-img { flex: none; width: 118px; aspect-ratio: auto; min-height: 118px; }
  .svc-img img { object-position: 40% 30%; }
  .svc-body { padding: 12px 14px; gap: 4px; justify-content: center; }
  .svc-body h3 { font-size: .98rem; }
  .svc-body p { font-size: .84rem; }
  .svc-body .chips { display: none; }
  .more { padding-top: 2px; font-size: .8rem; }
}

/* ---------- Pasos + certificaciones ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 20px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.step-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--green-l); color: var(--green-ink); margin-bottom: 12px; }
.step-ico svg { width: 22px; height: 22px; }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step h3 span { color: var(--teal-ink); margin-right: 6px; font-weight: 700; }
.step p { font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.certs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--deep); color: #fff; }
.certs b { font-family: var(--font-head); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #bdeceb; margin-right: 6px; }
.certs span { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .04em; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 12px 0 12px; }
.about p { color: var(--muted); }
.about p + p { margin-top: 10px; }
.about-art { position: relative; display: grid; place-items: center; padding: 28px; border-radius: 28px; background: radial-gradient(circle at 30% 20%, #dff0c3, transparent 60%), linear-gradient(145deg, #e6f6f2, #f4faf0); }
.about-art img { width: min(100%, 300px); filter: drop-shadow(0 22px 34px rgba(8, 80, 80, .28)); }
.about-art::before { content: ""; position: absolute; width: min(88%, 360px); aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(24, 152, 152, .4); animation: spin 70s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-art { order: -1; padding: 20px; } .about-art img { width: min(60%, 230px); } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(24px, 3.5vw, 40px); }
.fact { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); }
.fact h3 { font-size: .98rem; margin-bottom: 6px; }
.fact p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.values { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.values b { font-family: var(--font-head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); margin-right: 6px; }
.values span { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .84rem; color: var(--deep); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(22px, 4.5vw, 56px); align-items: start; }
.contact-info h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 12px 0 10px; }
.contact-list { display: grid; gap: 12px; margin-top: 22px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease; }
a.contact-item:hover { transform: translateX(4px); border-color: #b7dccf; box-shadow: var(--shadow-sm); }
.contact-item .ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--green-l); color: var(--green-ink); }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item b { font-family: var(--font-head); font-size: 1rem; color: var(--deep); }

.form-card { padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; color: var(--deep); }
.field label span { color: var(--teal-ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--tint); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7dccf; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(24, 152, 152, .15); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.consent input { flex: none; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--deep); cursor: pointer; }
.consent label { font-size: .82rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent a, .privacy-short a { color: var(--teal-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.privacy-details { margin-top: 12px; font-size: .78rem; color: var(--muted); }
.privacy-details summary { cursor: pointer; font-weight: 700; color: var(--deep); }
.privacy-short { margin-top: 8px; line-height: 1.6; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.form-note { font-size: .78rem; color: var(--muted); }
.form-status { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--green-l); color: #254f0a; font-size: .9rem; }
.form-status.is-visible { display: block; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(32px, 4vw, 48px) 0 20px; background: var(--tint); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-about p { margin-top: 12px; max-width: 32ch; font-size: .88rem; color: var(--muted); }
.site-footer h3 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.footer-links a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--deep); text-decoration: underline; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Páginas de servicio ---------- */
.page-hero { padding: clamp(104px, 12vw, 124px) 0 clamp(32px, 4.5vw, 56px); background: radial-gradient(640px 360px at 95% 0%, rgba(24, 152, 152, .2), transparent 60%), linear-gradient(180deg, #f4faf7, #fff); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.breadcrumb a { color: var(--teal-ink); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #8fb0a8; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.page-hero h1 { margin: 14px 0 12px; font-size: clamp(1.8rem, 3.8vw, 2.8rem); letter-spacing: -.025em; }
.page-art { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.page-art img { width: 100%; height: auto; }
@media (max-width: 800px) { .page-hero-grid { grid-template-columns: 1fr; } .page-art { max-width: 460px; } }

.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.group-card { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-top: 4px solid var(--green); }
.group-card h2 { font-size: 1.05rem; margin-bottom: 14px; }
.check-list { display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 26px; font-size: .93rem; color: #25403f; line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7a12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.callout { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 18px 22px; border-radius: var(--radius); background: var(--deep); color: #fff; }
.callout .badge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #bdeceb; }
.callout .badge svg { width: 24px; height: 24px; }
.callout h2 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #bdeceb; margin-bottom: 4px; }
.callout p { font-size: .98rem; color: #fff; }
.callout p + p { margin-top: 2px; color: #cfe6e4; font-size: .9rem; }

.cta-band { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: clamp(22px, 3.4vw, 36px) clamp(22px, 4vw, 44px); border-radius: 26px; background: radial-gradient(420px 220px at 100% 0%, rgba(24, 152, 152, .45), transparent 60%), linear-gradient(135deg, var(--deep), #0b6a6a); color: #fff; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.7rem); max-width: 24ch; }
.cta-band p { margin-top: 6px; color: #cfe6e4; font-size: .95rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-actions .btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta-actions .btn-ghost:hover { background: #fff; color: var(--deep); }

.related-title { font-size: 1.3rem; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s ease; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card img { width: 100%; aspect-ratio: 400 / 150; object-fit: cover; }
.related-card b { padding: 12px 14px; font-family: var(--font-head); font-size: .88rem; line-height: 1.3; color: var(--deep); }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Texto legal ---------- */
.prose { max-width: 800px; margin-inline: auto; }
.prose > p:first-of-type { font-size: 1.02rem; }
.prose h2 { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.prose h2 span { color: var(--teal-ink); font-size: .9em; }
.prose p, .prose li { color: #2f4847; line-height: 1.75; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 10px; }
.prose ul { display: grid; gap: 7px; margin-top: 10px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 3px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.prose strong { color: var(--deep); }
.prose a { color: var(--teal-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.draft-banner { margin-bottom: 24px; padding: 14px 18px; border-radius: 14px; border: 1px solid #f0c768; background: #fff7e0; color: #6b4a00; font-size: .9rem; line-height: 1.55; }
.draft-banner code { padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .07); font-size: .85em; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 130px 0 60px; }
.notfound h1 { font-size: clamp(5rem, 18vw, 9rem); line-height: 1; background: linear-gradient(135deg, var(--teal), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); margin: 8px 0 24px; font-size: 1.1rem; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; }
  .marquee-group[aria-hidden="true"] { display: none; }
}
@media print { .site-header { display: none; } }

/* ---------- Animación de entrada (solo en la home, una vez por sesión) ---------- */
.intro, .intro-wipe { display: none; }
html.intro-active .intro, html.intro-active .intro-wipe { display: grid; }
.intro { position: fixed; inset: 0; z-index: 1000; place-items: center; align-content: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(700px 520px at 50% 42%, #fff 0%, #ecf8f2 58%, #d8f0e6 100%);
  animation: irisOut .72s cubic-bezier(.7, 0, .2, 1) 2.15s forwards; }
.intro::before { content: ""; position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(24, 152, 152, .30), transparent) 18% 28% / 42% 42% no-repeat, radial-gradient(closest-side, rgba(24, 152, 152, .24), transparent) 82% 72% / 46% 46% no-repeat;
  animation: blobs 4s ease-in-out infinite alternate; }
.intro-wipe { position: fixed; inset: 0; z-index: 999; background: linear-gradient(135deg, var(--green), var(--teal)); animation: irisOut .72s cubic-bezier(.7, 0, .2, 1) 2.27s forwards; }
@keyframes irisOut { from { clip-path: circle(78vmax at 50% 46%); } to { clip-path: circle(0 at 50% 46%); visibility: hidden; } }
@keyframes blobs { to { transform: translate3d(3%, -4%, 0) scale(1.08); } }

.intro-stage { --s: clamp(150px, 26vmin, 210px); position: relative; display: grid; place-items: center; width: var(--s); height: var(--s); margin-bottom: calc(var(--s) * .36 + clamp(20px, 4vmin, 34px)); } /* el anillo sobresale .36·s por debajo del logo: la palabra va debajo de él */
.intro-logo { width: 100%; height: auto; filter: drop-shadow(0 18px 34px rgba(8, 80, 80, .3)); animation: introLogo 1.15s cubic-bezier(.2, .9, .25, 1.08) .2s both; }
@keyframes introLogo { 0% { opacity: 0; transform: scale(.35) rotate(-140deg); filter: blur(14px) drop-shadow(0 0 0 transparent); } 55% { opacity: 1; transform: scale(1.07) rotate(7deg); filter: blur(0) drop-shadow(0 18px 34px rgba(8, 80, 80, .3)); } 78% { transform: scale(.98) rotate(-1deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.intro-ring { position: absolute; left: -36%; top: -36%; width: 172%; max-width: none; height: 172%; overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.intro-ring circle { fill: none; stroke-linecap: round; }
.intro-ring .r1 { stroke: url(#introGrad); stroke-width: 2.6; stroke-dasharray: 100; stroke-dashoffset: 100; animation: introDraw 1.3s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
.intro-ring .r2 { stroke: var(--teal); stroke-width: 1.6; opacity: .4; stroke-dasharray: 1 7; transform-origin: 50% 50%; transform-box: fill-box; animation: spin 16s linear infinite; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
.intro-burst { position: absolute; inset: 0; pointer-events: none; }
.intro-burst i { position: absolute; left: 50%; top: 50%; width: 22px; height: 38px; margin: -19px 0 0 -11px; opacity: 0;
  clip-path: path('M11 0C19 9 22 25 11 38 0 25 3 9 11 0Z'); background: linear-gradient(180deg, var(--green), var(--teal));
  transform: rotate(var(--a)) translateY(calc(var(--s) * -.3)) scale(.2);
  animation: leafOut 1.25s cubic-bezier(.2, .7, .2, 1) calc(.5s + var(--i) * .03s) forwards; }
.intro-burst i:nth-child(3n) { background: linear-gradient(180deg, var(--teal), var(--deep)); }
@keyframes leafOut { 0% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--s) * -.3)) scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--s) * var(--k))) scale(1); } }

.intro-word { display: flex; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 7.5vmin, 3.4rem); line-height: 1; color: var(--deep); }
.intro-word span { display: inline-block; margin: 0 .09em; opacity: 0; transform: translateY(.7em); animation: introLetter .6s cubic-bezier(.2, .8, .2, 1) calc(.95s + var(--i) * .09s) forwards; }
@keyframes introLetter { to { opacity: 1; transform: none; } }
.intro-sub { margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: clamp(.58rem, 1.8vmin, .78rem); letter-spacing: .42em; text-transform: uppercase; color: var(--teal-ink); text-align: center; opacity: 0; animation: introFadeUp .6s ease 1.5s forwards; }
@keyframes introFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.intro-bar { position: absolute; left: 50%; bottom: clamp(36px, 9vh, 80px); width: min(220px, 50vw); height: 3px; transform: translateX(-50%); border-radius: 3px; background: rgba(8, 80, 80, .12); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--teal)); transform-origin: left; transform: scaleX(0); animation: introBar 2s cubic-bezier(.4, 0, .2, 1) .15s forwards; }
@keyframes introBar { to { transform: scaleX(1); } }
.intro-skip { position: absolute; right: 18px; top: 18px; padding: 8px 16px; border: 1px solid rgba(8, 80, 80, .25); border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--deep); font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .08em; cursor: pointer; opacity: 0; animation: introFadeUp .5s ease .6s forwards; }
.intro-skip:hover { background: #fff; }
html.intro-leaving .intro, html.intro-leaving .intro-wipe { animation: introFade .35s ease forwards; }
@keyframes introFade { to { opacity: 0; visibility: hidden; } }

/* El banner espera a que termine la intro (solo retrasa las transiciones: sin JS no se queda nada oculto) */
html.intro-active .slide.is-active .hero-bg img { animation-delay: 2s; }
html.intro-active .slide.is-active .hero-copy > :nth-child(1) { transition-delay: 2.4s; }
html.intro-active .slide.is-active .hero-copy > :nth-child(2) { transition-delay: 2.52s; }
html.intro-active .slide.is-active .hero-copy > :nth-child(3) { transition-delay: 2.64s; }
html.intro-active .slide.is-active .hero-copy > :nth-child(4) { transition-delay: 2.75s; }
html.intro-active .slide.is-active .hero-copy > :nth-child(5) { transition-delay: 2.85s; }
html.intro-active .hero.is-playing .car-dot.is-active span::after { animation-delay: 2.8s; }

@media (prefers-reduced-motion: reduce) { .intro, .intro-wipe { display: none !important; } }

/* ---------- Cifras, por qué IPAM, credenciales y galería de campo ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(24px, 3.5vw, 40px); }
.kpi { padding: 20px 18px; border-radius: var(--radius); background: linear-gradient(160deg, var(--deep), var(--teal-ink)); color: #fff; }
.kpi b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--green); }
.kpi span { display: block; margin-top: 8px; font-size: .88rem; line-height: 1.4; color: #d3efee; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { padding: 20px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s ease; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.why-card .step-ico { margin-bottom: 12px; }
.why-card h3 { font-size: 1rem; margin-bottom: 4px; }
.why-card p { font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .why { grid-template-columns: 1fr; } }
.creds { list-style: none; margin: 24px 0 0; padding: 16px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.creds li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; color: var(--deep); font-weight: 600; }
.creds svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green-ink); }
@media (max-width: 860px) { .creds { grid-template-columns: 1fr; } }
.photo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-wall figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 3 / 2; background: var(--tint-2); }
.photo-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-wall figure:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .photo-wall { grid-template-columns: 1fr 1fr; } }

/* ---------- Misión, visión, principios y lema ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(24px, 3.5vw, 40px); }
.mv-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); }
.mv-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--green-l); color: var(--green-ink); }
.mv-ico svg { width: 28px; height: 28px; }
.mv-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--green-ink); letter-spacing: .04em; text-transform: uppercase; }
.mv-card p { font-size: .93rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) { .mv { grid-template-columns: 1fr; } }
.principles-head { margin-top: clamp(28px, 4vw, 48px); text-align: center; }
.principles-head h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--deep); }
.principles-head span { font-size: .88rem; color: var(--muted); }
.principles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.principle { padding: 18px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s ease; }
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.principle .step-ico { margin-bottom: 10px; }
.principle h4 { font-family: var(--font-head); font-size: .95rem; line-height: 1.25; margin-bottom: 4px; }
.principle h4 span { color: var(--teal-ink); margin-right: 6px; }
.principle p { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.principle:last-child { grid-column: span 1; }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .principles { grid-template-columns: 1fr; } }
@keyframes slogan-drift { to { transform: translate3d(6%, -4%, 0) rotate(8deg) scale(1.08); } }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes pulse-dot { 50% { transform: scale(1.35); } }
@media (max-width: 960px) { .slogan .dot { display: none; } .slogan-line { flex-direction: column; gap: 22px; } .sl-part b { font-size: clamp(1.7rem, 6vw, 2.6rem); } }

/* ---------- Servicios: 6 tarjetas, beneficio y metodología ---------- */
.benefit { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--green-l); color: var(--deep); font-size: .92rem; line-height: 1.45; }
.benefit svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green-ink); }
.method-lead { margin: 6px 0 18px; color: var(--muted); }
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: m; }
.method li { position: relative; padding: 14px 12px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.method li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .85rem; }
.method li b { font-family: var(--font-head); font-size: .86rem; line-height: 1.2; color: var(--deep); }
.method li small { font-size: .76rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 1000px) { .method { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .method { grid-template-columns: 1fr 1fr; } }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint-2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-img img { transform: scale(1.06); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.post-cat { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--green-l); color: var(--green-ink); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.post-body h2 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; }
.post-body h2 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-body p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-meta { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.post-wrap { max-width: 800px; }
.post-cover { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.prose h2 { font-size: 1.3rem; margin: 30px 0 8px; color: var(--deep); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--teal); font-weight: 700; }
.post-svc { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--tint); border: 1px solid var(--line); font-weight: 600; }
.post-svc a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.post-note { margin-top: 18px; font-size: .84rem; color: var(--muted); }

/* ---------- Clientes: muro de logotipos (fondo claro) ---------- */
.clients { position: relative; isolation: isolate; overflow: hidden; display: block; padding: clamp(56px, 8vw, 104px) 0; border: 0; color: var(--ink); background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.clients-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(24, 152, 152, .12) 1px, transparent 1.5px) 0 0 / 24px 24px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.clients-bg i { position: absolute; border-radius: 50%; filter: blur(80px); animation: aurora 16s ease-in-out infinite alternate; }
.clients-bg i:nth-child(1) { width: 40vw; height: 40vw; left: -12vw; top: -14vw; background: #189898; opacity: .22; }
.clients-bg i:nth-child(2) { width: 44vw; height: 44vw; right: -14vw; top: 12%; background: #189898; opacity: .2; animation-delay: -5s; }
.clients-bg i:nth-child(3) { width: 34vw; height: 34vw; left: 32%; bottom: -20vw; background: #189898; opacity: .16; animation-delay: -9s; }
@keyframes aurora { to { transform: translate3d(5vw, 4vw, 0) scale(1.15); } }
.clients-head { max-width: 780px; margin: 0 auto clamp(30px, 4.5vw, 52px); text-align: center; }
.clients-head h2 { margin: 14px 0 12px; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.08; color: var(--deep); }
.clients-head h2 em { font-style: normal; background: linear-gradient(90deg, var(--teal), var(--green-ink), var(--teal)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.clients-head p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.client-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.client-tile { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 16%; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease; }
.client-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(24, 152, 152, .22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); pointer-events: none; }
.client-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.client-tile:hover { transform: translateY(-8px) scale(1.03); border-color: #b7dccf; box-shadow: var(--shadow); }
.client-tile:hover::before { transform: translateX(120%); }
.client-tile:hover::after { transform: scaleX(1); }
.client-tile img { width: 100%; height: 100%; object-fit: contain; opacity: .88; transition: transform .4s var(--ease), opacity .3s ease; }
.client-tile:hover img { transform: scale(1.08); opacity: 1; }
.client-sectors { list-style: none; margin: clamp(26px, 4vw, 44px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.client-sectors li { padding: 8px 16px; border-radius: 999px; background: var(--green-l); border: 1px solid #cfe6b3; color: var(--green-ink); font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 900px) { .client-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .client-wall { grid-template-columns: repeat(2, 1fr); } .client-tile { padding: 14%; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .clients-bg i, .clients-head h2 em { animation: none; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 0; height: 58px; padding: 0 16px; border-radius: 999px; background: #25d366; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .92rem; box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .65), 0 4px 12px rgba(0, 0, 0, .18); transition: transform .3s var(--ease), box-shadow .3s ease, background .2s ease; }
.wa-float svg { flex: none; width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; z-index: -1; animation: wa-pulse 2.6s ease-out infinite; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .4s var(--ease), opacity .3s ease, margin .4s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { background: #1ebe5b; transform: translateY(-3px) scale(1.04); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 120px; opacity: 1; margin-right: 10px; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.45, 1.7); opacity: 0; } }
@media (max-width: 600px) {
  .wa-float { right: 12px; bottom: 12px; width: 52px; height: 52px; padding: 0; justify-content: center; box-shadow: 0 8px 20px -6px rgba(37, 211, 102, .6), 0 3px 10px rgba(0, 0, 0, .18); transition: transform .3s var(--ease), opacity .3s ease, box-shadow .3s ease; }
  .wa-float .wa-label { display: none; }
  .wa-float.wa-hide { opacity: 0; transform: translateY(24px); pointer-events: none; }
}
@media (max-width: 1300px) { .hero-bar { padding-right: 78px; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
@media print { .wa-float { display: none; } }

/* ---------- Red de fondo ---------- */
.net-sec { position: relative; overflow: hidden; background: radial-gradient(ellipse at 15% 0%, rgba(24, 152, 152, .10), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(24, 152, 152, .10), transparent 55%), #fff; }
.net-sec > .container { position: relative; z-index: 1; }
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }

/* ---------- Galería de campo: mosaico con fotos reales ---------- */
.photo-wall { display: block; columns: 3; column-gap: 12px; max-width: 1080px; margin-inline: auto; }
.photo-wall figure { display: block; margin: 0 0 12px; break-inside: avoid; aspect-ratio: auto; overflow: hidden; border-radius: var(--radius-sm); background: var(--tint-2); box-shadow: var(--shadow-sm); }
.photo-wall img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .6s var(--ease); }
.photo-wall figure:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .photo-wall { columns: 2; } }
@media (max-width: 560px) { .photo-wall { columns: 2; column-gap: 8px; } .photo-wall figure { margin-bottom: 8px; } }

.photo-wall-service { columns: 4; }
@media (max-width: 900px) { .photo-wall-service { columns: 2; } }

/* ---------- Carrusel: diapositiva con collage de fotos reales ---------- */
.hero-collage { position: absolute; z-index: 1; right: max(var(--gutter), calc((100vw - var(--container)) / 2)); top: 50%; width: min(44vw, 560px); height: min(58vh, 500px); transform: translateY(-54%); pointer-events: none; }
.hc { position: absolute; margin: 0; border: 6px solid #fff; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(30px) rotate(0deg); transition: opacity .8s ease, transform .9s var(--ease); }
.hc img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hc-1 { left: 0; top: 0; width: 62%; aspect-ratio: 2 / 1; --r: -3deg; }
.hc-2 { right: 0; top: 4%; width: 33%; aspect-ratio: 1 / 2; --r: 4deg; }
.hc-3 { left: 10%; bottom: 0; width: 30%; aspect-ratio: 3 / 4; --r: 2deg; }
.hc-4 { right: 6%; bottom: 0; width: 48%; aspect-ratio: 3 / 2; --r: -2deg; }
.slide.is-active .hc { opacity: 1; transform: rotate(var(--r)); }
.slide.is-active .hc-1 { transition-delay: .5s; } .slide.is-active .hc-2 { transition-delay: .65s; }
.slide.is-active .hc-3 { transition-delay: .8s; } .slide.is-active .hc-4 { transition-delay: .95s; }
@media (max-width: 1180px) { .hero-collage { display: none; } }

/* ---------- Botón "Solicitar asesoría" (WhatsApp) con latido suave ---------- */
.btn-wa { background: #25d366; color: #fff; border-color: transparent; font-weight: 800; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .8); animation: wa-beat 2.4s ease-in-out infinite; }
.btn-wa svg { flex: none; width: 24px; height: 24px; color: #fff; }
.btn-wa:hover { background: #1ebe5b; animation-play-state: paused; transform: translateY(-2px) scale(1.04); }
@keyframes wa-beat { 0%, 100% { transform: scale(1); box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .8), 0 0 0 0 rgba(37, 211, 102, .55); } 50% { transform: scale(1.055); box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .9), 0 0 0 12px rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .btn-wa { animation: none; } }
html.js .site-header.on-hero:not(.is-solid) .nav-cta.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .8); }
html.js .site-header.on-hero:not(.is-solid) .nav-cta.btn-wa:hover { background: #1ebe5b; }
.nav-cta.btn-wa svg { width: 20px; height: 20px; }

/* ---------- Cookies ---------- */
.ck { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(440px, calc(100vw - 40px)); padding: 20px 20px 18px; border-radius: 22px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 24px 60px -16px rgba(8, 80, 80, .45); opacity: 0; transform: translateY(24px); transition: opacity .35s ease, transform .45s var(--ease); }
.ck.is-in { opacity: 1; transform: none; }
.ck[hidden] { display: none; }
.ck-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ck-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green-l); color: var(--green-ink); }
.ck-ico svg { width: 22px; height: 22px; }
.ck h2 { font-size: 1.05rem; }
.ck p { font-size: .88rem; line-height: 1.5; color: var(--muted); }
.ck p a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.ck-prefs { display: grid; gap: 8px; margin-top: 12px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); cursor: pointer; }
.ck-row b { display: block; font-size: .9rem; color: var(--deep); }
.ck-row small { display: block; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.ck-row input { flex: none; width: 22px; height: 22px; accent-color: var(--teal); }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ck-actions .btn { flex: 1 1 auto; min-height: 42px; padding: 9px 14px; font-size: .84rem; justify-content: center; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.link-btn:hover { color: var(--teal-ink); text-decoration: underline; }
.prose .link-btn { color: var(--teal-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.ck-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ck-table th, .ck-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.ck-table th { background: var(--tint-2); color: var(--deep); }
@media (max-width: 600px) { .ck { left: 12px; right: 12px; bottom: 80px; width: auto; } }
@media print { .ck { display: none; } }
.ck-prefs[hidden], .ck [hidden] { display: none !important; }

/* Variantes del collage del carrusel (1 y 2 fotos) */
.hc img { height: 100%; }
.n1 .hc-1 { left: 14%; top: 0; width: 72%; height: 100%; --r: 2deg; }
.n2 .hc-1 { left: 2%; top: 6%; width: 47%; height: 88%; --r: -3deg; }
.n2 .hc-2 { right: 2%; top: 0; width: 47%; height: 88%; --r: 3deg; }
.n2.stack .hc-1 { left: 0; top: 4%; width: 78%; height: auto; aspect-ratio: 2 / 1; --r: -3deg; }
.n2.stack .hc-2 { left: auto; right: 0; top: auto; bottom: 4%; width: 78%; height: auto; aspect-ratio: 2 / 1; --r: 3deg; }
.n2.stack .hc img { height: 100%; }

.n1.wide .hc-1 { left: 4%; top: 22%; width: 92%; height: auto; aspect-ratio: 2 / 1; --r: -2deg; }
.n1.wide .hc img { height: 100%; }
/* Evita que el collage tape el título: copy más angosto y collage más compacto */
@media (min-width: 1181px) {
  .slide:has(.hero-collage) .hero-copy { max-width: 600px; }
  .hero-collage { width: min(36vw, 480px); height: min(52vh, 440px); }
}

/* ---------- Formulario de contacto (mejorado) ---------- */
.form-card { position: relative; overflow: hidden; padding: clamp(24px, 3.6vw, 40px); }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--teal), var(--green)); }
.form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.form-head .ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-l); color: var(--green-ink); }
.form-head .ico svg { width: 24px; height: 24px; }
.form-head h3 { font-size: 1.3rem; }
.form-head p { font-size: .92rem; color: var(--muted); }
.form-grid { gap: 18px 16px; }
.field label { font-size: .86rem; letter-spacing: .01em; }
.field input, .field select, .field textarea { min-height: 54px; padding: 13px 16px; font-size: 1rem; border: 1.5px solid #cfe3dc; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(8, 80, 80, .04); }
.field input::placeholder, .field textarea::placeholder { color: #8aa39e; }
.field textarea { min-height: 130px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23085050' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(24, 152, 152, .16); }
.consent { padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); margin-top: 12px; }
.consent input { accent-color: var(--teal); width: 20px; height: 20px; }
.form-actions { margin-top: 22px; }
.form-actions .btn-primary { min-height: 56px; padding: 14px 32px; font-size: 1rem; box-shadow: 0 14px 28px -12px rgba(8, 80, 80, .7); }
.form-actions .btn-primary:hover { transform: translateY(-2px); }
.form-note { font-size: .82rem; }
@media (max-width: 520px) { .form-actions .btn-primary { width: 100%; justify-content: center; } }

/* ---------- Servicios en franjas (portada) ---------- */
.ac-row{display:flex;gap:10px;height:440px}
.ac-tile{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;padding:20px 16px;overflow:hidden;border-radius:22px;background:linear-gradient(160deg,#085050,#189898);color:#fff;transition:flex-grow .7s cubic-bezier(.2,.7,.2,1),height .6s cubic-bezier(.2,.7,.2,1),box-shadow .4s ease;-webkit-tap-highlight-color:transparent}
.ac-pic{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;opacity:.7;transform:scale(1.04);transition:opacity .6s ease,transform 1.1s cubic-bezier(.2,.7,.2,1)}
.ac-tile::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,rgba(5,48,50,.94) 0%,rgba(5,48,50,.5) 50%,rgba(5,48,50,.15) 100%);transition:opacity .6s ease}
.ac-num{position:absolute;top:18px;left:20px;z-index:3;font:800 2rem/1 var(--font-head);color:rgba(255,255,255,.45);transition:color .4s ease}
.ac-name{position:relative;z-index:3;font:800 1.02rem/1.22 var(--font-head);text-shadow:0 2px 10px rgba(0,0,0,.25);overflow-wrap:break-word;max-width:100%}
.ac-info{position:relative;z-index:3;display:flex;flex-direction:column;gap:10px;max-height:0;opacity:0;overflow:hidden;transform:translateY(16px);transition:max-height .7s cubic-bezier(.2,.7,.2,1),opacity .5s ease .15s,transform .6s ease .15s}
.ac-info small{font-size:.95rem;line-height:1.5;color:#e4f4f3;max-width:360px}
.ac-link{align-self:flex-start;font-weight:700;font-size:.95rem;color:#189898;text-decoration:none}
.ac-link svg{width:16px;height:16px;vertical-align:-3px;transition:transform .3s ease}
.ac-link:hover svg{transform:translateX(4px)}
@media (min-width:761px) and (hover:hover){
  .ac-tile:hover{flex-grow:2.6;box-shadow:0 24px 50px -20px rgba(8,80,80,.6)}
  .ac-tile:hover .ac-pic{opacity:1;transform:scale(1)}
  .ac-tile:hover::after{opacity:.55}
  .ac-tile:hover .ac-num{color:#189898}
  .ac-tile:hover .ac-info{max-height:200px;opacity:1;transform:none}
}
@media (max-width:760px), (hover:none){
  .ac-row{flex-direction:column;height:auto;gap:12px}
  .ac-tile{flex:none;height:128px;padding:18px 20px;justify-content:flex-end;border-radius:20px}
  .ac-pic{opacity:.8;transform:scale(1)}
  .ac-tile::after{opacity:1;background:linear-gradient(0deg,rgba(5,48,50,.95) 0%,rgba(5,48,50,.55) 55%,rgba(5,48,50,.2) 100%)}
  .ac-num{top:16px;right:20px;left:auto;font-size:1.5rem}
  .ac-name{font-size:1.2rem;max-width:78%}
  .ac-tile::before{content:"";position:absolute;right:22px;bottom:24px;z-index:3;width:12px;height:12px;border-right:2.5px solid #189898;border-bottom:2.5px solid #189898;transform:rotate(45deg);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
  .ac-info{max-height:0;opacity:0;transform:translateY(14px);gap:8px;margin-top:0;transition:max-height .6s cubic-bezier(.2,.7,.2,1),opacity .4s ease,transform .5s ease,margin .5s ease}
  .ac-info small{font-size:.94rem;max-width:none;padding-right:28px}
  .ac-tile.is-open{height:340px;box-shadow:0 22px 44px -18px rgba(8,80,80,.6)}
  .ac-tile.is-open .ac-pic{opacity:1;transform:scale(1.02)}
  .ac-tile.is-open::after{opacity:.6}
  .ac-tile.is-open::before{transform:rotate(-135deg);bottom:22px}
  .ac-tile.is-open .ac-num{color:#189898}
  .ac-tile.is-open .ac-name{max-width:100%}
  .ac-tile.is-open .ac-info{max-height:220px;opacity:1;transform:none;margin-top:12px;transition-delay:.15s,.2s,.2s}
  .ac-tile:active{transform:scale(.985)}
}
@media (prefers-reduced-motion:reduce){.ac-tile,.ac-pic,.ac-info{transition:none!important}}

/* Preguntas frecuentes (portada) */
.faq-sec { position: relative; overflow: hidden; }
.faq-sec::before { content: ""; position: absolute; inset: auto -10% -30% auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(24, 152, 152, .18), transparent 65%); pointer-events: none; }
.faq-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq-side { position: sticky; top: 110px; padding: clamp(26px, 3vw, 38px); border-radius: 28px; background: linear-gradient(150deg, #0d7474 0%, #189898 65%, #3aa9a2 100%); color: #eaf7f4; box-shadow: 0 30px 60px -30px rgba(8, 80, 80, .55); overflow: hidden; }
.faq-side::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(24, 152, 152, .35); }
.faq-side .eyebrow { background: rgba(255, 255, 255, .14); color: #e6f6cf; }
.faq-side .eyebrow::before { background: var(--green); }
.faq-side h2 { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 18px 0 12px; }
.faq-side h2 em { font-style: normal; color: #9ee8e0; }
.faq-side p { margin: 0; color: #cfe9e8; line-height: 1.6; }
.faq-cta { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; z-index: 1; }
.faq-mail { color: #e6f6cf; font-weight: 700; font-size: .95rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.faq-mail svg { width: 16px; height: 16px; }
.faq { display: grid; gap: 12px; }
.faq-item { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.faq-item:hover { border-color: #b9dcd3; }
.faq-item[open] { border-color: var(--teal); box-shadow: 0 18px 36px -22px rgba(8, 80, 80, .45); }
.faq-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--green), var(--teal)); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.faq-item[open]::before { transform: scaleY(1); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px 18px 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; border-radius: 18px; }
.faq-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-l); color: var(--green-ink); font-family: var(--font-head); font-weight: 800; font-size: .85rem; transition: background .25s, color .25s; }
.faq-item[open] .faq-n { background: var(--deep); color: #fff; }
.faq-q { flex: 1; font-family: var(--font-head); font-weight: 700; color: var(--deep); font-size: clamp(.98rem, 1.5vw, 1.1rem); line-height: 1.35; }
.faq-plus { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); transition: background .25s, transform .3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--teal-ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--green); transform: rotate(180deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--deep); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 24px 22px 76px; color: var(--muted); line-height: 1.65; animation: faqIn .35s ease both; }
.faq-a p { margin: 0; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .faq-a { padding: 0 20px 20px 20px; }
  .faq-n { width: 34px; height: 34px; font-size: .78rem; }
}

/* Celular: secciones más compactas y carga más ligera. */
@media (max-width: 760px) {
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2, .clients-head h2 { font-size: clamp(1.5rem, 6.6vw, 1.95rem); }
  .section-head p, .clients-head p { font-size: .95rem; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.3rem); margin: 14px 0 12px; }
  .hero-lead { font-size: .98rem; }
  .hero-actions { margin-top: 20px; gap: 10px; }
  .hero .btn { min-height: 48px; padding: 12px 22px; }
  .hero-tags { margin-top: 16px; }
  .hero-stats { padding: 10px 14px; gap: 12px 22px; }
  .clients { padding: 36px 0; }
  .clients-head { margin-bottom: 18px; }
  .steps { gap: 10px; }
  .step { padding: 16px; }
  .kpis { gap: 10px; margin-top: 18px; }
  .mv { gap: 12px; margin-top: 18px; }
  .slogan { padding: 36px var(--gutter); }
  .faq-side { padding: 22px; border-radius: 22px; }
  .faq-item summary { padding: 14px 14px 14px 14px; gap: 12px; }
  .faq-n { width: 34px; height: 34px; border-radius: 10px; }
  .faq-a { padding: 0 16px 16px 16px; }
  .faq { gap: 8px; }
  .photo-wall { column-gap: 8px; }
  .photo-wall figure { margin-bottom: 8px; }
  .site-footer { padding: 28px 0 16px; }
}

@media (max-width: 760px) {
  .about { gap: 18px; }
  .about-art { padding: 16px; border-radius: 22px; }
  .about-art img { width: min(100%, 150px); }
  .about p { font-size: .95rem; }
  .why, .principles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-card, .principle { padding: 14px 12px; border-radius: 16px; }
  .why-card h3, .principle h4 { font-size: .9rem; }
  .why-card p, .principle p { font-size: .8rem; line-height: 1.4; }
  .why-card .step-ico, .principle .step-ico { margin-bottom: 8px; }
  .mv { grid-template-columns: 1fr; gap: 10px; }
  .mv-card { padding: 16px; gap: 12px; }
  .mv-card p { font-size: .88rem; line-height: 1.5; }
  .principles-head { margin-top: 26px; }
}

.slogan { position: relative; overflow: hidden; padding: clamp(44px, 8vw, 88px) var(--gutter); background: linear-gradient(120deg, #06303a 0%, #085050 50%, #0b6a66 100%); color: #fff; text-align: center; isolation: isolate; }
.slogan-bg { position: absolute; inset: -40%; z-index: -1; background: radial-gradient(circle at 20% 30%, rgba(24, 152, 152, .35), transparent 38%), radial-gradient(circle at 80% 70%, rgba(24, 152, 152, .5), transparent 42%); animation: slogan-drift 14s ease-in-out infinite alternate; }
.slogan-line { margin: 0 auto; max-width: 1100px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px clamp(14px, 3vw, 34px); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.sl-part { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.sl-part b { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; }
.sl-part em { font-style: normal; font-weight: 700; font-size: clamp(.95rem, 2.1vw, 1.5rem); margin-top: 6px; background: linear-gradient(90deg, #80c340, #c8f08f, #80c340); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite; }
.slogan .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(24, 152, 152, .22), 0 0 24px rgba(24, 152, 152, .8); animation: pulse-dot 2.4s ease-in-out infinite; }
@media (max-width: 960px) { .slogan .dot { display: none; } .slogan-line { flex-direction: column; gap: 22px; } .sl-part b { font-size: clamp(1.7rem, 6vw, 2.6rem); } }
@media (prefers-reduced-motion: reduce) { .slogan-bg, .sl-part em, .slogan .dot { animation: none; } }

/* Formulario de diagnóstico (/diagnostico/) */
.dg-wrap { max-width: 820px; }
.dg-intro { color: var(--muted); margin: 0 0 18px; }
.dg-card-s { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 16px; }
.dg-card-s h2 { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--deep); margin: 0; display: flex; align-items: center; gap: 12px; }
.dg-num { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; font: 800 .85rem var(--font-head); }
.dg-hint { color: var(--muted); font-size: .92rem; margin: 6px 0 0 44px; }
.dg-q { margin-top: 18px; }
.dg-q > label, .dg-lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.dg-q small { display: block; color: var(--muted); font-size: .86rem; margin: -4px 0 8px; }
.dg-q input[type=text], .dg-q input[type=email], .dg-q input[type=tel], .dg-q textarea, .dg-q select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.dg-q textarea { min-height: 90px; resize: vertical; }
.dg-q input:focus, .dg-q textarea:focus, .dg-q select:focus { outline: 3px solid #cfe9e4; border-color: var(--teal); }
.dg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dg-opt { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.dg-opt:hover { border-color: var(--teal); }
.dg-opt input { width: 18px; height: 18px; accent-color: var(--deep); flex: none; }
.dg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.dg-card { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .2s, box-shadow .2s; }
.dg-card:hover { border-color: var(--teal); }
.dg-card input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; accent-color: var(--deep); z-index: 1; }
.dg-card:has(input:checked) { border-color: var(--deep); box-shadow: 0 0 0 3px #cfe9e4; }
.dg-card img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; object-position: top; }
.dg-card-t { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.dg-card-t b { font-family: var(--font-head); font-size: .95rem; color: var(--deep); }
.dg-card-t small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.dg-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 20px 22px; border-radius: 18px; background: var(--deep); color: #fff; }
.dg-foot p { margin: 0; color: #dff3ef; font-size: .95rem; max-width: 52ch; }
.dg-foot a { color: #bfeaa0; }
@media (max-width: 760px) {
  .dg-row, .dg-opts, .dg-cards { grid-template-columns: 1fr; }
  .dg-card-s { padding: 20px 16px; }
  .dg-hint { margin-left: 0; }
}

/* Diagnóstico: página solo con el formulario (sin menú ni pie del sitio) */
.dg-solo { background: var(--tint); min-height: 100vh; padding-bottom: 40px; }
.dg-top { background: #fff; border-bottom: 1px solid var(--line); }
.dg-top-in { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.dg-top-in img { width: 44px; height: 44px; }
.dg-top-in span { font: 800 15px var(--font-head); letter-spacing: .08em; color: var(--deep); }
.dg-title { font-family: var(--font-head); font-weight: 800; color: var(--deep); font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 10px 0 8px; }
.dg-sub { color: var(--muted); margin: 0 0 22px; }
