:root {
  --tinta: #1d6467;
  --tinta-oscura: #144a4c;
  --tinta-clara: #e6f0ef;
  --arena: #f7f4ee;
  --texto: #1f2a2b;
  --texto-suave: #55625f;
  --wa: #1fa855;
  --borde: #dfe5e3;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(20, 74, 76, .12);
  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinta); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--tinta-oscura); }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); color: #fff; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 22ch; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex: none; }

.contenedor { width: min(1120px, 100% - 32px); margin-inline: auto; }
.seccion { padding: clamp(56px, 9vw, 104px) 0; }
.seccion--suave { background: var(--arena); }
.seccion--tinta { background: var(--tinta); color: #e9f3f2; }
.seccion--tinta h2 { color: #fff; }
.volanta { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); margin-bottom: .6em; }
.volanta--clara { color: #a9d6d2; }

/* Botones */
.boton { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.boton:hover { transform: translateY(-1px); background: var(--tinta-oscura); }
.boton--wa { background: var(--wa); }
.boton--wa:hover { background: #178c46; }
.boton--claro { background: transparent; border-color: currentColor; color: #fff; }
.boton--claro:hover { background: rgba(255, 255, 255, .12); }
.boton--chico { padding: .55em 1.05em; font-size: .92rem; }

/* Aviso */
.aviso { background: #fff4d6; color: #6b4b00; text-align: center; padding: .6em 16px; font-weight: 600; font-size: .95rem; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.cabecera__fila { display: flex; align-items: center; gap: 20px; height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta-oscura); margin-right: auto; }
.marca img { width: 40px; height: 40px; border-radius: 10px; }
.marca strong { display: block; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .06em; line-height: 1; }
.marca small { display: block; font-size: .72rem; color: var(--texto-suave); }
.menu { display: flex; gap: 22px; }
.menu a { color: var(--texto); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--tinta); }
.hamburguesa { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.hamburguesa span { display: block; width: 22px; height: 2px; background: var(--tinta-oscura); margin: 5px 0; transition: .2s; }

@media (max-width: 980px) {
  .hamburguesa { display: block; }
  .menu { position: absolute; inset: 68px 0 auto; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--borde); box-shadow: var(--sombra); display: none; }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 16px; border-top: 1px solid var(--borde); }
  .cabecera__fila { gap: 8px; }
}
@media (max-width: 420px) {
  .cabecera .boton--chico span { display: none; }
  .marca small { display: none; }
}

/* Héroe */
.heroe { background: radial-gradient(120% 90% at 85% 10%, #2a7f82 0%, var(--tinta) 45%, var(--tinta-oscura) 100%); color: #d9ecea; overflow: hidden; }
.heroe__grilla { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: clamp(48px, 8vw, 96px) 0; }
.heroe__bajada { font-size: 1.12rem; max-width: 52ch; }
.heroe__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.heroe__nota { font-size: .92rem; opacity: .8; }
.heroe__fotos { position: relative; height: 460px; }
.heroe__foto { position: absolute; width: 58%; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); object-fit: cover; aspect-ratio: 4/5; }
.heroe__foto--1 { left: 0; top: 0; transform: rotate(-3deg); }
.heroe__foto--2 { right: 0; bottom: 0; transform: rotate(3deg); }
.heroe__sello { position: absolute; width: 92px; left: calc(50% - 46px); top: calc(50% - 46px); border-radius: 50%; border: 4px solid #fff; box-shadow: var(--sombra); }
.estado { display: inline-flex; align-items: center; gap: .5em; background: rgba(255, 255, 255, .12); padding: .35em .9em; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #fff; }
.estado__punto { width: .6em; height: .6em; border-radius: 50%; background: #9aa; }
.estado--abierto .estado__punto { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }

@media (max-width: 860px) {
  .heroe__grilla { grid-template-columns: 1fr; }
  .heroe__fotos { height: 380px; max-width: 400px; width: 100%; margin-inline: auto; }
}

/* Servicios */
.servicios { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.servicios li { border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; transition: box-shadow .2s, border-color .2s; }
.servicios li:hover { box-shadow: var(--sombra); border-color: transparent; }
.servicios svg { width: 38px; height: 38px; color: var(--tinta); background: var(--tinta-clara); padding: 8px; border-radius: 10px; margin-bottom: 12px; }
.servicios h3 { margin-bottom: .3em; }
.servicios p { color: var(--texto-suave); font-size: .95rem; margin: 0; }

/* Oncología */
.onco { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.onco p { max-width: 54ch; }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; gap: 12px; }
.pasos li { counter-increment: paso; background: rgba(255, 255, 255, .08); border-radius: var(--radio); padding: 16px 18px 16px 64px; position: relative; }
.pasos li::before { content: counter(paso); position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--tinta); font: 700 1rem/32px var(--serif); text-align: center; }
.pasos strong { display: block; color: #fff; }
.pasos span { font-size: .95rem; opacity: .85; }
@media (max-width: 860px) { .onco { grid-template-columns: 1fr; } }

/* Equipo */
.equipo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.persona { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; background: var(--arena); border-radius: 20px; padding: 18px; }
.persona img { border-radius: 14px; aspect-ratio: 4/5; object-fit: cover; }
.persona__titulo { color: var(--tinta); font-weight: 700; margin-bottom: .6em; }
.persona p:last-child { color: var(--texto-suave); margin: 0; }
@media (max-width: 860px) { .equipo { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .persona { grid-template-columns: 1fr; gap: 14px; } .persona img { aspect-ratio: 1; object-position: top; } }

/* Horarios y guardias */
.horarios { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.semana { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: 0 1px 0 var(--borde); }
.semana td { padding: 12px 18px; border-bottom: 1px solid var(--borde); }
.semana tr:last-child td { border-bottom: 0; }
.semana td:first-child { font-weight: 700; }
.semana td:last-child { text-align: right; color: var(--texto-suave); }
.semana tr.hoy td { background: var(--tinta-clara); color: var(--tinta-oscura); }
.semana .cerrado { color: #a0a8a6; }
.temporada { display: inline-block; background: #fff4d6; color: #6b4b00; padding: .3em .8em; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.guardia { background: #fff; border-radius: var(--radio); padding: 22px; border-left: 5px solid var(--tinta); box-shadow: 0 1px 0 var(--borde); }
.guardia__etiqueta { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #b45309; margin-bottom: .3em; }
.guardia h3 { font-size: 1.35rem; margin-bottom: .2em; }
.guardia__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.guardia--vacia p { margin: 0; }
.proximas__titulo { margin-top: 28px; font-size: 1rem; }
.proximas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.proximas li { display: flex; justify-content: space-between; gap: 12px; background: #fff; border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.proximas li span:last-child { color: var(--texto-suave); text-align: right; }
@media (max-width: 860px) { .horarios { grid-template-columns: 1fr; } }

/* App + WhatsApp */
.seccion--app { background: linear-gradient(135deg, var(--tinta-oscura), var(--tinta)); color: #e2f0ee; }
.seccion--app h2 { color: #fff; }
.app { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tildes { list-style: none; padding: 0; margin: 0 0 28px; }
.tildes li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.tildes li::before { content: "✓"; position: absolute; left: 0; color: #7fe0c0; font-weight: 700; }
.app__chat { background: #e9e2d8; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sombra); max-width: 400px; justify-self: center; width: 100%; }
.burbuja { margin: 0; background: #fff; color: var(--texto); padding: 9px 13px; border-radius: 12px 12px 12px 3px; max-width: 85%; font-size: .95rem; }
.burbuja--yo { align-self: flex-end; background: #d6f6c6; border-radius: 12px 12px 3px 12px; }
.app__chat small { color: #5c5a55; font-size: .82rem; line-height: 1.4; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } }

/* Instagram */
.insta { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; align-items: start; }
.insta .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.insta__vacio { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 28px; border: 2px dashed var(--borde); border-radius: var(--radio); text-decoration: none; color: var(--texto-suave); font-weight: 600; }
.insta__vacio svg { width: 40px; height: 40px; color: var(--tinta); }

/* Contacto */
.contacto { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 28px; }
.datos dt { font-weight: 700; color: var(--tinta-oscura); }
.datos dd { margin: 0; }
.mapa { width: 100%; height: 380px; border: 0; border-radius: 20px; box-shadow: var(--sombra); background: var(--tinta-clara); }
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } .mapa { height: 300px; } }

/* Pie */
.pie { background: var(--tinta-oscura); color: #b9d4d1; padding: 40px 0 90px; font-size: .95rem; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.pie img { width: 130px; height: auto; }
.pie a { color: #fff; }
.pie p { margin: 0; }
.pie__chico { opacity: .7; }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.wa-flotante svg { width: 30px; height: 30px; }

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

/* Verificando / mantenimiento */
html.verificando body { visibility: hidden; }
.mantenimiento { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background: #1b646b; color: #d9ecea; text-align: center; }
.mantenimiento__caja { max-width: 520px; }
.mantenimiento img { width: 220px; margin: 0 auto 28px; }
.mantenimiento h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.mantenimiento p { font-size: 1.08rem; }
.mantenimiento__acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0; }
.mantenimiento small { opacity: .8; }
