/* Hospital San Cristóbal — turnos informativos */
.salud-page {
    --salud-navy: #0f2d6b;
    --salud-blue: #1e4fad;
    --salud-sky: var(--td-brand-navy, #0d1b2a);
    --salud-orange: #ea580c;
    --salud-wa: #25d366;
    --salud-wa-dark: #128c7e;
    --salud-card: #ffffff;
    --salud-muted: #64748b;
    --salud-ink: #0f172a;
    --salud-line: #e2e8f0;
    --salud-pad: var(--td-home-edge-pad, 16px);
    --salud-pad-r: var(--td-home-edge-pad-r, 16px);
    --salud-radius: 4px;
    --salud-shadow: none;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
    max-width: 100%;
}

.salud-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 var(--salud-pad-r) 0.75rem var(--salud-pad);
    font-size: 12px;
    font-weight: 600;
    color: var(--salud-muted);
}

.salud-crumb a {
    color: var(--salud-blue);
    text-decoration: none;
}

/* Hero con foto del hospital (logo sin recuadro blanco del PNG) */
.salud-visual-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 0.85rem;
    border-radius: var(--salud-radius);
    min-height: 200px;
    background: linear-gradient(145deg, #1e4fad, var(--salud-navy));
    box-shadow: var(--salud-shadow);
}

.salud-visual-hero__photo {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 35%;
}

.salud-visual-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 45, 107, 0.15) 0%, rgba(15, 45, 107, 0.82) 68%, rgba(15, 45, 107, 0.94) 100%);
    pointer-events: none;
}

.salud-visual-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem var(--salud-pad) 1rem var(--salud-pad-r);
    color: #fff;
    text-align: center;
}

.salud-visual-hero__logo {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.5rem;
    object-fit: contain;
    /* El PNG trae fondo blanco cuadrado: se funde con el overlay azul */
    mix-blend-mode: multiply;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.salud-visual-hero__kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.salud-visual-hero__title {
    margin: 0.2rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.salud-visual-hero__sub {
    margin: 0.15rem 0 0;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.95;
}

.salud-visual-hero__lead {
    margin: 0.45rem 0 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    opacity: 0.92;
}

@media (min-width: 560px) {
    .salud-visual-hero__photo {
        height: 260px;
    }

    .salud-visual-hero__logo {
        width: 88px;
        height: 88px;
    }

    .salud-visual-hero__title {
        font-size: 1.45rem;
    }
}

/* Compartir página — franja bajo el hero (despegado de la foto) */
.salud-share-strip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 1rem var(--salud-pad-r) 0.85rem var(--salud-pad);
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
}

.salud-share-strip__btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #3b82f6 0%, var(--salud-blue) 50%, var(--salud-navy) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.salud-share-strip__btn i {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.salud-share-strip__txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.salud-share-strip__txt strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.salud-share-strip__txt small {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.92;
    line-height: 1.3;
}

.salud-share-strip__btn:active {
    transform: scale(0.99);
}

/* Compartir — card principal (legacy, no usada) */
.salud-share-hero {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--salud-radius);
    background: linear-gradient(145deg, #ecfdf5 0%, #f0fdf4 45%, #fff 100%);
    border: 1px solid rgba(37, 211, 102, 0.28);
    box-shadow: var(--salud-shadow);
}

.salud-share-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--salud-wa), var(--salud-wa-dark));
    color: #fff;
    font-size: 1.25rem;
}

.salud-share-hero__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--salud-ink);
    letter-spacing: -0.02em;
}

.salud-share-hero__lead {
    margin: 0.2rem 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--salud-muted);
}

.salud-share-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.salud-share-hero__hint {
    min-height: 1.1em;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--salud-wa-dark);
}

.salud-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.salud-btn:active {
    transform: scale(0.98);
}

.salud-btn--wa {
    color: #fff;
    background: linear-gradient(145deg, #2ee66f, var(--salud-wa) 40%, var(--salud-wa-dark));
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.salud-btn--wa i {
    font-size: 1.2rem;
}

.salud-btn--ghost {
    color: var(--salud-ink);
    background: #fff;
    border: 1px solid #e2e8f0;
}

.salud-btn--lg {
    min-height: 52px;
    font-size: 15px;
}

/* Navegación rápida — 4 botones visibles en celu (2×2) */
.salud-jump {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0 var(--salud-pad-r) 1rem var(--salud-pad);
    padding: 0;
    overflow: visible;
}

.salud-jump__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 40px;
    padding: 0.45rem 0.4rem;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--salud-navy);
    background: #fff;
    border: 1px solid var(--salud-line);
    text-decoration: none;
    box-shadow: none;
    white-space: nowrap;
    min-width: 0;
}

