/* =========================================================
   GHR Consultora — estilos
   Paleta tomada del logo. Contrastes verificados (WCAG AA).
   ========================================================= */
:root {
  --teal-950: #022427;
  --teal-900: #033337;
  --teal-800: #06454A;
  --teal-700: #0A5458;
  --teal-600: #0E6B5C;
  --mint: #60BB98;
  --mint-soft: #8AD4B6;
  --cream: #F5EEDC;
  --cream-200: #ECE3CC;
  --muted: #C2CEC8;
  --ink: #12302F;
  --ink-muted: #3F5856;
  --danger: #FFB4A8;
  --danger-ink: #A3261A;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--teal-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-soft); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--mint); color: var(--teal-950); padding: .7rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botón (CTA único) ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px; border: 0;
  background: var(--mint); color: var(--teal-950);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 10px 30px -10px rgba(96, 187, 152, .6);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { color: var(--teal-950); background: var(--mint-soft); box-shadow: 0 16px 40px -12px rgba(96, 187, 152, .8); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: .65rem 1.15rem; font-size: .95rem; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-arrow { color: var(--cream); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(245,238,220,.35); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--mint); color: var(--mint-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
/* El desenfoque va en un pseudo-elemento: si estuviera en el header,
   el menú móvil (position: fixed) quedaría atrapado dentro de él. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: rgba(2, 36, 39, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(96,187,152,.18);
  --header-h: 64px; height: 64px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--cream); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; }
.brand small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mint-soft); font-weight: 500; line-height: 1; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { list-style: none; display: flex; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--cream); text-decoration: none; font-size: .97rem; position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(245,238,220,.3); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--cream); margin: 4px auto; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 2rem;
    padding: 2rem; background: var(--teal-950);
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.4);
    visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 1.2rem; }
  .nav a:not(.btn) { font-size: 1.3rem; font-family: var(--serif); }
  .nav-toggle { position: relative; z-index: 2; }
}

/* ---------- Secciones ---------- */
section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--mint-soft);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section--light { background: var(--cream); color: var(--ink); }
.section--light .eyebrow { color: var(--teal-600); }
.section--light .section-head p, .section--light .muted { color: var(--ink-muted); }
.section--light a { color: var(--teal-600); }

/* ---------- Hero ---------- */
.hero {
  --mx: 70%; --my: 30%;
  min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(96,187,152,.16), transparent 60%),
    radial-gradient(900px circle at 0% 100%, rgba(10,84,88,.6), transparent 60%),
    var(--teal-900);
  overflow: hidden;
}
.hero::before { /* retícula sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(245,238,220,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(245,238,220,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.hero h1 em { font-style: italic; color: var(--mint-soft); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.rotator { display: inline-grid; vertical-align: bottom; perspective: 600px; }
.rotator span { grid-area: 1 / 1; color: var(--mint-soft); font-weight: 600; transform-origin: 50% 50% -20px; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.rotator span:not(.is-active) { opacity: 0; transform: rotateX(90deg); }
.rotator span.is-leaving { opacity: 0; transform: rotateX(-90deg); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; list-style: none; }
.hero-tags li { font-size: .85rem; padding: .35rem .8rem; border: 1px solid rgba(96,187,152,.4); border-radius: 999px; color: var(--cream); }

.hero-visual { perspective: 1200px; position: relative; }
.tilt-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: 28px; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .2s ease-out;
  box-shadow: var(--shadow), 0 0 0 1px rgba(96,187,152,.25);
}
.tilt-card img { border-radius: 28px; width: 100%; aspect-ratio: 1; }
.tilt-card .glare { position: absolute; inset: 0; border-radius: 28px; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.18), transparent 50%); }
.orbit-chip {
  position: absolute; z-index: 2;
  background: rgba(2,36,39,.9); border: 1px solid rgba(96,187,152,.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: .55rem .9rem; border-radius: 12px; font-size: .88rem; white-space: nowrap;
  transform: translateZ(60px);
  animation: float 6s ease-in-out infinite;
  display: flex; align-items: center; gap: .5rem;
}
.orbit-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(96,187,152,.2); }
.orbit-chip:nth-of-type(1) { top: 8%; left: -12%; }
.orbit-chip:nth-of-type(2) { top: 46%; right: -10%; animation-delay: -2s; }
.orbit-chip:nth-of-type(3) { bottom: 6%; left: -4%; animation-delay: -4s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(245,238,220,.45); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mint); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; margin: 1rem auto 0; }
  .orbit-chip:nth-of-type(1) { left: -4%; }
  .orbit-chip:nth-of-type(2) { right: -4%; }
  .scroll-cue { display: none; }
}

/* ---------- Tarjetas que giran (servicios / rubros) ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards--3, .cards--4 { grid-template-columns: 1fr; } }

.flip { perspective: 1400px; cursor: pointer; }
.flip-inner {
  display: grid; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  grid-area: 1 / 1;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--teal-800), var(--teal-950));
  border: 1px solid rgba(96,187,152,.22);
  box-shadow: var(--shadow);
  min-height: 100%;
}
.flip-back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); border-color: rgba(96,187,152,.5); }
.flip-face .num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: rgba(138,212,182,.4); margin-bottom: 1rem; }
.flip-face .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(96,187,152,.14); color: var(--mint-soft); margin-bottom: 1.4rem; }
.flip-face .icon svg { width: 28px; height: 28px; }
.flip-face p { color: var(--muted); }
.flip-face h3 { color: var(--cream); }
.flip-face ul { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.2rem; }
.flip-face li { padding-left: 1.6rem; position: relative; color: var(--cream); font-size: .98rem; line-height: 1.45; }
.flip-face li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 3px; border: 2px solid var(--mint); transform: rotate(45deg); }
.flip-btn {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid rgba(138,212,182,.55); color: var(--mint-soft);
  padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: background .25s, color .25s;
}
.flip-btn:hover { background: var(--mint); color: var(--teal-950); }
.flip-btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.flip-btn:hover svg { transform: rotate(180deg); }

/* Rubros: inclinación + giro */
.rubro { --rx: 0deg; --ry: 0deg; }
.rubro .flip-inner { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .9s var(--ease); }
.rubro.is-flipped .flip-inner { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.rubro.is-tilting .flip-inner { transition: transform .15s ease-out; }
.rubro .flip-face { min-height: 300px; }
.rubro .rubro-tag { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mint-soft); font-weight: 600; margin-bottom: .6rem; }

.method { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; list-style: none; counter-reset: m; }
.method li { counter-increment: m; padding: 1.1rem; border-radius: var(--radius-sm); border: 1px solid rgba(96,187,152,.25); font-size: .95rem; line-height: 1.4; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.method li::before { content: counter(m, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--mint-soft); margin-bottom: .3rem; }
.method li:hover { transform: translateY(-6px); border-color: var(--mint); background: rgba(96,187,152,.08); }
@media (max-width: 1020px) { .method { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .method { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Proceso (pasos interactivos) ---------- */
.steps { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps-nav { list-style: none; position: relative; display: grid; gap: .4rem; }
.steps-nav::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: rgba(18,48,47,.15); }
.steps-progress { position: absolute; left: 23px; top: 24px; width: 2px; height: 0; background: var(--teal-600); transition: height .6s var(--ease); }
.step-tab {
  display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
  background: none; border: 0; padding: .8rem .6rem .8rem 0; cursor: pointer; color: var(--ink-muted);
  font-size: 1.1rem; font-weight: 500; border-radius: 12px; position: relative;
}
.step-tab .dot { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 2px solid rgba(18,48,47,.2); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink-muted); transition: all .35s var(--ease); position: relative; z-index: 1; }
.step-tab[aria-selected="true"] { color: var(--ink); }
.step-tab[aria-selected="true"] .dot { background: var(--teal-600); border-color: var(--teal-600); color: var(--cream); transform: scale(1.1); box-shadow: 0 0 0 6px rgba(14,107,92,.15); }
.step-tab.is-done .dot { border-color: var(--teal-600); color: var(--teal-600); }
.step-tab:hover { color: var(--ink); }
.step-panels { position: relative; perspective: 1200px; }
.step-panel {
  background: #fff; border-radius: 24px; padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 30px 70px -30px rgba(3,51,55,.35); border: 1px solid rgba(18,48,47,.08);
}
.step-panel[hidden] { display: none; }
.step-panel.is-entering { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: rotateY(-14deg) translateX(30px); } to { opacity: 1; transform: none; } }
.step-panel h3 { color: var(--ink); }
.step-panel ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin: 1.5rem 0; }
.step-panel li { padding-left: 1.7rem; position: relative; color: var(--ink); line-height: 1.45; }
.step-panel li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(14,107,92,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6B5C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/62% no-repeat; }
.deliverable { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; border-radius: 12px; background: var(--cream); color: var(--ink); font-size: .97rem; }
.deliverable strong { color: var(--teal-600); }
.steps-controls { display: flex; gap: .6rem; margin-top: 1.4rem; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, transform .25s; }
.icon-btn svg { width: 20px; height: 20px; }
.section--light .icon-btn { color: var(--teal-600); }
.section--light .icon-btn:hover { background: var(--teal-600); color: var(--cream); }
.icon-btn:hover { transform: scale(1.06); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps-nav { grid-template-columns: repeat(4, 1fr); }
  .steps-nav::before, .steps-progress { display: none; }
  .step-tab { flex-direction: column; text-align: center; font-size: .82rem; padding: .3rem; gap: .4rem; }
  .step-panel ul { grid-template-columns: 1fr; }
}

/* ---------- La consultora: prisma 3D ---------- */
.org { background: radial-gradient(900px circle at 85% 20%, rgba(96,187,152,.14), transparent 60%), var(--teal-950); overflow-x: clip; }
.org-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.org-text p { color: var(--muted); }
.org-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 0; }
.org-tab { background: none; border: 1px solid rgba(138,212,182,.45); color: var(--cream); padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; font-size: .95rem; transition: all .3s var(--ease); }
.org-tab[aria-selected="true"], .org-tab:hover { background: var(--mint); color: var(--teal-950); border-color: var(--mint); }
.prism-wrap { perspective: 1600px; user-select: none; touch-action: pan-y; }
.prism {
  --half: 260px; --angle: 0deg;
  position: relative; height: 380px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--half) * -1)) rotateY(var(--angle));
  transition: transform 1s var(--ease);
  cursor: grab;
}
.prism.is-dragging { transition: none; cursor: grabbing; }
.prism-face {
  position: absolute; inset: 0;
  border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.6rem);
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900) 70%);
  border: 1px solid rgba(96,187,152,.45);
  box-shadow: inset 0 0 80px rgba(0,0,0,.25);
  display: flex; flex-direction: column; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.prism-face:nth-child(1) { transform: rotateY(0deg) translateZ(var(--half)); }
