@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0E2B33;
  --ink-2: #3D5960;
  --teal: #1D87A6;
  --teal-d: #136a83;
  --paper: #F7F4EF;
  --sand: #ECE5DA;
  --clay: #D9763E;
  --line: rgba(14, 43, 51, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: 1.45rem; }
em { font-style: italic; color: var(--teal); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.eyebrow { font: 700 .76rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font: 700 .98rem/1 var(--sans); border: 1.5px solid var(--ink); cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9rem; }
.btn--block { width: 100%; }
.link { display: inline-block; font-weight: 700; color: var(--teal-d); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--clay); }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--pad); transition: background .3s, box-shadow .3s; }
.top.is-solid { background: rgba(247, 244, 239, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 58px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 600 1.05rem/1.1 var(--serif); }
.brand-text small { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .93rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: #fff; transition: transform .3s; }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 56px; width: min(78vw, 280px); background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 20px 50px rgba(14, 43, 51, .18); display: flex; flex-direction: column; }
.menu-panel a { padding: 13px 14px; text-decoration: none; font-weight: 600; border-radius: 10px; }
.menu-panel a:hover { background: var(--paper); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 5vw, 80px); padding: 120px var(--pad) 70px; overflow: hidden; }
.hero-mark { position: absolute; right: -2vw; bottom: -9vw; font: italic 400 clamp(220px, 34vw, 560px)/.8 var(--serif); color: var(--teal); opacity: .07; pointer-events: none; letter-spacing: -.06em; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero-title { font-size: clamp(2.9rem, 6.6vw, 6rem); line-height: .98; margin-bottom: 26px; }
.hero-title em { display: inline; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }
.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-facts b { display: block; font: 400 1.8rem/1.1 var(--serif); }
.hero-facts span { display: block; font-size: .82rem; color: var(--ink-2); line-height: 1.35; margin-top: 4px; }
.hero-media { position: relative; margin: 0; z-index: 1; }
.hero-frame { position: relative; border-radius: 240px 240px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 900 / 750; max-height: 74svh; margin-left: auto; background: var(--sand); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.layers { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(5, 1fr); pointer-events: none; }
.layers i { background: var(--sand); transform: scaleY(0); transform-origin: top; }
.hero-media figcaption { margin-top: 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-align: right; }

/* Cinta */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 20px 0; }
.ticker-track { display: flex; width: max-content; }
.ticker span { font: italic 400 1.35rem/1 var(--serif); padding: 0 28px; white-space: nowrap; position: relative; }
.ticker span::after { content: ""; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); transform: translateY(-50%); }

/* Secciones */
.section { padding: clamp(80px, 11vw, 150px) var(--pad); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head h2 { margin-bottom: 20px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; max-width: 600px; }

.serv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.serv { position: relative; background: #fff; border-radius: var(--radius); padding: 14px 14px 26px; transition: transform .35s, box-shadow .35s; }
.serv:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(14, 43, 51, .1); }
.serv-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3.4; margin-bottom: 20px; background: var(--sand); }
.serv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.serv:hover .serv-img img { transform: scale(1.05); }
.serv-n { position: absolute; top: 26px; right: 26px; font: 700 .75rem/1 var(--sans); background: #fff; padding: 7px 10px; border-radius: 99px; }
.serv h3, .serv p { padding: 0 8px; }
.serv h3 { margin-bottom: 10px; }
.serv p { font-size: .95rem; color: var(--ink-2); }

.doctor { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 100px); align-items: start; background: var(--sand); }
.doctor-media { position: sticky; top: 110px; }
.doc-a { border-radius: var(--radius); width: 86%; aspect-ratio: 1; object-fit: cover; }
.doc-b { border-radius: var(--radius); width: 62%; margin: -22% 0 0 auto; border: 8px solid var(--sand); aspect-ratio: 4 / 3; object-fit: cover; object-position: 20% 50%; position: relative; }
.doctor-copy h2 { margin-bottom: 22px; }
.doctor-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; max-width: 560px; }
.cv { list-style: none; padding: 0; margin: 40px 0; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cv span { font: 700 .74rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
blockquote { margin: 0; padding: 30px 0 0; }
blockquote p { font: italic 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.2 var(--serif); }
blockquote cite { display: block; margin-top: 14px; font-style: normal; font-size: .85rem; color: var(--ink-2); }

/* Edades */
.edades { background: var(--ink); color: #fff; overflow: hidden; }
.edades-pin { padding: clamp(80px, 11vw, 150px) var(--pad); }
.edades-head { max-width: 640px; margin-bottom: 50px; }
.edades-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.js .edades-pin { display: flex; align-items: center; gap: clamp(30px, 5vw, 80px); min-height: 100vh; padding: 110px 0 70px var(--pad); }
.js .edades-head { flex: 0 0 min(400px, 34vw); margin: 0; position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: var(--ink); box-shadow: -200px 0 0 var(--ink); }
.js .edades-head::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 60px; background: linear-gradient(90deg, var(--ink), rgba(14, 43, 51, 0)); pointer-events: none; }
.js .edades-track { position: relative; z-index: 1; }
.js .edades-track { display: flex; padding-right: var(--pad); }
html:not(.js) .edades-bar { display: none; }
.edades-head h2 { margin-bottom: 20px; }
.edades-head p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }
.edades .eyebrow { color: #7fc6da; }
.edades-bar { margin-top: 34px; height: 2px; background: rgba(255, 255, 255, .16); }
.edades-bar span { display: block; height: 100%; width: 100%; background: var(--clay); transform-origin: left; transform: scaleX(0); }
.js .edad { flex: 0 0 340px; }
.edad { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 30px 28px 32px; }
.edad .edad-n { font: italic 400 4.6rem/1 var(--serif); color: #7fc6da; margin-bottom: 18px; }
.edad h3 { margin-bottom: 10px; }
.edad > p { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.edad h4 { font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin: 24px 0 10px; }
.edad ul { margin: 0; padding: 0; list-style: none; }
.edad li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; }
.edad .tags { font-size: .88rem; color: rgba(255, 255, 255, .8); line-height: 1.7; }

/* Procedimientos */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { font: 600 .92rem/1 var(--sans); padding: 12px 20px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.proc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 34px; border-top: 1px solid var(--line); }
.proc-list li[hidden] { display: none; }
.proc-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 1.22rem/1.25 var(--serif); transition: color .25s, padding .25s; }
.proc-list a small { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.proc-list a:hover { color: var(--teal); padding-left: 12px; }

/* Tecnología */
.tech { background: #fff; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eq { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; min-height: 230px; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.eq:hover { border-color: var(--teal); transform: translateY(-4px); }
.eq-brand { font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: auto; padding-bottom: 36px; }
.eq h3 { margin-bottom: 10px; }
.eq p:not(.eq-brand) { font-size: .93rem; color: var(--ink-2); }
.eq--cta { background: var(--teal); border-color: var(--teal); color: #fff; justify-content: flex-end; gap: 12px; }
.eq--cta p:not(.eq-brand) { color: rgba(255, 255, 255, .85); }
.eq--cta .btn { align-self: flex-start; margin-top: 8px; }

/* Consultorio */
.cons-grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 20px; align-items: end; }
.cons { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.cons img { width: 100%; height: 100%; object-fit: cover; }
.cons--a { grid-row: span 2; aspect-ratio: 900 / 958; }
.cons--b { aspect-ratio: 900 / 700; }
.cons-copy { padding: 10px 0; }
.cons-copy p { font-size: 1.12rem; color: var(--ink-2); margin-bottom: 22px; max-width: 520px; }

/* Confianza */
.confianza { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; padding-top: 0; }
.conf-card { background: #fff; border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.conf-card .eyebrow { margin-bottom: 4px; }
.conf-card .big { font: 400 4.4rem/1 var(--serif); }
.conf-card .big small { font-size: 1.6rem; color: var(--ink-2); }
.conf-card p:not(.eyebrow):not(.big) { color: var(--ink-2); }
.conf-card--blog { background: var(--sand); }
.posts { list-style: none; margin: 0; padding: 0; width: 100%; }
.posts a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 1.12rem/1.3 var(--serif); }
.posts a:hover { color: var(--teal); }

/* Cita */
.cita { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); background: var(--sand); }
.cita-copy h2 { margin-bottom: 22px; }
.cita-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; max-width: 520px; }
.datos { margin: 36px 0 0; display: grid; gap: 0; }
.datos div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.datos dt { font: 700 .72rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.datos a { text-decoration: none; font-weight: 600; }
.form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; align-self: start; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .9rem; padding: 0; }
.field small { font-weight: 400; color: var(--ink-2); }
input, select, textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.is-bad { border-color: #b3261e; }
.error { color: #b3261e; font-size: .85rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 12px 6px; border-radius: 12px; background: var(--paper); font-weight: 600; font-size: .92rem; border: 1.5px solid transparent; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { border-color: var(--clay); }
.form-note { font-size: .85rem; color: var(--ink-2); text-align: center; }

/* Pie */
.foot { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 60px var(--pad) 110px; display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; }
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-brand img { width: 70px; filter: brightness(0) invert(1); opacity: .9; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot-nav a { text-decoration: none; font-weight: 600; color: #fff; }
.foot-note { grid-column: 1 / -1; font-size: .82rem; color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; }

.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #1fae5b; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); transition: transform .25s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; }

/* Estados iniciales de animación: solo con JS activo y movimiento permitido */
.js .hero-title, .js .hero .lead, .js .hero-actions, .js .hero-facts, .js .hero .eyebrow { visibility: hidden; }

/* Responsive */
@media (max-width: 1180px) {
  .edades-track { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
  .serv-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-list { grid-template-columns: repeat(2, 1fr); }
  .confianza { grid-template-columns: 1fr 1fr; }
  .conf-card--blog { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 86px; min-height: auto; gap: 26px; }
  .hero-media { order: -1; }
  .hero-frame { max-height: none; aspect-ratio: 16 / 11; border-radius: 160px 160px var(--radius) var(--radius); }
  .hero-frame img { object-position: 30% 40%; }
  .hero-media figcaption { display: none; }
  .doctor, .cita { grid-template-columns: 1fr; }
  .doctor-media { position: relative; top: 0; }
  .edades-pin, .js .edades-pin { display: block; padding: 90px var(--pad) 80px; min-height: auto; }
  .edades-head, .js .edades-head { margin-bottom: 40px; box-shadow: none; background: none; }
  .js .edades-head::after { display: none; }
  .edades-bar { display: none; }
  .edades-track, .js .edades-track { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .js .edad { flex: none; }
  .cons-grid { grid-template-columns: 1fr 1fr; }
  .cons--a { grid-row: auto; }
  .cons-copy { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-cta { display: none; }
  .brand img { width: 46px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:last-child { display: none; }
  .serv-grid, .tech-grid, .proc-list, .confianza, .cons-grid, .edades-track, .js .edades-track { grid-template-columns: 1fr; }
  .proc-list a { font-size: 1.1rem; }
  .cv li { grid-template-columns: 1fr; gap: 4px; }
  .datos div { grid-template-columns: 1fr; gap: 2px; }
  .foot { grid-template-columns: 1fr; }
  .ticker span { font-size: 1.1rem; }
  .eq { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
