:root {
  --teal: #0E8F9C;
  --teal-dark: #0A6C77;
  --teal-soft: #E6F3F4;
  --gray: #8F8779;
  --gray-soft: #F3F1EC;
  --ink: #1E2A2D;
  --muted: #5B6467;
  --bg: #FFFFFF;
  --bg-alt: #FAF8F4;
  --line: #E4E1DA;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(14, 60, 66, .18);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0F1A1C; --bg-alt: #13282B; --ink: #EEF3F3; --muted: #B4C2C4; --line: #24393C; --teal-soft: #15313530; --gray-soft: #1A2A2D; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(1140px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .75rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, transform .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.site-nav a:not(.btn), .contact-list a, .site-footer a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease; text-decoration: none; }
.site-nav a:not(.btn):hover, .contact-list a:hover, .site-footer a:hover { background-size: 100% 1px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 1rem; }
.brand img { width: 150px; height: auto; }
.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--teal); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); background: radial-gradient(900px 480px at 100% 0%, var(--teal-soft), transparent 65%), linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin-bottom: .5em; }
.hero h1 em { color: var(--teal); font-style: italic; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 2rem 0 0; padding: 0; font-size: .95rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero-panel { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; background: linear-gradient(160deg, #0E8F9C 0%, #0A6C77 100%); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); }
.hero-panel::after { content: ""; position: absolute; inset: auto -20% -30% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-mark { position: absolute; top: 22px; left: 22px; z-index: 2; width: 52px; height: auto; filter: brightness(0) invert(1); opacity: .95; }
.scene { position: relative; z-index: 1; width: 100%; height: auto; display: block; margin-top: 12%; }
.scene .sun { animation: rise .9s ease both .1s; }
.scene .rays { transform-box: view-box; transform-origin: 310px 95px; animation: spin 1.4s cubic-bezier(.2,.7,.2,1) both .2s; }
.scene .building { animation: rise .9s ease both .2s; }
.scene .win { fill: #0E8F9C; opacity: 0; animation: lit .5s ease forwards; animation-delay: calc(.6s + var(--i) * .12s); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { from { transform: rotate(-90deg); opacity: 0; } to { transform: rotate(0); opacity: .7; } }
@keyframes lit { from { opacity: 0; } to { opacity: 1; } }
.map-art { margin-bottom: 1.5rem; }
.map-art-svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.map-art .road { stroke-dasharray: 1; stroke-dashoffset: 1; }
.map-art.in-view .road { animation: draw 1.4s ease forwards; }
.map-art.in-view .road:nth-of-type(2) { animation-delay: .2s; }
.map-art.in-view .road:nth-of-type(3) { animation-delay: .35s; }
.map-art.in-view .road:nth-of-type(4) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map-art .pin { transform-box: view-box; transform-origin: 200px 166px; opacity: 0; }
.map-art.in-view .pin { animation: drop .7s cubic-bezier(.3, 1.4, .6, 1) .9s forwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
.map-art .pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
.map-art.in-view .pulse { animation: ring 1.6s ease-out 1.5s 2; }
@keyframes ring { from { transform: scale(.6); opacity: .35; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .scene .win { opacity: 1; animation: none; }
  .scene .rays { opacity: .7; animation: none; }
  .map-art .road { stroke-dashoffset: 0; animation: none !important; }
  .map-art .pin { opacity: 1; animation: none !important; }
  .map-art .pulse { animation: none !important; }
}
.turnos { padding: 0 0 clamp(48px, 6vw, 72px); background: var(--bg-alt); }
.turnos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: -2.5rem; position: relative; }
.turno-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.turno-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.turno-card strong { color: var(--teal-dark); font-size: 1.05rem; }
.turno-card span { color: var(--muted); font-size: .95rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.social { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--teal-dark); border: 1px solid var(--line); transition: background .2s, color .2s; }
.social:hover { background: var(--teal); color: #fff; }
.social svg { width: 20px; height: 20px; }

.trust { background: var(--teal); color: #fff; }
.trust > div { display: flex; flex-direction: column; align-items: center; padding: 1.4rem .5rem; text-align: center; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.trust span { font-size: .9rem; opacity: .9; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* Servicios */
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 1.25rem; }
.card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Prácticas */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
.split .section-head { margin-bottom: 0; }
.practices { list-style: none; counter-reset: p; border-top: 1px solid var(--line); }
.practices li { counter-increment: p; position: relative; padding: 1.1rem 0 1.1rem 3.2rem; border-bottom: 1px solid var(--line); }
.practices li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 1.2rem; font-family: var(--serif); font-size: 1.2rem; color: var(--teal); }
.practices h3 { margin-bottom: .2rem; }
.practices p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1.25rem; }
.team-group { border-top: 3px solid var(--teal); background: var(--bg-alt); border-radius: 0 0 var(--radius) var(--radius); padding: 1.4rem 1.5rem; }
.team-group h3 { color: var(--teal-dark); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.team-group ul { list-style: none; }
.team-group li { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-family: var(--serif); font-size: 1.25rem; }
.team-group li:last-child { border-bottom: 0; }

/* Contacto */
.contact-list { font-style: normal; margin: 1.5rem 0 2rem; }
.contact-list p { padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list strong { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.map { min-height: 380px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: .75rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #D9E2E3; padding: 3rem 0 2rem; }
.footer-inner { text-align: center; display: grid; justify-items: center; gap: .6rem; }
.footer-logo { width: 150px; background: #fff; border-radius: 10px; padding: 10px; }
.site-footer a { color: #fff; }
.site-footer .small { font-size: .85rem; opacity: .7; }

.whatsapp-fab { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); z-index: 60; }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 960px) {
  .turnos-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-panel { aspect-ratio: 16 / 10; order: -1; }
  .hero-panel img { width: 30%; }
  .map iframe { min-height: 320px; }
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 1rem 16px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; gap: 1rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { width: 100%; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .trust strong { font-size: 1.4rem; }
  .brand img { width: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Hero con video */
.hero-video { position: relative; min-height: min(92vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #0A6C77; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 58, 64, .9) 0%, rgba(8, 58, 64, .65) 55%, rgba(8, 58, 64, .3) 100%); }
.hero-video .hero-grid { grid-template-columns: minmax(0, 1fr); padding: clamp(56px, 8vw, 110px) 0; }
.hero-video .hero-copy { max-width: 680px; }
.hero-video h1 { color: #fff; }
.hero-video h1 em { color: #BFEFF2; }
.hero-video .eyebrow { color: #BFEFF2; }
.hero-video .lead { color: rgba(255, 255, 255, .9); }
.hero-video .hero-points { color: rgba(255, 255, 255, .88); }
.hero-video .hero-points li::before { background: #BFEFF2; }
.hero-video .btn-ghost { color: #fff; border-color: #fff; }
.hero-video .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero-video .btn-primary { background: #fff; color: var(--teal-dark); }
.hero-video .btn-primary:hover { background: var(--teal-soft); }
.video-toggle { position: absolute; right: 18px; bottom: 18px; z-index: 3; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(8, 58, 64, .5); color: #fff; font: inherit; font-size: .9rem; cursor: pointer; backdrop-filter: blur(4px); }
.video-toggle:hover { background: rgba(8, 58, 64, .75); }
/* Banda humana */
.human { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg); }
.human-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.human-photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.human-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.human-photo:hover img { transform: scale(1.03); }
.human-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.human-copy p { color: var(--muted); }
@media (max-width: 960px) { .human-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg { display: none; }
  .hero-video { background: #0A6C77 url("../img/hero-poster.jpg") center / cover no-repeat; }
  .video-toggle { display: none; }
  .human-photo:hover img { transform: none; }
}
