:root {
    --ps-primary: #152c77;
    --ps-accent: #de1f27;
    --ps-ink: #1f2630;
    --ps-muted: #6b7280;
    --ps-bg: #f8fafc;
    --radius: 1.25rem
}

html,
body {
    font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ps-ink);
    background: var(--ps-bg)
}

a {
    color: var(--ps-primary)
}

a:hover {
    color: #0e1f57
}

.btn-cta {
    border-radius: 999px;
    padding: .7rem 1.1rem;
    font-weight: 600
}

.btn-wa {
    background: #25d366;
    border: none;
    color: #0b3d21
}

.btn-primary-ps {
    background: var(--ps-primary);
    border: none;
    color: #fff
}

.shadow-soft {
    box-shadow: 0 10px 30px rgba(16, 24, 40, .08)
}

.topbar {
    background: var(--ps-primary);
    color: #fff;
    font-size: .9rem
}

.topbar a {
    color: #fff;
    text-decoration: none
}

.navbar .navbar-brand {
    color: var(--ps-primary);
    /* Azul #152c77 */
    letter-spacing: 0.02em;
}

.navbar .navbar-brand span {
    color: var(--ps-accent);
    /* Rojo #de1f27 */
}

.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
    color: var(--ps-primary);
}

.navbar-brand span {
    color: var(--ps-accent)
}

.nav-link {
    font-weight: 600
}

.sticky-top.blur {
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255, 255, 255, .8) !important
}

.hero {
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%)
}

.hero-badge {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: .4rem .8rem;
    font-weight: 600
}

.hero-illus {
    border-radius: var(--radius);
    overflow: hidden
}

.section-title {
    font-weight: 800
}

.service-card {
    border: 1px solid #eef2f7;
    border-radius: var(--radius);
    transition: .3s ease;
    background: #fff
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, .08)
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef2ff;
    color: var(--ps-primary);
    font-size: 1.5rem
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    font-size: .85rem;
    padding: .35rem .7rem
}

.awards {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius)
}

.awards img {
    height: 64px;
    object-fit: contain;
    filter: saturate(.9) contrast(1.05)
}

.accordion-button {
    font-weight: 600
}

.footer {
    background: #152c77;
    color: #cbd5e1;
    padding-bottom: 5.5rem !important;
}

.footer .brand {
    color: #fff;
}

.footer h6,
.footer h5 {
    color: #ffffff;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

.footer a:hover {
    color: #ffffff;
    opacity: .95;
    text-decoration: none;
}

.footer .list-unstyled a {
    display: inline-block;
    padding: .25rem 0;
    border-radius: .5rem;
}

.footer .list-unstyled a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.footer .btn {
    box-shadow: 0 8px 20px rgba(36, 36, 40, 0.18);
}

.footer .divider {
    background: rgba(148, 163, 184, .25);
}



.txt-accent {
    color: var(--ps-accent)
}

.txt-primary {
    color: var(--ps-primary)
}

.rounded-2xl {
    border-radius: var(--radius)
}

.divider {
    height: 1px;
    background: #e5e7eb
}

@media (min-width:992px) {
    .hero-min-h {
        min-height: 72vh
    }
}

#services-grid .col {
    display: flex
}

/* Peluquería (comparten estilos) */
.btn-price {
    background: var(--ps-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .5rem 1rem;
    font-weight: 600
}

.img-cardtext {
    width: 100%;
    max-width: 560px;
    border-radius: 1rem
}

.img-tamaño {
    height: 220px;
    object-fit: cover
}

.cardTamaño {
    border-radius: 1rem;
    overflow: hidden
}

/* ===== Offcanvas precios - mejoras UI ===== */
.offcanvas {
    --bs-offcanvas-width: 420px;
}

@media (max-width: 576px) {
    .offcanvas {
        --bs-offcanvas-width: 100vw;
    }
}

.offcanvas-header {
    border-bottom: 1px solid #e9eef5;
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#pricesBody .table thead th {
    font-weight: 700;
}

#pricesBody .table tbody th {
    font-weight: 600;
}

#pricesBody img {
    border-radius: 1rem;
}

