/* =====================================================================
   HYGEIA Cuidados — Estilos de la web institucional
   Paleta oficial: Verde Hygeia #12463F · Salvia #2F6E57 · Oro Copa #C6A24A
                   Eucalipto #8DB3A2 · Menta niebla #E8F0EC · Marfil #FAF8F3 · Grafito #24312E
   Tipografías: Cinzel (títulos) · Montserrat (textos)
   ===================================================================== */

/* ---------- Tipografías (alojadas en el propio sitio, licencia OFL) ---------- */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --font-title: "Cinzel", "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Claro */
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --surface-2: #E8F0EC;
  --ink: #12463F;
  --text: #24312E;
  --muted: #4A5A56;
  --line: #DCE5E0;
  --primary: #12463F;
  --primary-hover: #0D3832;
  --on-primary: #FAF8F3;
  --accent: #C6A24A;
  --accent-ink: #8C6E22;
  --icon-bg: #E8F0EC;
  --icon-ink: #12463F;
  --deep: #12463F;
  --deep-2: #0E3A34;
  --on-deep: #FAF8F3;
  --on-deep-muted: #C9DAD2;
  --shadow: 0 18px 40px -22px rgba(18, 70, 63, .35);
  --focus: #C6A24A;

  /* Emblema */
  --logo-leaf: #2F6E57;
  --logo-snake: #12463F;
  --logo-snake-back: #0A2E29;
  --logo-snake-light: #3E8466;
  --logo-eye: #FAF8F3;
  --halo: radial-gradient(closest-side, #E8F0EC 0%, rgba(232, 240, 236, .55) 55%, rgba(232, 240, 236, 0) 100%);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0B1A17;
  --surface: #11251F;
  --surface-2: #142E28;
  --ink: #E8F0EC;
  --text: #D5E1DB;
  --muted: #A3B9AF;
  --line: #22403A;
  --primary: #D9BC6B;
  --primary-hover: #E6CB82;
  --on-primary: #0B1A17;
  --accent: #D9BC6B;
  --accent-ink: #D9BC6B;
  --icon-bg: #1B3A33;
  --icon-ink: #BFD8CC;
  --deep: #0E2621;
  --deep-2: #081512;
  --on-deep: #EEF4F1;
  --on-deep-muted: #A9C2B7;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .6);
  --focus: #D9BC6B;

  --logo-leaf: #6FA58C;
  --logo-snake: #7FB89E;
  --logo-snake-back: #3C6E5D;
  --logo-snake-light: #B4DCC9;
  --logo-eye: #0B1A17;
  --halo: radial-gradient(closest-side, #173A32 0%, rgba(23, 58, 50, .5) 55%, rgba(23, 58, 50, 0) 100%);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::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;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 0 1.7em; font-size: 1.02rem; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.icon-btn--light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: var(--on-deep); }
.icon-btn--light:hover { border-color: var(--on-deep); background: rgba(255, 255, 255, .12); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; margin-top: auto;
  min-height: 44px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
}
.header__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__emblem img { width: 42px; height: 42px; }
.brand__word { width: 118px; color: var(--ink); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__list a:hover { background: var(--surface-2); color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.icon--sol, [data-theme="dark"] .icon--luna { display: none; }
[data-theme="dark"] .icon--sol { display: block; }
.nav-toggle { display: none; }
.icon--cerrar { display: none; }
.nav-open .icon--menu { display: none; }
.nav-open .icon--cerrar { display: block; }

/* ---------- Inicio ---------- */
.hero { position: relative; overflow: hidden; padding: 32px 0 24px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; min-height: min(680px, calc(100svh - var(--header-h) - 32px)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--accent); }
.eyebrow--light { color: var(--accent); }
.hero__title {
  margin-top: 22px;
  font-family: var(--font-title); font-weight: 600;
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); line-height: 1.08; letter-spacing: .005em;
  text-wrap: balance;
}
.hero__lead { margin-top: 24px; max-width: 34ch; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--text); }
.hero__quote { margin-top: 12px; font-style: italic; color: var(--muted); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); }
.hero__note .icon { color: var(--accent-ink); }
.hero__visual { position: relative; display: grid; place-items: center; width: 100%; }
.hero__halo { position: absolute; inset: -8% -12%; background: var(--halo); border-radius: 50%; }
.hero__visual::before {
  content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.hero__visual::after {
  content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--logo-leaf) 35%, transparent);
}
.hero__emblem { position: relative; width: min(470px, 100%); z-index: 1; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tint { background: var(--surface-2); }
.section--deep { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.section--deep .section__title { color: var(--on-deep); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: var(--accent); }
.section__title {
  margin-top: 16px;
  font-family: var(--font-title); font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); line-height: 1.15; text-wrap: balance;
}
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 56ch; }

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 36px 32px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--logo-leaf) 45%, var(--line)); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.service__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--icon-bg); color: var(--icon-ink); margin-bottom: 8px;
  transition: transform .35s var(--ease);
}
.service__icon .icon { width: 28px; height: 28px; }
.card:hover .service__icon { transform: rotate(-6deg) scale(1.05); }
.card__title { font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.card__text { color: var(--muted); margin-bottom: 10px; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pillar {
  padding: 32px 26px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.pillar:hover { background: var(--surface); transform: translateY(-4px); }
.pillar__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent-ink); margin-bottom: 20px;
}
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar__title { font-size: 1.02rem; font-weight: 700; letter-spacing: .01em; line-height: 1.35; }
.pillar__text { margin-top: 8px; color: var(--muted); font-size: .98rem; }

/* ---------- Quién está detrás ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about__photo { margin: 0; position: relative; }
.about__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--accent);
}
.about__photo img, .about__placeholder {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg);
}
.about__placeholder {
  display: grid; place-content: center; justify-items: center; gap: 12px;
  background: var(--surface-2); color: var(--muted); font-size: .85rem; letter-spacing: .12em;
}
.about__placeholder .icon { width: 48px; height: 48px; color: var(--logo-leaf); }
.about__role { margin-top: 10px; font-weight: 600; color: var(--accent-ink); }
.about__desc { margin-top: 20px; color: var(--text); max-width: 60ch; }
.creds { margin-top: 28px; display: grid; gap: 14px; max-width: 640px; }
.cred { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cred__label { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.cred__label .icon { width: 16px; height: 16px; }
.cred--titulo { display: flex; align-items: center; gap: 16px; }
.cred--titulo .cred__label { margin-bottom: 2px; }
.cred__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--icon-bg); color: var(--icon-ink); }
.cred__ico .icon { width: 24px; height: 24px; }
.cred__main { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.3; }
.exp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
.exp li { position: relative; padding-left: 16px; display: grid; gap: 2px; }
.exp li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.exp strong { font-size: .95rem; color: var(--ink); line-height: 1.35; }
.exp span { font-size: .86rem; color: var(--muted); }
.preview-flag {
  margin: 0 0 28px; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px dashed var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 500;
}
.preview-flag--dark { margin: 20px auto 0; color: var(--accent); max-width: 560px; }

/* ---------- Valoraciones (carrusel) ---------- */
.section--deep::before {
  content: ""; position: absolute; width: 640px; aspect-ratio: 1; right: -220px; top: -260px; border-radius: 50%;
  border: 1px solid rgba(198, 162, 74, .25);
}
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 10px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px;
  padding: 32px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.review:hover { background: rgba(255, 255, 255, .08); border-color: rgba(217, 188, 107, .55); transform: translateY(-4px); }
.stars { display: flex; gap: 4px; }
.star { width: 20px; height: 20px; fill: rgba(255, 255, 255, .18); }
.star--on { fill: #D9BC6B; }
.review__text { margin: 0; font-size: 1.04rem; line-height: 1.7; color: var(--on-deep); }
.review__text p::before { content: "“"; font-family: var(--font-title); color: #D9BC6B; margin-right: 2px; }
.review__text p::after { content: "”"; font-family: var(--font-title); color: #D9BC6B; margin-left: 2px; }
.review__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.review__name { font-weight: 600; }
.review__date { font-size: .85rem; color: var(--on-deep-muted); }
.carousel__controls { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.carousel__dots { display: flex; gap: 4px; }
.carousel__dots button {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.carousel__dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .35);
  transition: width .35s var(--ease), background-color .35s var(--ease);
}
.carousel__dots button[aria-current="true"]::before { width: 26px; background: #D9BC6B; }
.icon--play { display: none; }
.is-paused .icon--pausa { display: none; }
.is-paused .icon--play { display: block; }

/* ---------- Presupuesto ---------- */
.cta {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; width: 320px; aspect-ratio: 1; right: -120px; bottom: -160px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.cta__side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.cta__phone:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Pie ---------- */
.footer { background: var(--deep-2); color: var(--on-deep-muted); padding: 72px 0 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-deep); text-decoration: underline; text-underline-offset: 4px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__brand img { width: 56px; height: 56px; }
.footer__word { width: 170px; color: var(--on-deep); margin: 18px 0 14px; }
.footer__brand p { max-width: 32ch; }
.footer__title { color: var(--on-deep); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer__nav li a, .footer__contact li a, .footer__contact li span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 16px;
  border-radius: 999px; background: #12463F; color: #FAF8F3; text-decoration: none; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45), 0 0 0 2px rgba(198, 162, 74, .7);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.02); }
[data-theme="dark"] .wa-float { background: #D9BC6B; color: #0B1A17; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(198, 162, 74, .55);
  animation: wa-pulse 3.2s var(--ease) 4s infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 162, 74, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(198, 162, 74, 0); } }

/* ---------- Emblema: colores ---------- */
.hy-emblem { overflow: visible; }
.hy-branch { fill: none; stroke: var(--logo-leaf); stroke-width: 5.5; stroke-linecap: round; }
.hy-leaf { fill: var(--logo-leaf); }
.hy-bowl, .hy-stem { fill: url(#hyGold); }
.hy-inner { fill: url(#hyGoldIn); }
.hy-foot { fill: #EBD48A; }
.hy-snake-body { fill: var(--logo-snake); stroke: var(--logo-snake); stroke-width: .6; stroke-linejoin: round; }
.hy-snake-back { fill: var(--logo-snake-back); stroke: var(--logo-snake-back); stroke-width: .6; }
.hy-snake-light { fill: var(--logo-snake-light); }
.hy-eye { fill: var(--logo-eye); }
/* ids con sufijo por instancia */
#intro .hy-bowl, #intro .hy-stem { fill: url(#hyGoldI); }
#intro .hy-inner { fill: url(#hyGoldInI); }
.hero__emblem .hy-bowl, .hero__emblem .hy-stem { fill: url(#hyGoldH); }
.hero__emblem .hy-inner { fill: url(#hyGoldInH); }

/* ---------- Emblema: animación ---------- */
/* La serpiente del inicio ondula siempre (SMIL en el SVG); acá la lengua asoma cada tanto. */
.hy-tongue { stroke: #B4483C; transform-box: fill-box; transform-origin: 0% 50%; transform: scaleX(0); animation: hy-lengua 4.8s ease-in-out 3s infinite; }
@keyframes hy-lengua { 0%, 86%, 100% { transform: scaleX(0); } 89%, 95% { transform: scaleX(1); } 92% { transform: scaleX(.6); } }
.hy-head { animation: hy-sway 5.5s ease-in-out 2.6s infinite; }
@keyframes hy-sway {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  30% { transform: rotate(-7deg) translateX(1.2px); }
  55% { transform: rotate(4deg) translateX(-.6px); }
  75% { transform: rotate(-2deg) translateX(.4px); }
}
.hy-anim .hy-branch { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hy-draw .9s var(--ease-out) .1s forwards; }
.hy-anim .hy-leaf { transform-box: fill-box; transform-origin: 0% 50%; transform: scale(0); animation: hy-leaf .55s var(--ease-out) forwards; animation-delay: calc(180ms + var(--i) * 38ms); }
.hy-anim .hy-cup { opacity: 0; transform: translateY(14px); animation: hy-rise .7s var(--ease-out) .45s forwards; }
.hy-anim .hy-snake-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hy-draw 1.25s cubic-bezier(.45, 0, .2, 1) .85s forwards; }
.hy-anim .hy-head-wrap { opacity: 0; animation: hy-fade .35s var(--ease) 1.95s forwards; }
@keyframes hy-draw { to { stroke-dashoffset: 0; } }
@keyframes hy-leaf { to { transform: scale(1); } }
@keyframes hy-rise { to { opacity: 1; transform: none; } }
@keyframes hy-fade { to { opacity: 1; } }

/* ---------- Bienvenida ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg); transition: opacity .7s var(--ease), visibility .7s;
}
.intro__mark { width: min(260px, 60vw); display: grid; justify-items: center; gap: 22px; transition: transform .8s var(--ease); }
.intro__word { width: 86%; color: var(--ink); opacity: 0; transform: translateY(8px); animation: hy-rise .7s var(--ease-out) 1.7s forwards; }
.intro.is-done { opacity: 0; visibility: hidden; }
.intro.is-done .intro__mark { transform: scale(1.06); }
.no-intro .intro { display: none; }
html:not(.js) .intro { display: none; }

/* ---------- Aparición al desplazarse ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal:nth-child(2) { transition-delay: 80ms; }
.js .hero .reveal:nth-child(3) { transition-delay: 160ms; }
.js .hero .reveal:nth-child(4) { transition-delay: 220ms; }
.js .hero .reveal:nth-child(5) { transition-delay: 300ms; }
.js .hero .reveal:nth-child(6) { transition-delay: 380ms; }

/* ---------- Página legal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; margin-top: 44px; }
.legal p, .legal li { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; padding: 0 4px; border-radius: 4px; }


/* =====================================================================
   EFECTOS (todos se apagan con "reducir movimiento")
   ===================================================================== */

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--logo-leaf), var(--accent)); }

/* Logo de la barra: insignia con la serpiente en movimiento */
.brand__badge {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #1B5A51, #0E3A34 70%);
  box-shadow: inset 0 0 0 1.5px rgba(198, 162, 74, .85), 0 6px 16px -8px rgba(18, 70, 63, .7);
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease);
  --logo-leaf: #CFE3D8; --logo-snake: #9FD0B9; --logo-snake-back: #4E8C72; --logo-snake-light: #CFEADD; --logo-eye: #0E3A34;
}
.brand__badge::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid transparent; border-top-color: rgba(198, 162, 74, .9); border-right-color: rgba(198, 162, 74, .35);
  animation: hy-orbita 6s linear infinite;
}
.brand__badge .hy-emblem { width: 44px; height: 44px; margin-top: 2px; }
.brand__badge .hy-bowl, .brand__badge .hy-stem { fill: url(#hyGoldM); }
.brand__badge .hy-inner { fill: url(#hyGoldInM); }
.brand__badge .hy-branch { stroke-width: 9; }
.brand:hover .brand__badge { transform: rotate(-8deg) scale(1.07); box-shadow: inset 0 0 0 1.5px #D9BC6B, 0 10px 22px -8px rgba(18, 70, 63, .8); }
.brand__word { transition: letter-spacing .4s var(--ease), opacity .3s; }
.header.is-scrolled .brand__badge { width: 40px; height: 40px; }
.header.is-scrolled .brand__badge .hy-emblem { width: 38px; height: 38px; }
@keyframes hy-orbita { to { transform: rotate(360deg); } }

/* Navegación: indicador de la sección actual */
.nav__list a { position: relative; }
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__list a[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* Inicio: título palabra por palabra */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .9s var(--ease-out), opacity .6s var(--ease); transition-delay: calc(var(--k) * 70ms + 120ms); }
.split.is-in .w > span { transform: none; opacity: 1; }
.js .hero__title.split { opacity: 1; transform: none; }

/* Inicio: hojas que flotan y órbita alrededor del emblema */
.hero__leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.leaf { position: absolute; width: 40px; height: auto; aspect-ratio: 52 / 28; overflow: visible; fill: var(--logo-leaf); opacity: .28; animation: hy-flotar 18s ease-in-out infinite; }
.leaf__v { fill: none; stroke: var(--bg); stroke-width: 1.4; stroke-linecap: round; opacity: .7; }
.leaf--1 { left: 4%;  top: 18%; animation-duration: 19s; }
.leaf--2 { left: 46%; top: 8%;  width: 22px; animation-duration: 23s; animation-delay: -6s; }
.leaf--3 { left: 92%; top: 22%; width: 28px; animation-duration: 21s; animation-delay: -3s; }
.leaf--4 { left: 38%; top: 82%; width: 26px; animation-duration: 25s; animation-delay: -9s; }
.leaf--5 { left: 8%;  top: 72%; width: 20px; animation-duration: 17s; animation-delay: -12s; }
.leaf--6 { left: 86%; top: 78%; width: 30px; animation-duration: 22s; animation-delay: -4s; }
@keyframes hy-flotar {
  0%, 100% { transform: translate(0, 0) rotate(-12deg); }
  25% { transform: translate(14px, -22px) rotate(8deg); }
  50% { transform: translate(-8px, -36px) rotate(-4deg); }
  75% { transform: translate(-16px, -14px) rotate(14deg); }
}
.hero__visual { perspective: 900px; }
.hero__emblem { transition: transform .6s var(--ease-out); will-change: transform; }
.hero__visual::after { animation: hy-orbita 60s linear infinite; }
.orbit { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; animation: hy-orbita 14s linear infinite; pointer-events: none; }
.orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px var(--accent); }

/* Botón principal: brillo que cruza + efecto imán (JS) */
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%);
  transform: translateX(-120%); animation: hy-brillo 5.5s var(--ease) 2.5s infinite;
}
.btn--shine:hover::after { animation-duration: 1.2s; }
@keyframes hy-brillo { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
[data-magnetic] { transition: transform .35s var(--ease-out), background-color .25s var(--ease), box-shadow .25s var(--ease); }

/* Tarjetas: luz que sigue al cursor + leve inclinación 3D (JS) */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.card::before, .pillar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
}
.pillar { position: relative; overflow: hidden; }
.card:hover::before, .pillar:hover::before { opacity: 1; }
.card > *, .pillar > * { position: relative; }

/* Íconos que se dibujan al aparecer */
.js .reveal .service__icon svg *, .js .reveal .pillar__icon svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .reveal.is-in .service__icon svg *, .js .reveal.is-in .pillar__icon svg * { animation: hy-draw 1.1s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 90ms + 250ms); }
.pillar__icon { transition: transform .45s var(--ease-out), background-color .3s var(--ease), color .3s var(--ease); }
.pillar:hover .pillar__icon { transform: translateY(-3px) rotate(8deg); background: var(--accent); color: #12463F; }

/* Títulos de sección: filete dorado que se dibuja */
.section__title { position: relative; }
.section__head .section__title::after {
  content: ""; display: block; width: 64px; height: 2px; margin-top: 18px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .35s;
}
.section__head--center .section__title::after { margin-inline: auto; transform-origin: center; background: linear-gradient(90deg, transparent, var(--accent), transparent); width: 120px; }
.section__head.is-in .section__title::after { transform: scaleX(1); }
html:not(.js) .section__head .section__title::after { transform: none; }

/* Separadores ondulados entre secciones */
.section--wave { position: relative; }
.wave { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(34px, 5vw, 70px); fill: var(--bg); pointer-events: none; z-index: 1; }
.section--wave > .container { position: relative; z-index: 2; }
.footer.section--wave { padding-top: calc(72px + 40px); }

/* Valoraciones: comilla gigante con parallax */
.big-quote {
  position: absolute; left: 4%; top: 60px; font-family: var(--font-title); font-size: clamp(12rem, 22vw, 22rem); line-height: 1;
  color: rgba(217, 188, 107, .08); pointer-events: none; z-index: 0; will-change: transform;
}
.review { transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease-out), opacity .45s var(--ease); }
.carousel__track:hover .review:not(:hover) { opacity: .72; }

/* Botón flotante: entra con rebote */
.wa-float { animation: hy-entra .8s cubic-bezier(.34, 1.56, .64, 1) 1.2s backwards; }
@keyframes hy-entra { from { transform: translateY(40px) scale(.6); opacity: 0; } }

@media (hover: none) { .card::before, .pillar::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .leaf, .orbit, .brand__badge::after, .btn--shine::after, .hero__visual::after, .wa-float { animation: none !important; }
  .split .w > span { transform: none; opacity: 1; }
  .scroll-progress { display: none; }
  .js .reveal .service__icon svg *, .js .reveal .pillar__icon svg * { stroke-dashoffset: 0; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .exp { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; }
  .nav__list a { width: 100%; font-size: 1.05rem; min-height: 52px; }
  .hero { padding-top: 16px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .hero__visual { order: -1; max-width: 320px; margin: 8px auto 0; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__photo { max-width: 420px; }
  .cta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .leaf--2, .leaf--4 { display: none; }
  .big-quote { font-size: 9rem; }
  .container { width: min(1180px, 100% - 40px); }
  .cards--3, .pillars { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: 88%; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { max-width: 260px; }
  .brand__word { width: 104px; }
  .wa-float { padding: 0; width: 60px; justify-content: center; }
  .wa-float__label { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hy-head, .wa-float::before, .hy-tongue { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
}

/* Ajustes de efectos */
.hero__emblem { transform: translateY(var(--py, 0px)); }
.js .reveal.is-in[data-tilt] { transition: opacity .8s var(--ease-out), transform .3s var(--ease-out), background-color .3s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); transition-delay: 0s; }

/* Foto de la responsable: círculo con la foto completa */
.about { align-items: center; }
.about__photo { overflow: visible; justify-self: center; width: min(380px, 100%); position: relative; }
.about__photo::before { inset: -14px; border-radius: 50%; border: 1.5px solid var(--accent); }
.about__photo::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  border: 2px solid transparent; border-top-color: var(--accent); animation: hy-orbita 9s linear infinite;
}
.about__photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  box-shadow: 0 24px 50px -28px rgba(18, 70, 63, .55); transition: transform .8s var(--ease-out); }
.about__photo:hover img { transform: scale(1.02); }
@media (max-width: 900px) {
  .about__photo { width: min(250px, calc(100% - 40px)); margin-inline: auto; }
  .about__body { text-align: center; }
  .about__body .eyebrow { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .about__photo::after { animation: none; } }

/* Lugares a completar (solo en vista previa) */
.ph { color: var(--muted) !important; font-style: italic; border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 10px; padding: 8px 12px; display: inline-block; }
li.ph { display: block; font-size: .88rem; }
.about__desc.ph { display: block; max-width: 52ch; }

/* Servicios: 4 principales + prácticas */
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cards--4 .card__title { font-size: 1.22rem; }
.practicas { margin-top: 44px; }
.practicas__t { font-family: var(--font-title); font-size: 1.2rem; font-weight: 600; text-align: center; margin-bottom: 18px; }
.practicas__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.practica {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink);
  font-weight: 600; font-size: .95rem; line-height: 1.3; text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.practica:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--logo-leaf) 45%, var(--line)); box-shadow: var(--shadow); }
.practica:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.practica__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--icon-bg); color: var(--icon-ink); }
.practica__icon .icon { width: 20px; height: 20px; }
.practica__n { flex: 1; }
.practica__go { flex: none; opacity: .45; transition: transform .3s var(--ease), opacity .3s; }
.practica__go .icon { width: 16px; height: 16px; }
.practica:hover .practica__go { opacity: 1; transform: translateX(3px); }
@media (max-width: 1180px) { .cards--4, .practicas__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--4, .practicas__list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .practica, .practica__go { transition: none; } }

@media (max-width: 900px) {
  .creds { margin-inline: auto; text-align: left; }
}

/* Nosotros: la foto acompaña el texto (sin hueco debajo) y menos aire antes de Contacto */
@media (min-width: 901px) {
  .about { align-items: start; }
  .about__photo { position: sticky; top: calc(var(--header-h, 72px) + 48px); align-self: start; margin-top: 40px; }
}
#nosotros { padding-bottom: clamp(40px, 5vw, 72px); }
#nosotros + #contacto { padding-top: clamp(40px, 5vw, 72px); }
