/* ==========================================================================
   MayaShield — hoja de estilos
   Paleta: Abismo #102E3A · Cenote #087F83 · Caliza #F3EFE6 · Agua mineral #C5DED9
   Tipografía: Manrope (títulos) · Inter (texto)
   ========================================================================== */

/* ---------- Fuentes locales (variables) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --abismo: #102E3A;
  --abismo-2: #1A4453;
  --cenote: #087F83;
  --cenote-2: #0FA3A8;
  --caliza: #F3EFE6;
  --caliza-2: #EAE4D6;
  --agua: #C5DED9;
  --ink: #102E3A;
  --ink-2: #3E5660;
  --ink-3: #6A7F87;
  --line: rgba(16, 46, 58, .14);
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--caliza);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cenote-2); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--abismo); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - var(--gutter) * 2); }

.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); max-width: 18ch; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 58ch; margin-top: 1rem; }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.3rem; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--cenote); color: #fff; box-shadow: 0 8px 24px -10px rgba(8, 127, 131, .7); }
.btn-primary:hover { background: #07696c; box-shadow: 0 12px 28px -10px rgba(8, 127, 131, .8); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(16, 46, 58, .04); }
.btn-light { background: var(--caliza); color: var(--abismo); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-wa { background: var(--abismo); color: #fff; margin-top: 1.5rem; }
.btn-wa:hover { background: var(--abismo-2); }
.btn-wa svg { width: 20px; height: 20px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.nav.scrolled { background: rgba(243, 239, 230, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--ink-2); position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cenote); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--ink); }
.nav-cta { margin-left: .5rem; }
.nav-burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; margin-left: auto; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Medidor de profundidad ---------- */
.gauge {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.gauge.show { opacity: 1; }
.gauge-track { width: 3px; height: 160px; background: rgba(16, 46, 58, .14); border-radius: 3px; overflow: hidden; }
.gauge-fill { width: 100%; height: 0%; background: linear-gradient(to bottom, var(--cenote-2), var(--cenote)); transition: height .15s linear; }
.gauge-label { font-family: var(--font-head); font-weight: 700; font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; writing-mode: vertical-rl; }
.gauge.on-dark .gauge-track { background: rgba(243, 239, 230, .2); }
.gauge.on-dark .gauge-label { color: rgba(243, 239, 230, .7); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 5rem)); overflow: hidden; }
.hero-in {
  width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  min-height: calc(100svh - var(--nav-h));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-title { font-size: clamp(2.8rem, 1.8rem + 4.4vw, 4.9rem); line-height: .98; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.hero-title .line:nth-child(2) span { animation-delay: .12s; color: var(--cenote); }
@keyframes rise { to { transform: translateY(0); } }
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 52ch; opacity: 0; animation: fade .8s var(--ease) .45s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; opacity: 0; animation: fade .8s var(--ease) .6s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero-proof { display: flex; gap: 2.2rem; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); opacity: 0; animation: fade .8s var(--ease) .8s forwards; }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-proof span { font-size: .85rem; color: var(--ink-3); }

.strata { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 8 / 9; background: var(--agua); box-shadow: 0 30px 60px -30px rgba(16, 46, 58, .45); }
.strata svg { width: 100%; height: 100%; display: block; }
.strata .membrane { animation: draw 2.2s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.strata .wave { animation: drift 9s linear infinite; }
.strata .w2 { animation-duration: 13s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(640px); } }
.strata .rays { animation: rays 6s ease-in-out infinite alternate; transform-origin: 310px 250px; }
@keyframes rays { to { transform: rotate(4deg); opacity: .6; } }
.strata-note {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(243, 239, 230, .9); backdrop-filter: blur(8px);
  padding: .55rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink-2);
  opacity: 0; animation: fade .8s var(--ease) 2.4s forwards;
}
.strata-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cenote); box-shadow: 0 0 0 0 rgba(8, 127, 131, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(8, 127, 131, 0); } 100% { box-shadow: 0 0 0 0 rgba(8, 127, 131, 0); } }