.prism-face:nth-child(2) { transform: rotateY(90deg) translateZ(var(--half)); }
.prism-face:nth-child(3) { transform: rotateY(180deg) translateZ(var(--half)); }
.prism-face:nth-child(4) { transform: rotateY(270deg) translateZ(var(--half)); }
.prism-face .face-label { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mint-soft); font-weight: 600; margin-bottom: .8rem; }
.prism-face h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--cream); }
.prism-face p { color: var(--muted); margin: 0; }
.prism-face ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.prism-face li { color: var(--cream); line-height: 1.35; }
.prism-face li strong { display: block; color: var(--mint-soft); font-weight: 600; }
.prism-face li span { font-size: .9rem; color: var(--muted); }
.prism-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; color: var(--mint-soft); }
.prism-hint { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .org-grid { grid-template-columns: 1fr; }
  .prism { height: 440px; }
  .prism-face ul { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid rgba(18,48,47,.15); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq .answer { padding: 0 0 1.4rem; color: var(--ink-muted); animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contacto / formulario ---------- */
.contact { background: radial-gradient(800px circle at 10% 0%, rgba(96,187,152,.14), transparent 60%), var(--teal-900); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(96,187,152,.14); color: var(--mint-soft); }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list a { color: var(--cream); text-decoration: none; }
.contact-list a:hover { color: var(--mint-soft); text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

.form-card { background: var(--cream); color: var(--ink); border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid rgba(18,48,47,.25); border-radius: 10px; padding: .8rem .9rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(14,107,92,.15); }
.field [aria-invalid="true"] { border-color: var(--danger-ink); box-shadow: 0 0 0 3px rgba(163,38,26,.12); }
.field .error { color: var(--danger-ink); font-size: .86rem; font-weight: 500; min-height: 0; }
.field .error:empty { display: none; }
.field .hint { font-size: .82rem; color: var(--ink-muted); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--teal-600); flex: none; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FBE3DF; color: var(--danger-ink); }
.form-status.is-ok { background: #DDF1E7; color: #0B5A45; }
.form-legal { font-size: .82rem; color: var(--ink-muted); margin: 1rem 0 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); padding: 4rem 0 2rem; font-size: .95rem; border-top: 1px solid rgba(96,187,152,.18); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mint-soft); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a, .linklike { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .linklike:hover { color: var(--cream); text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; text-align: left; }
.site-footer .muted { color: var(--muted); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(245,238,220,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 200; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px; margin-left: auto;
  background: var(--teal-950); color: var(--cream);
  border: 1px solid rgba(96,187,152,.45); border-radius: 18px; padding: 1.4rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .93rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions button { flex: 1 1 auto; padding: .7rem 1rem; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: .92rem; }
.btn-outline { background: none; border: 1.5px solid var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(245,238,220,.1); }
.btn-solid { background: var(--mint); border: 1.5px solid var(--mint); color: var(--teal-950); }
.btn-solid:hover { background: var(--mint-soft); }
.cookie-prefs { border-top: 1px solid rgba(245,238,220,.12); margin: 0 0 1rem; padding-top: 1rem; display: grid; gap: .9rem; }
.cookie-prefs[hidden] { display: none; }
.pref { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.pref strong { display: block; }
.pref span { font-size: .85rem; color: var(--muted); }
.switch { position: relative; flex: none; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: rgba(245,238,220,.25); transition: background .25s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--mint); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:disabled + .track { opacity: .6; }
.switch input:focus-visible + .track { outline: 3px solid var(--mint); outline-offset: 2px; }

/* ---------- Páginas internas (legales, 404, gracias) ---------- */
.page-hero { padding: calc(var(--header-h) + 4rem) 0 3rem; background: radial-gradient(700px circle at 80% 0%, rgba(96,187,152,.15), transparent 60%), var(--teal-900); }
.page-hero p { color: var(--muted); }
.legal { background: var(--cream); color: var(--ink); padding: 4rem 0 6rem; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.8rem; margin-top: 2.5rem; color: var(--ink); }
.legal h3 { font-size: 1.3rem; margin-top: 1.5rem; color: var(--ink); }
.legal ul { padding-left: 1.3rem; margin-bottom: 1em; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--teal-600); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: .7rem; border-bottom: 1px solid rgba(18,48,47,.15); vertical-align: top; }
.legal th { background: var(--cream-200); }
.table-scroll { overflow-x: auto; }
.toc { background: #fff; border-radius: 14px; padding: 1.2rem 1.5rem; border: 1px solid rgba(18,48,47,.1); }
.toc ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.notice { border-left: 4px solid var(--teal-600); background: #fff; padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; }

.center-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 2rem) 0 4rem; background: radial-gradient(700px circle at 50% 30%, rgba(96,187,152,.16), transparent 60%), var(--teal-900); }
.big-404 { font-family: var(--serif); font-size: clamp(7rem, 22vw, 14rem); line-height: .9; font-weight: 600; perspective: 800px; display: flex; justify-content: center; gap: .05em; margin-bottom: 1rem; }
.big-404 span { display: inline-block; color: var(--cream); animation: spinY 5s var(--ease) infinite; }
.big-404 span:nth-child(2) { color: var(--mint); animation-delay: .25s; }
.big-404 span:nth-child(3) { animation-delay: .5s; }
@keyframes spinY { 0%, 60% { transform: rotateY(0); } 80%, 100% { transform: rotateY(360deg); } }
.center-page p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.center-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; align-items: center; margin-top: 2rem; }
.check-anim { width: 96px; height: 96px; margin: 0 auto 1.5rem; }
.check-anim circle { stroke: var(--mint); stroke-width: 3; fill: none; stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw 1s var(--ease) forwards; }
.check-anim path { stroke: var(--cream); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .orbit-chip { animation: none; }
}
.form-card .btn--block { margin-top: 1.6rem; }
#rubros h3#metodo-seleccion { margin-top: clamp(3rem, 6vw, 4.5rem); }
#rubros .method { margin-top: 1.2rem; }
.hero-rot { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin-bottom: .6rem; }
.hero-rot .rotator span { font-style: italic; }
.site-footer .brand { margin-bottom: 1rem; }
ol.method { padding: 0; }
.form-card a { color: var(--teal-600); font-weight: 600; }
.form-card a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .orbit-chip { font-size: .8rem; }
  .orbit-chip:nth-of-type(1) { top: -4%; }
  .orbit-chip:nth-of-type(3) { bottom: -5%; left: 2%; }
}

/* ======== v2: experiencia 3D ======== */
/* Carrusel 3D de servicios */
.svc-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: -1.5rem 0 1rem; }
.svc-pill { background: none; border: 1px solid rgba(138,212,182,.45); color: var(--cream); padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; font-size: .95rem; transition: all .3s var(--ease); }
.svc-pill[aria-selected="true"], .svc-pill:hover { background: var(--mint); color: var(--teal-950); border-color: var(--mint); }
.carousel3d { --cw: min(360px, 78vw); position: relative; height: 600px; perspective: 1500px; perspective-origin: 50% 30%; touch-action: pan-y; user-select: none; cursor: grab; }
.carousel3d.is-dragging { cursor: grabbing; }
.carousel3d::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 60px; background: radial-gradient(ellipse at center, rgba(96,187,152,.28), transparent 70%); filter: blur(10px); pointer-events: none; }
.ring { position: absolute; inset: 20px 0 0; transform-style: preserve-3d; }
.carousel3d.is-dragging .ring > .flip { transition: opacity .3s, filter .3s; }
.ring > .flip { position: absolute; top: 0; left: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2); transition: transform .9s var(--ease), opacity .6s, filter .6s; }
.ring > .flip:not(.is-front) .flip-back { visibility: hidden; }
.ring > .flip:not(.is-front) { opacity: .55; filter: saturate(.5) brightness(.8); }
.ring > .flip:not(.is-front) .flip-btn { pointer-events: none; }
.ring > .flip.is-front .flip-face { box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(138,212,182,.55); }
@media (max-width: 640px) { .carousel3d { height: 640px; perspective: 1100px; } }

/* Inclinación 3D genérica */
.tilt3d { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.tilt3d.is-tilting { transition: transform .12s ease-out; }

/* Mazo 3D de etapas */
.step-panels { isolation: isolate; touch-action: pan-y; cursor: grab; }
.step-panels::before, .step-panels::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 24px; background: #fff; border: 1px solid rgba(18,48,47,.08); box-shadow: 0 20px 50px -30px rgba(3,51,55,.35); }
.step-panels::before { transform: translate(14px, 14px) rotate(1.6deg); opacity: .7; }
.step-panels::after { transform: translate(28px, 28px) rotate(3.2deg); opacity: .4; }

/* Rubros: 5 tarjetas */
.cards--rubros { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rubro--featured .flip-face { background: linear-gradient(160deg, var(--teal-600), var(--teal-950)); border-color: rgba(138,212,182,.6); }

/* Quiénes somos */
.founder { display: flex; gap: 1.2rem; align-items: center; margin: 1.6rem 0; padding: 1.3rem; border-radius: 20px; background: linear-gradient(150deg, rgba(14,107,92,.5), rgba(2,36,39,.6)); border: 1px solid rgba(138,212,182,.4); box-shadow: var(--shadow); }
.founder-badge { flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--teal-950); background: linear-gradient(140deg, var(--mint-soft), var(--mint)); transform: translateZ(30px); }
.founder p { margin: 0; }
.founder-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--cream); }
.founder-role { color: var(--mint-soft); font-size: .9rem; font-weight: 500; margin-bottom: .4rem !important; }
.founder-bio { color: var(--muted); font-size: .95rem; }
.prism-tip { font-size: .92rem; }
.prism-hint { text-align: center; margin-top: 1.4rem; }
@media (max-width: 480px) { .founder { flex-direction: column; align-items: flex-start; } }
.founder { transform-style: preserve-3d; }
.rubro h3 { font-size: clamp(1.25rem, 1.6vw, 1.45rem); hyphens: auto; overflow-wrap: break-word; }
.founder-photo { flex: none; width: 120px; height: 120px; border-radius: 22px; padding: 4px; background: linear-gradient(140deg, var(--mint-soft), var(--mint) 60%, var(--teal-600)); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transform: translateZ(40px); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
@media (max-width: 480px) { .founder-photo { width: 104px; height: 104px; } }

/* ======== v3: historia 3D, experiencias, postulaciones + ATS ======== */
.story { padding: 0; height: 400vh; background: radial-gradient(1200px circle at 50% 40%, #04403F, var(--teal-950) 70%); }
.story-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-texts { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.story-step { position: absolute; max-width: 430px; padding: 1.6rem 1.8rem; border-radius: 20px; background: rgba(2,36,39,.72); border: 1px solid rgba(138,212,182,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(30px) rotateX(12deg); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.story-step.is-active { opacity: 1; transform: none; }
.story-step h3 { color: var(--cream); margin-bottom: .4rem; }
.story-step p { color: var(--muted); margin: 0; }
.story-num { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--mint-soft); margin-bottom: .4rem; }
.story .eyebrow { position: absolute; top: calc(var(--header-h) + 1.5rem); }
.story-progress { position: absolute; left: 0; right: 0; bottom: 2.2rem; height: 3px; background: rgba(245,238,220,.12); border-radius: 3px; overflow: hidden; }
.story-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--mint-soft)); }
@media (max-width: 760px) { .story-step { left: 0; right: 0; bottom: 5rem; max-width: none; } .story-texts { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; } .story-sticky { position: relative; height: auto; padding: 6rem 0; }
  .story-canvas { opacity: .35; } .story-texts { display: grid; gap: 1rem; }
  .story-step { position: static; opacity: 1; transform: none; max-width: none; } .story .eyebrow { position: static; }
}

.experiences { background: var(--teal-900); }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-bottom: 2.5rem; }
.case { padding: 1.8rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--teal-800), var(--teal-950)); border: 1px solid rgba(96,187,152,.3); }
.case-tag { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mint-soft); font-weight: 600; }
.case-desc { color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.quote { margin: 0; padding: 1.8rem; border-radius: var(--radius); background: var(--cream); color: var(--ink); }
.quote blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.quote figcaption { color: var(--ink-muted); font-size: .92rem; }

.cv-section { background: radial-gradient(800px circle at 90% 10%, rgba(96,187,152,.12), transparent 60%), var(--teal-950); border-top: 1px solid rgba(96,187,152,.15); }
.cv-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cv-points { list-style: none; display: grid; gap: .8rem; margin-top: 1.6rem; }
.cv-points li { padding-left: 1.8rem; position: relative; color: var(--cream); }
.cv-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border-radius: 3px; border: 2px solid var(--mint); transform: rotate(45deg); }
@media (max-width: 900px) { .cv-grid { grid-template-columns: 1fr; } }
.btn--alt { background: var(--teal-600); color: var(--cream); box-shadow: 0 10px 30px -12px rgba(14,107,92,.7); }
.btn--alt:hover { background: var(--teal-700); color: var(--cream); }
.dropzone { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; border: 2px dashed rgba(14,107,92,.45); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--teal-600); background: #F3FBF7; transform: translateY(-2px); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid var(--teal-600); outline-offset: 2px; }
.dz-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(14,107,92,.12); color: var(--teal-600); }
.dz-icon svg { width: 24px; height: 24px; }
.dz-text { color: var(--ink); font-size: .95rem; word-break: break-word; }
.ats { grid-column: 1 / -1; border-radius: 16px; background: #fff; border: 1px solid rgba(18,48,47,.12); padding: 1.3rem; }
.ats[hidden] { display: none; }
.ats-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ats-ring { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; }
.ats-ring circle { fill: none; stroke-width: 10; }
.ats-track { stroke: rgba(18,48,47,.1); }
.ats-bar { stroke: var(--teal-600); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.2s var(--ease), stroke .3s; }
.ats-score { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; margin: 0; color: var(--ink); }
.ats-label { margin: .2rem 0 0; color: var(--ink-muted); font-weight: 500; }
.ats-checks { list-style: none; display: grid; gap: .45rem; margin: 0 0 .8rem; padding: 0; }
.ats-checks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .4rem; font-size: .92rem; color: var(--ink); line-height: 1.4; }
.ats-checks li span:first-child { font-weight: 700; }
.ats-checks .ok span:first-child { color: #0B5A45; }
.ats-checks .bad span:first-child { color: var(--danger-ink); }
.ats-checks small { display: block; color: var(--ink-muted); }
.ats-kw { display: flex; flex-wrap: wrap; gap: .35rem; }
.ats-kw .chip { font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; background: #DDF1E7; color: #0B5A45; }
.ats-kw .chip.miss { background: #F3EEE2; color: var(--ink-muted); }
@media (max-width: 1100px) and (min-width: 961px) { .nav ul { gap: .9rem; } .nav a:not(.btn) { font-size: .9rem; } }
html, body { overflow-x: clip; }
#servicios { overflow-x: clip; }


/* Barra de avance automático (10 s) con pausa */
.auto-bar { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; }
.carousel3d + .auto-bar { justify-content: center; margin-top: 0; }
/* (sin botón de pausa) */ .auto-toggle-old { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid currentColor; background: none; cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--mint-soft); flex: none; transition: background .2s, color .2s; }
.section--light .auto-toggle { color: var(--teal-600); }
.auto-toggle:hover { background: var(--mint); color: var(--teal-950); border-color: var(--mint); }
.auto-ico { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.is-paused .auto-ico { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; border-right: 0; }
.auto-track { flex: 1; max-width: 260px; height: 3px; border-radius: 3px; background: rgba(138,212,182,.2); overflow: hidden; }
.section--light .auto-track { background: rgba(14,107,92,.15); }
.auto-fill { display: block; height: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.section--light .auto-fill { background: var(--teal-600); }

.carousel3d + .auto-bar, [data-steps] + .auto-bar { margin-top: .4rem; }
.auto-track { max-width: 180px; height: 2px; }

/* Portada: ondas 3D de puntos */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero > .container, .hero .scroll-cue { position: relative; z-index: 1; }

/* Títulos palabra por palabra */
.reveal.split { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.split.is-in .w > span { transform: none; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem; border-radius: 999px; background: var(--mint); color: var(--teal-950); text-decoration: none; font-weight: 600; box-shadow: 0 14px 34px -10px rgba(0,0,0,.55); transition: transform .3s var(--ease), padding .3s var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover { color: var(--teal-950); transform: translateY(-3px); padding-right: 1.1rem; }
.wa-float:hover .wa-label { max-width: 120px; }
.cookie-banner.is-visible ~ .wa-float, .cookie-banner.is-visible + .wa-float { display: none; }
@media print { .wa-float { display: none; } }
