/* Clínica Dental Santa Librada — ronda 5: fondos con identidad por bloque (tono serio).
   Marino + celeste + crema cálida, naranja de acento. Sin blancos planos. Sin desenfoques (rendimiento en celular):
   las «luces» son degradados radiales y lo que se mueve solo usa translate/scale, por tiempo. */
:root {
  --ondas-azul: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%231D5DB3' fill-opacity='.09' d='M0 150C240 250 480 50 720 130s480 120 720 20V320H0Z'/><path fill='%231D5DB3' fill-opacity='.07' d='M0 220C300 120 520 300 800 220s440-80 640-20V320H0Z'/><path fill='%23F59E1B' fill-opacity='.10' d='M0 280C260 230 560 320 860 270s400-50 580-10V320H0Z'/></svg>");
  --ondas-claras: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%23FFFFFF' fill-opacity='.06' d='M0 150C240 250 480 50 720 130s480 120 720 20V320H0Z'/><path fill='%23FFFFFF' fill-opacity='.05' d='M0 220C300 120 520 300 800 220s440-80 640-20V320H0Z'/><path fill='%232D7DDB' fill-opacity='.22' d='M0 280C260 230 560 320 860 270s400-50 580-10V320H0Z'/></svg>");
  --ondas-crema: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%23F59E1B' fill-opacity='.10' d='M0 150C240 250 480 50 720 130s480 120 720 20V320H0Z'/><path fill='%231D5DB3' fill-opacity='.06' d='M0 220C300 120 520 300 800 220s440-80 640-20V320H0Z'/><path fill='%23F59E1B' fill-opacity='.08' d='M0 280C260 230 560 320 860 270s400-50 580-10V320H0Z'/></svg>");
  --puntos-azul: radial-gradient(circle, rgba(29, 93, 179, .2) 1.4px, transparent 1.9px);
  --puntos-claros: radial-gradient(circle, rgba(255, 255, 255, .16) 1.3px, transparent 1.8px);
  --lineas-claras: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 15px);
  --lineas-azul: repeating-linear-gradient(135deg, rgba(29, 93, 179, .06) 0 1px, transparent 1px 15px);
}
body { background: #F4F8FE; }

/* capas: ::before = fondo dibujado (estático), ::after = forma que se mueve lento */
.sec::before, .hero::before { content: ''; display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 1; width: auto; aspect-ratio: auto; border-radius: 0; animation: none; -webkit-mask: none; mask: none; background: none; }
.sec::after, .hero::after { content: ''; display: block; position: absolute; z-index: -1; pointer-events: none; opacity: 1; border-radius: 50%; width: min(560px, 120vw); aspect-ratio: 1; top: auto; right: auto; bottom: auto; left: auto; background: none; animation: deriva 26s ease-in-out infinite alternate; }
@keyframes deriva { from { translate: 0 0; scale: 1; } to { translate: 46px -34px; scale: 1.14; } }
@keyframes deriva2 { from { translate: 0 0; scale: 1.1; } to { translate: -52px 30px; scale: .94; } }
@keyframes barrido { 0%, 55% { translate: -160% 0; } 100% { translate: 420% 0; } }

/* divisores: ola, diagonal y curva alternados */
.dv-ola { --h: 54px; }
.dv-sesgo { --h: 56px; }
.dv-curva { --h: 48px; }

/* ---------- Hero: celeste que aclara, ondas y trama de puntos ---------- */
.hero { background: linear-gradient(168deg, #DCEBFB 0%, #E9F2FD 42%, #F4F8FE 100%); }
.hero::before { background: var(--ondas-azul) bottom / 100% 260px no-repeat, var(--puntos-azul) 0 0 / 18px 18px; -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .25), #000 70%); mask: linear-gradient(180deg, rgba(0, 0, 0, .25), #000 70%); }
.hero::after { right: -24%; top: -22%; background: radial-gradient(closest-side, rgba(45, 125, 219, .26), rgba(45, 125, 219, 0)); }
.confianza li { background: rgba(255, 255, 255, .86); border: 1px solid #fff; box-shadow: 0 8px 22px rgba(20, 38, 74, .08); border-left: 4px solid var(--naranja); }
.estado { background: rgba(255, 255, 255, .9); }

/* ---------- Precios: marino profundo, foto del consultorio como textura, luces y brillo que recorre ---------- */
.s-precios { background: linear-gradient(180deg, #14264A, #0F1E3D); }
.s-precios::before { background: radial-gradient(70% 46% at 12% 4%, rgba(45, 125, 219, .5), transparent 70%), radial-gradient(54% 36% at 96% 96%, rgba(245, 158, 27, .22), transparent 72%), var(--lineas-claras), linear-gradient(180deg, rgba(20, 38, 74, .9), rgba(15, 30, 61, .96)), url("../img/foto-clinica.jpg") center / cover no-repeat; }
.s-precios::after { border-radius: 0; width: 34%; aspect-ratio: auto; top: 0; bottom: 0; left: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .07), transparent); animation: barrido 14s ease-in-out infinite; }
.s-precios > .cont::after { content: 'Fondo: imagen ilustrativa'; display: block; margin-top: 22px; text-align: right; font-size: .66rem; letter-spacing: .04em; color: rgba(255, 255, 255, .62); }
.s-precios .precio { box-shadow: 0 22px 46px rgba(0, 0, 0, .32); }
.s-precios .p-crema { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }

/* ---------- Cita: celeste degradado, ondas arriba y puntos ---------- */
.s-cita { background: linear-gradient(180deg, #DCEBFB, #EEF5FD); }
.s-cita::before { background: var(--ondas-azul) bottom / 100% 240px no-repeat, var(--puntos-azul) 0 0 / 18px 18px; -webkit-mask: linear-gradient(200deg, #000 0%, rgba(0, 0, 0, .15) 45%, #000 100%); mask: linear-gradient(200deg, #000 0%, rgba(0, 0, 0, .15) 45%, #000 100%); }
.s-cita::after { left: -34%; top: 8%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); animation-name: deriva2; }
.reserva { background: rgba(255, 255, 255, .92); border: 1px solid #fff; border-top: 4px solid var(--azul-f); box-shadow: 0 24px 56px rgba(20, 38, 74, .14); }

/* ---------- Mapa: crema cálida con luz naranja y ondas ---------- */
.s-mapa { background: linear-gradient(180deg, #FFF6EA, #FFEED6); }
.s-mapa::before { background: var(--ondas-crema) bottom / 100% 240px no-repeat, radial-gradient(circle, rgba(245, 158, 27, .22) 1.4px, transparent 1.9px) 0 0 / 20px 20px; -webkit-mask: linear-gradient(160deg, #000, rgba(0, 0, 0, .2) 50%, #000); mask: linear-gradient(160deg, #000, rgba(0, 0, 0, .2) 50%, #000); transform: none; }
.s-mapa::after { right: -30%; bottom: -8%; background: radial-gradient(closest-side, rgba(245, 158, 27, .28), rgba(245, 158, 27, 0)); }
.s-mapa .mapa { border: 1px solid #fff; border-left: 4px solid var(--naranja); box-shadow: 0 24px 56px rgba(122, 78, 10, .14); }

/* ---------- Ortodoncia: azul degradado, foto real como textura, anillos y brillo ---------- */
.s-orto { background: linear-gradient(180deg, #1D5DB3, #17479A); }
.s-orto::before { background: repeating-radial-gradient(circle at 100% 0, transparent 0 46px, rgba(255, 255, 255, .06) 46px 48px), radial-gradient(60% 40% at 0% 100%, rgba(20, 38, 74, .55), transparent 72%), linear-gradient(180deg, rgba(29, 93, 179, .92), rgba(23, 71, 154, .95)), url("../img/ortodoncia.jpg") center / cover no-repeat; }
.s-orto::after { border-radius: 0; width: 30%; aspect-ratio: auto; top: 0; bottom: 0; left: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .08), transparent); animation: barrido 17s ease-in-out 3s infinite; }

/* ---------- Antes y después: marino con luces y constelación de puntos ---------- */
.s-antes { background: linear-gradient(180deg, #14264A, #0F1E3D); }
.s-antes::before { background: radial-gradient(60% 46% at 74% 46%, rgba(45, 125, 219, .55), transparent 72%), radial-gradient(42% 30% at 4% 94%, rgba(245, 158, 27, .2), transparent 72%), var(--puntos-claros) 0 0 / 22px 22px; animation: respira 7s ease-in-out infinite alternate; }
.s-antes::after { left: -30%; top: -12%; background: radial-gradient(closest-side, rgba(45, 125, 219, .3), rgba(45, 125, 219, 0)); animation-name: deriva2; }

/* ---------- Prótesis: celeste claro con líneas finas diagonales y ondas ---------- */
.s-prot { background: linear-gradient(180deg, #EAF2FC, #DCEBFB); }
.s-prot::before { background: var(--ondas-azul) bottom / 100% 220px no-repeat, var(--lineas-azul); transform: scaleY(1); }
.s-prot::after { right: -32%; top: 22%; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
.prot { background: rgba(255, 255, 255, .9); border: 1px solid #fff; border-left: 4px solid var(--azul); }

/* ---------- Doctora: crema cálida con arcos finos ---------- */
.s-doc { background: linear-gradient(180deg, #FFF6EA, #FFF1DE); }
.s-doc::before { background: repeating-radial-gradient(circle at 0 100%, transparent 0 34px, rgba(245, 158, 27, .22) 34px 36px) left bottom / 380px 380px no-repeat, repeating-radial-gradient(circle at 100% 0, transparent 0 34px, rgba(29, 93, 179, .14) 34px 36px) right top / 340px 340px no-repeat; -webkit-mask: radial-gradient(circle at 0 100%, #000 379px, transparent 380px) left bottom / 380px 380px no-repeat, radial-gradient(circle at 100% 0, #000 339px, transparent 340px) right top / 340px 340px no-repeat; mask: radial-gradient(circle at 0 100%, #000 379px, transparent 380px) left bottom / 380px 380px no-repeat, radial-gradient(circle at 100% 0, #000 339px, transparent 340px) right top / 340px 340px no-repeat; }
.s-doc::after { right: -26%; bottom: -14%; background: radial-gradient(closest-side, rgba(245, 158, 27, .2), rgba(245, 158, 27, 0)); animation-name: deriva2; }

/* ---------- Cuidado y preguntas: celeste con trama de puntos y círculos ---------- */
.s-cuida { background: linear-gradient(180deg, #DCEBFB, #EEF5FD); }
.s-cuida::before { background: radial-gradient(circle at 92% 12%, transparent 0 118px, rgba(29, 93, 179, .14) 118px 120px, transparent 120px), radial-gradient(circle at 6% 78%, transparent 0 168px, rgba(29, 93, 179, .1) 168px 170px, transparent 170px), var(--puntos-azul) 0 0 / 18px 18px; }
.s-cuida::after { left: -30%; top: 30%; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
.consejos li { background: rgba(255, 255, 255, .92); border: 1px solid #fff; border-top: 4px solid var(--naranja); box-shadow: 0 12px 28px rgba(20, 38, 74, .08); }
.faq details { background: rgba(255, 255, 255, .92); border-color: #fff; box-shadow: 0 8px 20px rgba(20, 38, 74, .06); }

/* ---------- Recordatorio: banda de foto con overlay marino ---------- */
.s-recor { background: #14264A; }
.s-recor::before { background: var(--lineas-claras), radial-gradient(50% 40% at 100% 0%, rgba(45, 125, 219, .4), transparent 72%); }
.s-recor::after { border-radius: 0; width: 30%; aspect-ratio: auto; top: 0; bottom: 0; left: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .06), transparent); animation: barrido 16s ease-in-out 6s infinite; }
.banda-ia::after { background: linear-gradient(180deg, #14264A 0%, rgba(20, 38, 74, .78) 26%, rgba(20, 38, 74, .7) 60%, #14264A 100%); }
.s-recor .recor { border-top: 4px solid var(--naranja); }

/* ---------- Ubicación: celeste muy claro con curvas de nivel ---------- */
.s-ubi { background: linear-gradient(180deg, #F4F8FE, #E6EFFB); }
.s-ubi::before { background: #1D5DB3; opacity: .13; -webkit-mask: var(--t-curvas) 0 0 / 240px 100px repeat; mask: var(--t-curvas) 0 0 / 240px 100px repeat; }
.s-ubi::after { right: -28%; top: -10%; background: radial-gradient(closest-side, rgba(245, 158, 27, .18), rgba(245, 158, 27, 0)); }
.ubi-mapa svg { border: 1px solid #fff; box-shadow: 0 20px 46px rgba(20, 38, 74, .12); }
.horario th, .horario td { background: rgba(255, 255, 255, .92); }
.horario tr.hoy th, .horario tr.hoy td { background: var(--marino); }

/* ---------- Pie: marino con luz y líneas ---------- */
.pie { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(180deg, #14264A, #0C1830); }
.pie::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 0% 0%, rgba(45, 125, 219, .4), transparent 72%), var(--ondas-claras) bottom / 100% 220px no-repeat, var(--lineas-claras); }

@media (prefers-reduced-motion: reduce) {
  .sec::after, .hero::after { translate: none; }
}