/* ---------- Problema ---------- */
.problem { padding: clamp(4rem, 8vw, 7rem) 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.problem-list { display: flex; flex-direction: column; }
.problem-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1.2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.problem-list li:last-child { border-bottom: 1px solid var(--line); }
.problem-list svg { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-sm); background: var(--agua); fill: none; stroke: var(--abismo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.problem-list strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: .3rem; }
.problem-list p { color: var(--ink-2); font-size: .98rem; }

/* ---------- Servicios (bento) ---------- */
.services { padding: clamp(4rem, 8vw, 7rem) 0; background: #fff; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); gap: 1.1rem; }
.card {
  position: relative; border-radius: var(--r-md); background: var(--caliza);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem;
  border: 1px solid transparent; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: rgba(8, 127, 131, .35); transform: translateY(-2px); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-top: auto; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card .ico { width: 40px; height: 40px; fill: none; stroke: var(--cenote); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-feature { grid-column: span 2; grid-row: span 2; background: var(--abismo); color: #fff; padding: 2rem; overflow: hidden; }
.card-feature h3 { font-size: 1.7rem; }
.card-feature p { color: rgba(243, 239, 230, .78); max-width: 46ch; font-size: 1rem; }
.card-feature .card-art { position: absolute; inset: 0 0 auto 0; height: 55%; opacity: .9; }
.card-feature .card-art svg { width: 100%; height: 100%; }
.card-feature > *:not(.card-art) { position: relative; z-index: 1; }
.card-feature::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, var(--abismo) 45%, rgba(16, 46, 58, 0) 100%); }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--agua); margin-top: .4rem; transition: gap .25s var(--ease); }
.card-link::after { content: ""; width: 14px; height: 2px; background: currentColor; }
.card-link:hover { gap: .7rem; }
.card-dark { background: var(--cenote); color: #fff; }
.card-dark p { color: rgba(255, 255, 255, .85); }
.card-dark .ico { stroke: #fff; }

/* ---------- Sistemas (tabs) ---------- */
.systems { padding: clamp(4rem, 8vw, 7rem) 0; }
.tab-list { position: relative; display: flex; gap: .3rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] { padding: .9rem 1.1rem; font-weight: 600; font-size: .95rem; color: var(--ink-3); white-space: nowrap; transition: color .25s; border-radius: 6px 6px 0 0; }
.tab-list [role="tab"]:hover { color: var(--ink); background: rgba(16, 46, 58, .04); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--ink); }
.tab-ind { position: absolute; bottom: -1px; height: 3px; background: var(--cenote); border-radius: 3px; transition: left .4s var(--ease), width .4s var(--ease); }
.tab-panels { position: relative; margin-top: 2.5rem; }
.tab-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: panel .5s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tp-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tp-copy > p { margin-top: 1rem; color: var(--ink-2); max-width: 56ch; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.8rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.spec dt { font-size: .8rem; color: var(--ink-3); margin-bottom: .25rem; }
.spec dd { margin: 0; font-weight: 600; font-size: .95rem; }
.tp-art { background: #fff; border-radius: var(--r-lg); padding: 1.5rem; }
.tp-art svg { width: 100%; height: auto; display: block; }
.is-active .crystal circle { transform-origin: center; animation: grow .8s var(--ease) backwards; }
.is-active .crystal circle:nth-child(2n) { animation-delay: .25s; }
.is-active .crystal circle:nth-child(3n) { animation-delay: .5s; }
@keyframes grow { from { transform: scale(0); } }
.is-active .skin { stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 1.4s var(--ease) .2s forwards; }
.is-active .spray { animation: spray .6s ease-in-out infinite alternate; }
@keyframes spray { to { opacity: .2; } }
.is-active .resin { animation: draw 1.6s var(--ease) .3s forwards; }
.is-active .bent { transform-origin: center; animation: swell 1.2s var(--ease) .2s both; }
@keyframes swell { from { transform: scaleY(.3); } }

/* ---------- Proceso ---------- */
.process { background: var(--abismo); color: var(--caliza); padding: clamp(4rem, 8vw, 7rem) 0; }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.process .lead { color: rgba(243, 239, 230, .75); }
.process-meter { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; }
.pm-bar { flex: 1; max-width: 240px; height: 4px; background: rgba(243, 239, 230, .18); border-radius: 4px; overflow: hidden; }
.pm-bar span { display: block; height: 100%; width: 16.6%; background: var(--cenote-2); transition: width .5s var(--ease); }
.pm-txt { font-size: .85rem; color: rgba(243, 239, 230, .7); font-variant-numeric: tabular-nums; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid rgba(243, 239, 230, .14); transition: opacity .5s var(--ease); opacity: .38; }
.step.is-on { opacity: 1; }
.step-n { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(243, 239, 230, .3); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; transition: background .4s var(--ease), border-color .4s var(--ease), color .4s; }
.step.is-on .step-n { background: var(--cenote); border-color: var(--cenote); color: #fff; }
.step h3 { font-size: 1.35rem; }
.step p { margin-top: .5rem; color: rgba(243, 239, 230, .75); max-width: 52ch; }

/* ---------- Antes / después ---------- */
.compare-sec { padding: clamp(4rem, 8vw, 7rem) 0; }
.compare { position: relative; aspect-ratio: 16 / 8; border-radius: var(--r-lg); overflow: hidden; user-select: none; touch-action: pan-y; background: #2b2a26; box-shadow: 0 30px 60px -30px rgba(16, 46, 58, .5); }
.cmp-side { position: absolute; inset: 0; }
.cmp-wall { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 140px),
  repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 2px, transparent 2px 60px),
  linear-gradient(180deg, #8f8a7c, #6f6a5e); }
.cmp-stain { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(40,35,20,.55), rgba(40,35,20,0)); filter: blur(6px); }
.cmp-stain.s1 { width: 42%; height: 70%; left: 10%; top: 25%; }
.cmp-stain.s2 { width: 30%; height: 60%; left: 50%; top: 40%; }
.cmp-stain.s3 { width: 25%; height: 40%; left: 70%; top: 5%; }
.cmp-crack { position: absolute; left: 38%; top: 0; width: 3px; height: 100%; background: linear-gradient(to bottom, transparent, #2b2a26 20%, #2b2a26 80%, transparent); transform: skewX(-6deg); }
.cmp-puddle { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(to top, rgba(60,70,65,.8), rgba(60,70,65,0)); }
.cmp-after { clip-path: inset(0 0 0 50%); }
.cmp-coat { position: absolute; inset: 0; background: linear-gradient(180deg, #0f9a9f 0%, #087F83 60%, #0a6f73 100%); opacity: .96; }
.cmp-coat::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 6px, transparent 6px 22px); }
.cmp-tag { position: absolute; top: 18px; padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(16, 46, 58, .85); color: #fff; backdrop-filter: blur(6px); }
.cmp-before .cmp-tag { left: 18px; }
.cmp-after .cmp-tag { right: 18px; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); cursor: ew-resize; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); display: grid; place-items: center; }
.cmp-handle span::before { content: ""; width: 14px; height: 14px; border-left: 2px solid var(--abismo); border-right: 2px solid var(--abismo); }

/* ---------- Proyectos (scroller) ---------- */
.projects { padding: clamp(4rem, 8vw, 7rem) 0; background: #fff; }
.scroller-nav { display: flex; gap: .5rem; }
.scroller-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.scroller-nav button:hover { background: var(--abismo); border-color: var(--abismo); color: #fff; }
.scroller-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scroller {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--gutter), (100% - var(--wrap)) / 2) 1rem;
  scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
}
.scroller::-webkit-scrollbar { display: none; }
.proj { flex: 0 0 min(380px, 82vw); scroll-snap-align: start; border-radius: var(--r-md); overflow: hidden; background: var(--caliza); display: flex; flex-direction: column; }
.proj-img { aspect-ratio: 4 / 2.6; overflow: hidden; }
.proj-img svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.proj:hover .proj-img svg { transform: scale(1.04); }
.img-1 { background: linear-gradient(180deg, #DCD5C5, #C5DED9); }
.img-2 { background: linear-gradient(180deg, #E8E2D4, #C5DED9); }
.img-3 { background: linear-gradient(180deg, #DCD5C5, #E8E2D4); }
.img-4 { background: linear-gradient(180deg, #C5DED9, #DCD5C5); }
.img-5 { background: linear-gradient(180deg, #F3EFE6, #C5DED9); }
.proj-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.proj-body h3 { font-size: 1.15rem; font-weight: 700; }
.proj-body p { font-size: .85rem; color: var(--ink-3); }
.proj-res { margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }

/* ---------- Garantía ---------- */
.guarantee { background: var(--cenote); color: #fff; padding: clamp(4rem, 8vw, 7rem) 0; position: relative; overflow: hidden; }
.guarantee::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); pointer-events: none; }
.guarantee::after { content: ""; position: absolute; inset: auto auto -50% -15%; width: 55%; aspect-ratio: 1; border-radius: 50%; border: 50px solid rgba(16, 46, 58, .12); pointer-events: none; }
.g-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.guarantee .lead { color: rgba(255, 255, 255, .82); margin-bottom: 2rem; }
.g-list { display: grid; gap: .8rem; }
.g-list li { background: rgba(16, 46, 58, .28); border-radius: var(--r-md); padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .2rem; }
.g-list strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; }
.g-list span { font-size: .92rem; color: rgba(255, 255, 255, .8); }

/* ---------- Testimonios (marquee) ---------- */
.quotes { padding: clamp(3rem, 6vw, 5rem) 0; overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track blockquote { margin: 0; width: 400px; flex: 0 0 auto; background: #fff; border-radius: var(--r-md); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.marquee-track p { font-size: 1rem; line-height: 1.55; }
.marquee-track footer { font-size: .82rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc-ico { position: relative; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; border: 1.5px solid var(--line); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: background .3s; }
.acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .acc-ico { background: var(--cenote); border-color: var(--cenote); transform: rotate(45deg); }
details[open] .acc-ico::before, details[open] .acc-ico::after { background: #fff; }
.acc-body { overflow: hidden; }
.acc-body p { padding-bottom: 1.4rem; color: var(--ink-2); max-width: 66ch; }

/* ---------- Contacto ---------- */
.contact { background: #fff; padding: clamp(4rem, 8vw, 7rem) 0; }
.c-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.c-info { margin-top: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.c-info li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.c-info svg { width: 22px; height: 22px; fill: none; stroke: var(--cenote); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 22px; }
.c-form { background: var(--caliza); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.c-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.c-form input, .c-form select, .c-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.c-form input:focus, .c-form select:focus, .c-form textarea:focus { outline: none; border-color: var(--cenote); box-shadow: 0 0 0 4px rgba(8, 127, 131, .15); }
.c-form .is-invalid { border-color: #c0392b; }
.c-form textarea { resize: vertical; min-height: 110px; }
.c-form .btn { margin-top: .4rem; align-self: flex-start; }
.f-note { font-size: .82rem; color: var(--ink-3); }
.f-note.ok { color: var(--cenote); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--abismo); color: rgba(243, 239, 230, .8); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.ft-brand img { height: 49px; width: auto; margin-bottom: 1.2rem; }
.ft-brand p { font-size: .95rem; max-width: 34ch; }
.ft-sign { margin-top: .6rem; color: var(--agua); font-weight: 500; }
.ft-col { display: flex; flex-direction: column; gap: .55rem; font-size: .93rem; }
.ft-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.ft-col a:hover { color: #fff; }
.ft-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(243, 239, 230, .14); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; font-size: .82rem; color: rgba(243, 239, 230, .55); }
.ft-legal { display: flex; gap: 1.2rem; }
.ft-legal a:hover { color: #fff; }
.ft-credit { display: inline-flex; align-items: center; gap: .6rem; opacity: .8; transition: opacity .25s; }
.ft-credit:hover { opacity: 1; }
.ft-credit img { height: 26px; width: auto; }

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 8vw, 7rem); }
.legal .h2 { max-width: 24ch; }
.legal-date { margin-top: .8rem; color: var(--ink-3); font-size: .9rem; }
.legal-body { margin-top: 2.5rem; max-width: 70ch; }
.legal-body h3 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 1rem; }
.legal-body p + p { margin-top: .9rem; }
.legal-body ul { list-style: disc; padding-left: 1.3rem; margin: .6rem 0; display: flex; flex-direction: column; gap: .35rem; }
.legal-body a { color: var(--cenote); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal .nav-links a::after { display: none; }

/* ---------- Aparición por scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--caliza); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem; flex-direction: column; gap: .2rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .mobile-menu a { padding: .8rem 0; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 1rem; border: 0; justify-content: center; }
  .nav.open { background: var(--caliza); }
  .nav.open .mobile-menu { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav.open + .gauge, .gauge { display: none; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .strata { aspect-ratio: 1 / 1; max-width: 520px; }
  .problem-grid, .process-grid, .g-grid, .c-grid { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; grid-row: span 1; min-height: 360px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .hero-proof { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .bento { grid-template-columns: 1fr; }
  .card-feature { grid-column: span 1; }
  .tab-panel { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: .8rem; }
  .step { grid-template-columns: 44px 1fr; gap: 1rem; }
  .step-n { width: 44px; height: 44px; font-size: .95rem; }
  .compare { aspect-ratio: 4 / 3; }
  .cmp-after .cmp-tag { top: auto; bottom: 18px; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .f-row { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ft-brand { grid-column: auto; }
  .marquee-track blockquote { width: 300px; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .hero-title .line span, .hero-lead, .hero-actions, .hero-proof, .strata-note { opacity: 1; transform: none; }
  .strata .membrane, .is-active .skin, .is-active .resin { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Fotografías ---------- */
.strata > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img { width: calc(100% + 3.2rem); margin: -1.6rem -1.6rem .4rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md) var(--r-md) 0 0; }
.card .ico { margin-top: .2rem; }
.card-feature .card-art { height: 62%; opacity: 1; }
.card-feature .card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-feature::after { background: linear-gradient(to top, var(--abismo) 38%, rgba(16, 46, 58, .35) 62%, rgba(16, 46, 58, 0) 100%); }
.tp-art-photo { padding: 0; overflow: hidden; }
.tp-art-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cmp-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.04); }