.boton-reservar {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    padding-top: .5rem;
    border-top: 1px dashed #e9eef5;
}

.boton-reservar.btn {
    box-shadow: 0 8px 20px rgba(2, 6, 23, .08);
}

@media (max-width: 576px) {
    .boton-reservar {
        flex-direction: column;
    }

    .boton-reservar .btn {
        width: 100%;
    }
}

/* ---------- Timeline visual ---------- */
.timeline {
    --line-color: rgba(21, 44, 119, .15);
    --dot-color: #152c77;
    list-style: none;
    padding-left: 0;
    margin: 0;
    position: relative;
}

.timeline .timeline-item {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 1rem;
}

.timeline .timeline-item::before {
    content: "";
    position: absolute;
    left: 13px;
    /* centra con el dot de 12px */
    top: 0.75rem;
    bottom: -0.75rem;
    width: 2px;
    background: var(--line-color);
}

.timeline .timeline-item:last-child::before {
    bottom: 0.5rem;
}

.timeline .timeline-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 1rem;
    padding: 1rem 1rem 0.9rem;
    position: relative;
}

.timeline .timeline-card::before {
    /* dot */
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--dot-color);
    box-shadow: 0 0 0 4px #fff;
}

/* Subtle shadow like other cards */
.shadow-soft {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

/* Pills look */
.nav-pills .nav-link {
    border-radius: 999px;
    padding: .4rem .9rem;
    background: #f5f7ff;
    color: #152c77;
    border: 1px solid rgba(21, 44, 119, .12);
}

.nav-pills .nav-link.active {
    background: #152c77;
    color: #fff;
    border-color: #152c77;
}

/* Badges suaves */
.bg-primary-subtle {
    background: #eef2ff !important;
}

.bg-secondary-subtle {
    background: #f5f6f8 !important;
}

/* Utilidades opcionales */
.btn-cta {
    border-radius: .75rem;
}

.sticky-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding: .6rem 0;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, .06);
}

.sticky-cta .btn-cta {
    border-radius: .75rem;
}

@media (max-width: 575.98px) {
    .sticky-cta {
        padding: .5rem 0;
    }
}

/* ===== Consulta Médica: estilos sin fotos ===== */
:root {
    --brand: #152c77;
}

.shadow-soft {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

/* Hero sin imagen: gradiente + patrón */
.hero-nopic {
    position: relative;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .35) 0 120px, transparent 121px),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .25) 0 100px, transparent 101px),
        linear-gradient(135deg, #eef2ff 0%, #f8fbff 35%, #ffffff 100%);
    overflow: hidden;
}

.hero-nopic::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(closest-side, rgba(21, 44, 119, .08), rgba(21, 44, 119, 0));
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    padding: .5rem .75rem;
    border-radius: .75rem;
    font-weight: 600;
    color: #333;
}

.hero-iconwall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    font-size: 2.2rem;
    color: rgba(21, 44, 119, .85);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

@media (min-width: 992px) {
    .hero-iconwall {
        font-size: 2.8rem;
        gap: 16px;
        padding: 1.25rem;
    }
}

/* Chips de síntomas */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.chip {
    border: 1px solid rgba(21, 44, 119, .2);
    background: #fff;
    color: #222;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .95rem;
    transition: all .15s ease;
    cursor: pointer;
}

.chip:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(21, 44, 119, .12);
}

.chip.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Tarjetas de servicios */
.service-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 1rem;
    transition: transform .12s ease, box-shadow .12s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--brand);
}

/* Timeline ligera (horizontal en desktop, vertical en mobile) */
.timeline-lite {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.timeline-lite-item {
    position: relative;
}

.timeline-lite-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 1rem;
    padding: 1rem;
}

@media (min-width: 992px) {
    .timeline-lite {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .timeline-lite-item {
        padding-top: .75rem;
    }

    .timeline-lite-item::before {
        content: "";
        position: absolute;
        left: -8px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, rgba(21, 44, 119, .15), rgba(21, 44, 119, 0));
        border-radius: 1px;
        display: none;
    }
}

.text-secondary {
    color: #ffffff !important;
}