.salud-jump__chip i {
    font-size: 0.9rem;
    opacity: 0.85;
    flex-shrink: 0;
}

@media (min-width: 420px) {
    .salud-jump {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .salud-jump__chip {
        font-size: 12px;
        padding: 0.5rem 0.45rem;
    }
}

.salud-disclaimer {
    margin: 0 var(--salud-pad-r) 1rem var(--salud-pad);
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--salud-muted);
    text-align: center;
}

/* Secciones */
.salud-section {
    margin: 0 var(--salud-pad-r) 1.35rem var(--salud-pad);
    scroll-margin-top: calc(4.5rem + env(safe-area-inset-top, 0px));
}

.salud-section__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--salud-line);
}

.salud-section__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    color: var(--salud-blue);
    font-size: 1.25rem;
    background: transparent !important;
}

.salud-section__icon--sky { color: var(--salud-sky); }
.salud-section__icon--orange { color: var(--salud-orange); }
.salud-section__icon--blue { color: var(--salud-blue); }
.salud-section__icon--violet { color: var(--td-brand-orange, #ff8a00); }

.salud-section__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--salud-navy);
    line-height: 1.25;
}

.salud-section__lead {
    margin: 0.2rem 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--salud-muted);
    line-height: 1.4;
}

.salud-section__badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--salud-blue);
    background: #eff6ff;
}

/* Modalidad */
.salud-modalidad-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 560px) {
    .salud-modalidad-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.salud-franja {
    border-radius: 0;
    padding: 1rem 1.05rem;
    color: #fff;
    box-shadow: none;
    border: none;
}

.salud-franja--tarde {
    background: linear-gradient(155deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
}

.salud-franja--manana {
    background: linear-gradient(155deg, #3b82f6 0%, #2563eb 50%, var(--salud-navy) 100%);
}

.salud-franja__hora {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.salud-franja__destino {
    margin: 0.3rem 0 0.6rem;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
}

.salud-franja__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

/* Servicios */
.salud-servicios {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--salud-line);
    background: #fff;
    overflow: hidden;
}

body.td-page-body .salud-page .salud-servicio {
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid var(--salud-line) !important;
    background: #fff !important;
    padding: 0.95rem 1rem !important;
    box-shadow: none !important;
}

body.td-page-body .salud-page .salud-servicio:first-child {
    border-top: none !important;
}

body.td-page-body .salud-page .salud-servicio:nth-child(even) {
    background: #f8fafc !important;
}

.salud-servicio__nombre {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--salud-navy);
}

.salud-servicio__horas {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.salud-servicio__meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.35rem 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--salud-muted);
}

.salud-servicio__nota {
    margin: 0.3rem 0 0;
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    color: var(--salud-muted);
}

.salud-servicio__wa {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.55rem;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    text-decoration: none;
}

/* Imágenes */
.salud-imagenes-card {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--salud-line);
    box-shadow: none;
}

.salud-imagenes-card__top {
    padding: 1rem 1.05rem 0.8rem;
    text-align: left;
    background: #fff;
    border-bottom: 1px solid var(--salud-line);
}

.salud-imagenes-card__label {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--salud-muted);
}

.salud-imagenes-card__hora {
    margin: 0.4rem 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--salud-ink);
}

.salud-imagenes-card__ubic {
    margin: 0.25rem 0 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--salud-navy);
}

.salud-imagenes-card__body {
    padding: 1rem 1.2rem 1.1rem;
    color: #fff;
    background: linear-gradient(145deg, #fb923c 0%, #a855f7 48%, #2563eb 100%);
}

.salud-imagenes-card__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.salud-imagenes-card__pie {
    margin: 0.75rem 0 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    opacity: 0.95;
}

/* Placas */
.salud-placas {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--salud-line);
    overflow: hidden;
    background: #fff;
}

body.td-page-body .salud-page .salud-placa {
    border-radius: 0 !important;
    padding: 1rem 1.05rem !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--salud-line) !important;
}

