/* Clínica Aurora — clínico, luminoso y cálido. Fraunces (títulos) + Plus Jakarta Sans (texto). */
:root {
  --accent: #0f766e; --accent-2: #14b8a6; --ink: #0d2826; --muted: #52706b; --bg: #fbfdfc; --card: #fff; --tint: #eef7f4; --sand: #f6f1e9;
  --line: #dbe9e5; --radius: 16px; --on-accent: #fff;
  --serif: "Fraunces", Georgia, serif; --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .95em 1.6em; border-radius: 999px; background: var(--accent); color: #fff; border: 1.5px solid var(--accent); font: 650 .98rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgb(15 118 110 / .55); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--tint); }
.btn--sm { padding: .65em 1.15em; font-size: .9rem; }
.kicker { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--tint); color: var(--accent); font-size: .74rem; font-weight: 700; }

/* Barra superior y cabecera */
.topbar { background: var(--ink); color: #b7d3ce; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar__r { gap: 22px !important; }
.topbar a:hover { color: #fff; }
.site-head { position: sticky; top: 0; z-index: 50; background: rgb(251 253 252 / .82); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: .3s; }
.is-scrolled .site-head { border-color: var(--line); box-shadow: 0 8px 30px -20px rgb(13 40 38 / .4); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 1.35rem var(--serif); }
.logo svg { width: 40px; height: 40px; }
.logo b { font-weight: 700; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); transition: right .3s; }
.site-nav a:not(.btn):hover::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); } .nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 60px; background: radial-gradient(1200px 600px at 85% -10%, #d7f0ea 0%, transparent 60%), radial-gradient(700px 400px at -10% 110%, var(--sand) 0%, transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / .2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 36px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; gap: clamp(20px, 4vw, 44px); }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font: 500 2rem var(--serif); color: var(--ink); }
.hero__trust li > span { font-size: .85rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__img { border-radius: 220px 220px 28px 28px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 40px 80px -40px rgb(13 40 38 / .5); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s; }
.hero__media.is-in .hero__img img { transform: none; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 24px 50px -20px rgb(13 40 38 / .35); font-size: .9rem; }
.float--next { left: -36px; bottom: 56px; max-width: 300px; animation: bob 6s ease-in-out infinite; }
.float--next small { display: block; color: var(--muted); font-size: .76rem; }
.float--next strong { display: block; font-size: 1.02rem; }
.float--next span:last-child { color: var(--muted); font-size: .82rem; }
.float__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.float--tele { right: -14px; top: 40px; font-weight: 650; padding: 10px 16px; border-radius: 99px; animation: bob 6s 1.5s ease-in-out infinite; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
.quick { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; padding: 10px; background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -30px rgb(13 40 38 / .35); border: 1px solid var(--line); }
.quick label { display: flex; flex-direction: column; padding: 8px 16px; border-radius: 14px; transition: background .2s; }
.quick label:hover { background: var(--tint); }
.quick label span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quick select { border: 0; background: none; font: 600 1rem var(--sans); color: var(--ink); padding: 4px 0; cursor: pointer; outline: none; }
.quick .btn { border-radius: 16px; }

/* Secciones */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.sec-head--row > p { max-width: 420px; margin: 0; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, border-color .35s; overflow: hidden; }
.spec::before { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--tint); transition: transform .5s; }
.spec:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgb(13 40 38 / .35); border-color: transparent; }
.spec:hover::before { transform: scale(1.5); }
.spec > * { position: relative; }
.spec__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #fff; margin-bottom: 22px; }
.spec p { color: var(--muted); font-size: .96rem; flex: 1; }
.spec footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.spec footer b { color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--accent); font: 700 .92rem var(--sans); cursor: pointer; padding: 0; }
.link-arrow svg { transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }
.booking { --soft: #e7f4f0; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc { padding: 28px 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.doc__av { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font: 500 1.7rem var(--serif); color: #fff; background: linear-gradient(145deg, var(--accent-2), var(--accent) 60%, #0b4f4a); margin-bottom: 18px; box-shadow: 0 16px 30px -16px rgb(15 118 110 / .8); }
.doc:nth-child(3n+2) .doc__av { background: linear-gradient(145deg, #f59e8b, #c2410c); }
.doc:nth-child(3n+3) .doc__av { background: linear-gradient(145deg, #93c5fd, #1e40af); }
.doc h3 { margin-bottom: 2px; font-size: 1.2rem; }
.doc__role { color: var(--accent); font-weight: 650; font-size: .9rem; margin: 0 0 10px; }
.doc__bio { color: var(--muted); font-size: .92rem; flex: 1; }
.doc__days { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--muted); margin: 0 0 16px; }

/* Telemedicina */
.tele { background: var(--ink); color: #d7e7e4; overflow: hidden; }
.tele h2 { color: #fff; }
.tele .kicker { color: #5eead4; }
.tele__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.tele__img { position: relative; border-radius: 28px; overflow: hidden; }
.tele__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tele__call { position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 10px; background: rgb(0 0 0 / .55); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: .85rem; backdrop-filter: blur(6px); }
.steps { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps b { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #5eead4; color: #5eead4; font-family: var(--serif); font-size: 1.1rem; }
.steps strong { display: block; color: #fff; }
.steps span { color: #9ab8b3; font-size: .94rem; }
.tele .btn { background: #5eead4; border-color: #5eead4; color: var(--ink); }

/* Exámenes */
.exams { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.exam-list { display: grid; gap: 4px; margin-top: 24px; }
.exam { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--accent); }
.exam strong { display: block; color: var(--ink); }
.exam span { color: var(--muted); font-size: .94rem; }
.exams__img { border-radius: 24px; overflow: hidden; }
.exams__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -40px rgb(13 40 38 / .35); }
.results { margin: -60px 24px 0; position: relative; }
.results h3 { margin-bottom: 4px; }
.results > p { color: var(--muted); margin-top: 0; }

/* Convenios y testimonios */
.insurers { list-style: none; padding: 0; margin: 0 0 60px; display: flex; flex-wrap: wrap; gap: 12px; }
.insurers li { padding: 14px 22px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 650; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 30px; border-radius: 24px; background: var(--sand); }
.stars { color: #f59e0b; letter-spacing: 2px; }
.quote blockquote { margin: 12px 0 20px; font: 400 1.18rem/1.5 var(--serif); }
.quote figcaption strong { display: block; }
.quote figcaption span { font-size: .86rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 500 1.2rem var(--serif); position: relative; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 1.8rem var(--sans); color: var(--accent); transition: transform .3s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { margin: 0 0 22px; color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); }
.contact__list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; color: var(--accent); }
.contact__list span { color: var(--ink); font-weight: 600; }
.contact__list small { display: block; color: var(--muted); font-weight: 400; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; }

/* Pie */
.site-foot { background: #0a1f1d; color: #9ab8b3; padding: 70px 0 0; font-size: .94rem; }
.site-foot .wrap:first-child { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-foot h4 { color: #fff; font: 600 .82rem var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 16px; }
.site-foot a { display: block; color: #cfe3df; text-decoration: none; margin-bottom: 8px; }
.site-foot a:hover { color: #5eead4; }
.logo--light { color: #fff !important; display: inline-flex !important; }
.logo--light b { color: #5eead4; }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 50px; padding: 22px 0 90px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .82rem; }
.foot__legal a { display: inline; }

/* Responsive */
@media (max-width: 1020px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s; box-shadow: 0 30px 40px -30px rgb(0 0 0 / .3); }
  .nav-open .site-nav { transform: none; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 16px; justify-content: center; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .hero__grid, .tele__grid, .exams, .contact, .faq { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .float--next { left: 10px; bottom: 20px; }
  .float--tele { right: 10px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick .btn { grid-column: 1 / -1; justify-content: center; }
  .quotes { grid-template-columns: 1fr; }
  .sec-head--row { flex-direction: column; align-items: start; gap: 10px; }
  .site-foot .wrap:first-child { grid-template-columns: 1fr 1fr; }
  .results { margin: 16px 0 0; }
  .topbar .wrap > span:first-child { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .team, .spec-grid { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .hero__trust strong { font-size: 1.6rem; }
  .site-foot .wrap:first-child { grid-template-columns: 1fr; }
  .topbar__r { width: 100%; justify-content: space-between; }
}

/* menú móvil cerrado: fuera del flujo y de la vista */
@media (max-width: 1020px) { .site-nav { visibility: hidden; transition: transform .35s, visibility .35s; } .nav-open .site-nav { visibility: visible; } }
