/* =========================================================================
   Aurea Felix · Nutrióloga clínica
   Paleta de marca: #f6eaeb rubor · #c6858f rosa (PMS 500 C) · #4d4d4d grafito
                    #7daece cielo · #a3b695 salvia
   Tipografía: Cormorant (titulares) + Jost (texto y versalitas, eco del logotipo)
   ========================================================================= */
:root {
  --blush: #f6eaeb;
  --blush-2: #efdcde;
  --paper: #fdf9f9;
  --rose: #c6858f;
  --rose-ink: #9c4f5c;      /* rosa con contraste AA para texto y botones */
  --charcoal: #4d4d4d;
  --ink: #3a3a3a;
  --muted: #666062;
  --sky: #7daece;
  --sky-ink: #3c6f93;
  --sage: #a3b695;
  --sage-ink: #5a6f4c;
  --line: rgba(77, 77, 77, .14);

  --f-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --f-body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 24px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 1px 2px rgba(77, 50, 55, .06), 0 22px 44px -20px rgba(120, 60, 72, .32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--rose-ink); }
strong { font-weight: 500; color: var(--charcoal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2.5px solid var(--rose-ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* --------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(253, 249, 249, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-solid { background: rgba(253, 249, 249, .88); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.brand-af { width: 50px; height: auto; }
.brand-word { font: 500 .98rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; }
.brand-word small { display: block; font-weight: 400; font-size: .64rem; letter-spacing: .3em; color: var(--muted); margin-top: 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav-list a:not(.btn) { text-decoration: none; font-size: .92rem; letter-spacing: .04em; color: var(--charcoal); position: relative; padding: 6px 0; }
.nav-list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* --------------------------------------------------------------- buttons */
.btn {
  --bg: var(--rose-ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  font: 500 .98rem/1 var(--f-body); letter-spacing: .03em; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s;
  box-shadow: 0 12px 26px -14px rgba(156, 79, 92, .75); -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(156, 79, 92, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 42px; padding: 0 1.2em; font-size: .9rem; }
.btn-ghost { --bg: rgba(253, 249, 249, .6); --fg: var(--charcoal); border-color: rgba(77, 77, 77, .35); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: #fff; box-shadow: none; }
.btn-light { --bg: var(--paper); --fg: var(--rose-ink); box-shadow: none; }
.btn-ghost-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-ghost-light:hover { --bg: rgba(255, 255, 255, .12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(640px, 100svh); display: flex; align-items: center; padding-top: 76px; background: var(--blush); }
.hero-media { position: absolute; inset: -7% 0; z-index: -3; will-change: transform; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; background: var(--blush) url("assets/img/hero-poster.webp?v=20261002cb") center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(246, 234, 235, .97) 0%, rgba(246, 234, 235, .9) 34%, rgba(246, 234, 235, .62) 48%, rgba(246, 234, 235, 0) 68%),
  linear-gradient(180deg, rgba(246, 234, 235, .5) 0%, rgba(246, 234, 235, 0) 20%); }
.hero-ring { position: absolute; z-index: -2; width: min(64vw, 820px); aspect-ratio: 1; right: -12vw; top: 50%; margin-top: calc(min(64vw, 820px) / -2); color: var(--rose); opacity: .55; pointer-events: none; will-change: transform; }
.hero-ring svg, .cta-ring svg { width: 100%; height: 100%; overflow: visible; }
.hero-content { position: relative; padding-block: 60px 90px; will-change: transform; }
.hero-content > * { max-width: 620px; }
.eyebrow { font: 500 .76rem/1.3 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .9em; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--rose); flex: none; }
.hero-title { font-size: clamp(2.8rem, 6.2vw, 5.4rem); color: var(--charcoal); margin-bottom: 1.4rem; text-wrap: balance; }
.hero-title em { color: var(--rose-ink); white-space: nowrap; }
.hero-lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); font-weight: 300; color: var(--ink); max-width: 520px; margin-bottom: 2.1rem; }
.video-toggle { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(77, 77, 77, .25); background: rgba(253, 249, 249, .78); color: var(--charcoal); cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .3s; }
.video-toggle:hover { transform: scale(1.06); background: #fff; }
.video-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.video-toggle .ico-play { display: none; }
.video-toggle[aria-pressed="true"] .ico-play { display: block; }
.video-toggle[aria-pressed="true"] .ico-pause { display: none; }

/* tick rings (eco del dial del logotipo) */
.ticks line { stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.ticks line.long { stroke-width: 3.6; }

/* --------------------------------------------------------------- sections */
.section { padding-block: clamp(84px, 12vw, 150px); position: relative; }
.section-title { font-size: clamp(2.3rem, 4.6vw, 3.8rem); color: var(--charcoal); margin-bottom: 1.4rem; text-wrap: balance; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* about */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(44px, 7vw, 110px); align-items: center; }
.about-visual { position: relative; max-width: 480px; width: 100%; justify-self: center; }
.about-photo { border-radius: 240px 240px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--blush); will-change: transform; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; width: clamp(110px, 13vw, 150px); height: auto; right: -34px; bottom: 8%; padding: 14px; background: var(--paper); border-radius: 50%; box-shadow: var(--shadow); will-change: transform; }
.about-copy > p { color: var(--ink); font-weight: 300; max-width: 560px; font-size: 1.08rem; }
.about-logo { width: min(280px, 70%); height: auto; margin-top: 1.6rem; }

/* services */
.services { background: var(--blush); padding-top: 0; overflow: hidden; }
.services-band { height: clamp(220px, 32vw, 420px); margin-bottom: clamp(60px, 8vw, 110px); overflow: hidden; position: relative; will-change: transform; }
.services-band img { width: 100%; height: 124%; object-fit: cover; margin-top: -6%; }
.services-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, var(--blush)); }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { --tone: var(--rose-ink); --tint: rgba(198, 133, 143, .16); background: var(--paper); border-radius: var(--radius); padding: 30px 28px 28px; border: 1px solid rgba(198, 133, 143, .22); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.service[data-tone="sage"] { --tone: var(--sage-ink); --tint: rgba(163, 182, 149, .2); }
.service[data-tone="sky"] { --tone: var(--sky-ink); --tint: rgba(125, 174, 206, .2); }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service svg { width: 56px; height: 56px; padding: 8px; border-radius: 18px; color: var(--tone); background: var(--tint); margin-bottom: 22px; transition: transform .5s var(--ease); }
.service:hover svg { transform: rotate(-6deg) scale(1.05); }
.service h3 { font-size: 1.6rem; color: var(--charcoal); margin-bottom: .55rem; font-weight: 500; }
.service p { font-size: .98rem; color: var(--muted); margin: 0; font-weight: 300; }

/* process + gauge */
.process { background: var(--paper); }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.gauge-wrap { position: sticky; top: 120px; align-self: start; }
.gauge { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; color: #e6c9cd; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge line { transition: stroke .5s var(--ease); }
.gauge line.on { stroke: var(--rose); }
.no-js .gauge line { stroke: var(--rose); }
.gauge-af { position: absolute; left: 50%; top: 50%; width: 42%; height: auto; transform: translate(-50%, -50%); }
.gauge-count { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font: 500 .74rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.step { display: flex; gap: 18px; padding: 22px 24px; border-radius: 20px; background: var(--blush); border: 1px solid transparent; transition: border-color .4s, background-color .4s; }
.step.is-current { background: #fff; border-color: rgba(198, 133, 143, .45); }
.step-n { font: 500 1.4rem/1 var(--f-display); color: var(--rose-ink); padding-top: 4px; font-variant-numeric: lining-nums; }
.step h3 { font-size: 1.5rem; color: var(--charcoal); margin-bottom: .25rem; font-weight: 500; }
.step p { margin: 0; font-size: .98rem; color: var(--muted); font-weight: 300; }

/* faq */
.faq { background: var(--blush); }
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: 18px; border: 1px solid rgba(198, 133, 143, .22); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative; font: 500 1.45rem/1.25 var(--f-display); color: var(--charcoal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.8px solid var(--rose-ink); border-bottom: 1.8px solid var(--rose-ink); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translate(0, 4px) rotate(225deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); font-weight: 300; }
.faq details a { color: var(--rose-ink); }


/* horario y ubicación */
.visit { background: var(--paper); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 100px); }
.status { display: inline-flex; align-items: center; gap: .6em; font-weight: 500; font-size: .95rem; color: var(--charcoal); background: rgba(163, 182, 149, .22); padding: 8px 16px; border-radius: 999px; margin-bottom: 1.4rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink); box-shadow: 0 0 0 4px rgba(90, 111, 76, .2); }
.status.is-closed { background: var(--blush); }
.status.is-closed::before { background: var(--rose-ink); box-shadow: 0 0 0 4px rgba(156, 79, 92, .18); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours-table th, .hours-table td { padding: 15px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 300; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--charcoal); font-weight: 500; }
.hours-table tr.is-today th::after { content: "Hoy"; margin-left: .7em; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--rose-ink); padding: 3px 9px; border-radius: 999px; vertical-align: 2px; }
.map-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transform: translateZ(0); }
.map-art { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.map-card:hover .map-art { transform: scale(1.04); }
.map-cta { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: .5em; background: var(--rose-ink); color: #fff; font-weight: 500; padding: 12px 20px; border-radius: 999px; letter-spacing: .03em; }
.map-cta svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.map-card:hover .map-cta svg { transform: translateX(4px); }
.addr { font-style: normal; margin-top: 22px; font-size: 1.1rem; }
.addr a { color: var(--charcoal); text-decoration-color: rgba(156, 79, 92, .5); text-underline-offset: 4px; }
.wa-note { margin: 1.1rem 0 0; font-size: .9rem; color: var(--muted); }
.wa-note strong { color: var(--rose-ink); }
.cta-note { margin: 1.1rem 0 0; font-size: .95rem !important; opacity: .9; }
.footer-small { font-size: .82rem; color: #bdb6b7; }
.footer-list + .footer-list { margin-top: .8rem; }

/* cta */
.cta { background: var(--rose-ink); color: #fff; text-align: center; overflow: hidden; }
.cta-ring { position: absolute; width: min(110vw, 1100px); aspect-ratio: 1; left: 50%; top: 50%; margin: calc(min(110vw, 1100px) / -2) 0 0 calc(min(110vw, 1100px) / -2); color: rgba(246, 234, 235, .22); pointer-events: none; will-change: transform; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-inner > * { max-width: 720px; }
.cta .section-title { color: #fff; }
.cta em { color: var(--blush); }
.cta p { color: #f7e9eb; font-size: 1.12rem; font-weight: 300; }
.cta .actions { justify-content: center; margin-top: .6rem; }
.cta-links { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.cta-links a { display: inline-flex; align-items: center; gap: .5em; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 2px; }
.cta-links svg { width: 20px; height: 20px; }

/* footer */
.site-footer { background: var(--charcoal); color: #e6e0e1; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .8fr; gap: 36px; padding-bottom: 46px; border-bottom: 1px solid rgba(255, 255, 255, .12); align-items: start; }
.footer-logo { width: 190px; height: auto; }
.footer-h { font: 500 .74rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; font-style: normal; line-height: 2; font-size: .98rem; font-weight: 300; }
.footer-list a { color: #f6eaeb; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.footer-list a:hover { background-size: 100% 1px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; font-size: .86rem; color: #bdb6b7; }
.footer-base p { margin: 0; }
.footer-base a { color: #e6e0e1; }

/* --------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero .reveal:nth-child(4) { transition-delay: .24s; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .gauge-wrap { position: relative; top: 0; }
  .gauge { width: min(70vw, 320px); }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--charcoal); }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), background-color .2s; content: ""; }
  .bars { position: relative; }
  .bars::before { position: absolute; top: -7px; }
  .bars::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-list { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 8px var(--gutter) 24px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .nav-list.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-header:has(.is-open) { background: var(--paper); }
  .nav-list a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta-li { padding-top: 16px; }
  .nav-cta-li .btn { width: 100%; min-height: 50px; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav-list { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap; box-shadow: none; padding: 0; background: none; }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .brand-word { font-size: .86rem; letter-spacing: .2em; }
  .brand-af { width: 42px; }
  /* móvil: video arriba, texto abajo sobre rubor (legibilidad total) */
  .hero { display: block; min-height: 0; padding-top: 0; }
  .hero-media { position: relative; inset: auto; height: 56svh; min-height: 360px; z-index: 0; }
  .hero-video { object-position: 50% 42%; }
  .hero-shade { background: linear-gradient(180deg, rgba(246, 234, 235, .7) 0%, rgba(246, 234, 235, 0) 20%, rgba(246, 234, 235, 0) 66%, var(--blush) 100%); }
  .hero-ring { width: 110vw; right: -55vw; top: 16svh; margin-top: 0; opacity: .6; z-index: 1; }
  .hero-content { padding-block: 0 56px; margin-top: -36px; z-index: 2; }
  .video-toggle { top: calc(max(56svh, 360px) - 108px); bottom: auto; }
  .hero-title em { white-space: normal; }
  .actions .btn { flex: 1 1 auto; }
  .service-grid { grid-template-columns: 1fr; }
  .about-badge { right: 8px; bottom: -18px; }
  .eyebrow { letter-spacing: .18em; font-size: .7rem; }
  .hero-video { background-image: url("assets/img/hero-poster-m.webp?v=20261002cb"); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Movimiento reducido: se apaga lo intrusivo (parallax y anillos girando). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-depth] { transform: none !important; }
}