body.td-page-body .salud-page .salud-placa:first-child {
    border-top: none !important;
}

body.td-page-body .salud-page .salud-placa--info {
    background: #fff !important;
}

body.td-page-body .salud-page .salud-placa--iapos {
    background: linear-gradient(155deg, #14b8a6 0%, #0f766e 100%) !important;
    color: #fff;
}

.salud-placa__titulo {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.salud-placa--info .salud-placa__titulo {
    color: var(--salud-sky);
}

.salud-placa__p {
    margin: 0 0 0.45rem;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.salud-placa--info .salud-placa__p {
    color: #334155;
}

.salud-placa--iapos .salud-placa__p {
    color: #f0fdfa;
}

.salud-placa__destacado {
    text-decoration: underline;
    font-weight: 800;
}

.salud-placa__lista {
    margin: 0.3rem 0 0;
    padding-left: 1.15rem;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.salud-placa--iapos .salud-placa__lista {
    color: #ecfdf5;
}

.salud-placa__bloque {
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.salud-placa--info .salud-placa__bloque {
    border-top-color: #e2e8f0;
}

.salud-placa__bloque-titulo {
    margin: 0 0 0.3rem;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.salud-placa--info .salud-placa__bloque-titulo {
    color: var(--salud-navy);
}

.salud-share-footer {
    margin: 0.5rem 0 1rem;
    padding: 1.1rem;
    text-align: center;
    border-radius: var(--salud-radius);
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.salud-share-footer__text {
    margin: 0 0 0.75rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--salud-muted);
}

.salud-back {
    display: flex;
    width: auto;
    max-width: 100%;
    margin: 0.5rem var(--salud-pad-r) 0 var(--salud-pad);
    justify-content: center;
}

.salud-empty {
    text-align: center;
    padding: 2rem var(--salud-pad);
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

/* Barra fija WhatsApp (sobre nav inferior) */
.salud-sticky-wa {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: flex;
    justify-content: center;
    padding: 0 1rem 0.35rem;
    pointer-events: none;
}

.salud-sticky-wa__btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 148px;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(145deg, #2ee66f, var(--salud-wa) 45%, var(--salud-wa-dark));
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.salud-sticky-wa__btn i {
    font-size: 1.25rem;
}

@media (min-width: 640px) {
    .salud-share-strip__btn {
        max-width: 420px;
    }
}

/* Tema oscuro */
html[data-theme="dark"] .salud-page {
    --salud-navy: #93c5fd;
    --salud-blue: #60a5fa;
    --salud-sky: var(--td-brand-orange, #ff8a00);
    --salud-muted: #94a3b8;
    --salud-ink: #e2e8f0;
    --salud-line: #334155;
    --salud-card: #0f172a;
}

html[data-theme="dark"] .salud-jump__chip,
html[data-theme="dark"] .salud-placas,
html[data-theme="dark"] .salud-servicios,
html[data-theme="dark"] .salud-imagenes-card,
html[data-theme="dark"] .salud-imagenes-card__top {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .salud-jump__chip {
    color: #93c5fd;
}

html[data-theme="dark"] body.td-page-body .salud-page .salud-placa--info,
html[data-theme="dark"] body.td-page-body .salud-page .salud-servicio {
    background: #0f172a !important;
}

html[data-theme="dark"] body.td-page-body .salud-page .salud-servicio:nth-child(even) {
    background: #1e293b !important;
}

html[data-theme="dark"] .salud-placa--info .salud-placa__p,
html[data-theme="dark"] .salud-servicio__horas {
    color: #cbd5e1;
}

html[data-theme="dark"] .salud-placa--info .salud-placa__bloque {
    border-top-color: #334155;
}

html[data-theme="dark"] .salud-placa--info .salud-placa__bloque-titulo,
html[data-theme="dark"] .salud-servicio__nombre,
html[data-theme="dark"] .salud-imagenes-card__hora,
html[data-theme="dark"] .salud-section__title {
    color: #e2e8f0;
}

html[data-theme="dark"] .salud-section__badge {
    background: #1e3a5f;
    color: #93c5fd;
}

html[data-theme="dark"] .salud-share-strip__btn {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    .salud-btn:active,
    .salud-sticky-wa__btn:active {
        transform: none;
    }
}
