:root {
  --ink: #0f2a33;
  --ink-2: #3b5560;
  --muted: #6b8089;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --soft: #eef5f4;
  --line: #dfe7e6;
  --brand: #0b6e78;
  --brand-dark: #08525a;
  --accent: #db6a48;
  --accent-dark: #b9532f;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 42, 51, .06), 0 10px 30px rgba(15, 42, 51, .07);
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.35em; border-radius: 999px; border: 0; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(219, 106, 72, .3); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Barra superior y navegación */
.topbar { background: var(--brand-dark); color: #e6f2f1; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5ee08f; margin-right: 6px; box-shadow: 0 0 0 3px rgba(94, 224, 143, .25); }
header.site { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 26px; height: 26px; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.1rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
nav.main ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
nav.main a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--soft); color: var(--brand-dark); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1060px) {
  .menu-btn { display: grid; place-items: center; }
  nav.main { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(105%); transition: transform .25s; padding: 88px 20px 20px; z-index: 60; }
  nav.main.open { transform: none; }
  nav.main ul { flex-direction: column; }
  nav.main a { font-size: 1.1rem; padding: 14px 16px; }
  .nav-cta .btn-call { display: none; }
  .scrim { position: fixed; inset: 0; background: rgba(15, 42, 51, .35); z-index: 55; }
}
@media (max-width: 520px) {
  .brand small { display: none; }
  .nav-cta .btn-call { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
  .nav-cta .btn { padding: .7em 1em; }
  .nav-cta .btn span { display: none; }
}

/* Secciones */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.soft { background: var(--soft); }

/* Portada */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 90px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand); }
.badge-247 { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.badge-247 b { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 10px; }
.hero-media { position: relative; }
.hero-media .photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; left: -24px; bottom: -24px; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 12px 18px 12px 12px; box-shadow: var(--shadow); max-width: 320px; }
.hero-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; background: #fff; }
.hero-card strong { display: block; font-size: .98rem; line-height: 1.25; }
.hero-card span { color: var(--muted); font-size: .85rem; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.trust b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--brand-dark); line-height: 1.1; }
.trust span { font-size: .82rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { left: 12px; bottom: -20px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

/* Tarjetas */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card p { color: var(--ink-2); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 28px; height: 28px; }
.card.urgent { background: var(--brand-dark); color: #fff; border-color: transparent; grid-column: 1 / -1; }
.card.urgent p { color: #d7ebe9; }
.card.urgent .icon { background: rgba(255,255,255,.12); color: #fff; }
.more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--brand); }
.card.urgent .more { color: #ffd2c3; }

/* Sobre mí */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.portrait { border-radius: 28px; background: #fff; border: 1px solid var(--line); overflow: hidden; max-width: 420px; }
.portrait img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 15%; }
.portrait figcaption { padding: 14px 18px; font-size: .9rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6e78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 700; }
.gallery .g-a { grid-column: span 7; } .gallery .g-b { grid-column: span 5; }
.gallery .g-c { grid-column: span 5; } .gallery .g-d { grid-column: span 7; }
@media (max-width: 700px) { .gallery figure { grid-column: span 12 !important; } }

/* Banda de urgencias */
.band { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr auto; gap: 24px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #d7ebe9; margin: 0; max-width: 60ch; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }

/* Formulario de cita */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }
form.cita { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
label small { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: #fff; }
textarea { min-height: 96px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.consent input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list b { display: block; }
.contact-list a { font-weight: 700; text-decoration: none; }

/* Mapa */
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 20px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map.loaded { padding: 0; }

/* Páginas interiores */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.page-hero .lead { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.service { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.service:first-child { border-top: 0; }
.service .icon { margin: 0; width: 64px; height: 64px; border-radius: 18px; }
.service ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); }
.service p { color: var(--ink-2); max-width: 70ch; }
@media (max-width: 560px) { .service { grid-template-columns: 1fr; gap: 12px; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 700px) { .mv { grid-template-columns: 1fr; } }

/* Pie */
footer.site { background: var(--ink); color: #c4d3d8; padding: 56px 0 28px; font-size: .95rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer.site h3 { color: #fff; font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(31, 168, 85, .4); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #178a45; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Idioma */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-decoration: none; }
.lang-btn svg { width: 18px; height: 18px; }
.lang-btn:hover { background: var(--brand-dark); }
.en-chip { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin-bottom: 14px; padding: 10px 16px; border-radius: 14px; background: #fff4ef; border: 1.5px solid #f2c3b2; color: var(--ink); text-decoration: none; font-size: .95rem; }
.en-chip svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.en-chip b { color: var(--accent-dark); }
.en-chip:hover { border-color: var(--accent); }
.lang-banner { position: fixed; left: 16px; right: 16px; bottom: 90px; z-index: 45; margin: 0 auto; max-width: 560px; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 12px 12px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.lang-banner p { margin: 0; flex: 1; font-size: .95rem; }
.lang-banner a.btn { min-height: 40px; padding: .55em 1em; }
.lang-banner button { background: transparent; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; width: 40px; height: 40px; cursor: pointer; border-radius: 10px; }
@media (max-width: 520px) { .lang-btn span { display: inline; } .lang-btn { padding: 0 12px; } }
.lang-corto { display: none; }
.btn, .lang-btn, .brand strong, .brand small { white-space: nowrap; }
@media (max-width: 1240px) {
  .lang-largo { display: none; } .lang-corto { display: inline; }
  .nav-cta .btn-call span { display: none; }
  .nav-cta .btn-call { padding: 0; width: 48px; }
  nav.main a { padding: 10px 11px; }
}
