body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

/* HERO */
.hero-section {
    min-height: 70vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
}

.bg-light {
    background-color: #f2f4f5 !important;
}

section {
    padding: 90px 0;
}

.hero-section {
    border-top: none;
}


.hero-section h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #F8F9FA;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 850px;
    margin: 0 auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 820px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-section strong {
    color: #CFE8E4;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-intro-bg {
    background-image: url("images/background-title.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-intro-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.hero-intro-bg>.container {
    position: relative;
    z-index: 1;
}

.contenido-pni {
    max-width: 1200px;
    margin: 0 auto;
    --bs-gutter-x: 6rem;
}

.lista-pni {
    padding-left: 0;
    margin: 0;
    list-style: none;
    max-width: 600px;
    height: 100%;
}

.lista-pni li {
    position: relative;
    padding-left: 22px;
    margin: 0;
}

.lista-pni li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1f4e5f;
    font-weight: bold;
}

.profesional-img {
    max-width: 210px;
    width: 100%;
    height: auto;
    display: block;
}


.row.align-items-start {
    align-items: flex-start !important;
}

h1,
h2,
h3 {
    letter-spacing: -0.5px;
}

section {
    scroll-margin-top: 100px;
}

.btn-primary {
    background-color: #1f4e5f;
    border: none;
}

.btn-primary:hover {
    background-color: #163a46;
}

.card {
    border: none;
    border-radius: 12px;
}

footer {
    font-size: 0.9rem;
}

.navbar {
    padding: 0;
}

.navbar .container {
    position: relative;
}

.navbar-brand {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.proceso-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #f3f7f8;
    border: 1px solid rgba(31, 78, 95, 0.08);
}

.proceso-card .h2 {
    color: #1f4e5f;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.proceso-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

.proceso-card .display-6 {
    color: #1f4e5f;
}

.contacto-btn {
    background: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contacto-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    background: #f8f9fa;
}

.texto-justificado p {
    text-align: justify;
}

.texto-justificado li {
    text-align: justify;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.instagram-wrapper {
    max-width: 290px;
    margin: auto;
}

.instagram-media {
    margin: 0 !important;
}

.row.align-items-stretch>div {
    display: flex;
}

.card-apertura {
    background: #f7f7f7;
    padding: 26px 36px;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);
    border: 1px solid rgba(0, 0, 0, 0.05);
    user-select: none;
    pointer-events: none;
    max-width: 980px;
    margin: 28px auto 0 auto;
    text-align: center;
}

.texto-pni {
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: space-between;
}

.footer-clinica {
    background: #343a40;
    /* gris oscuro elegante */
}

.footer-title {
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.footer-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-text {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 420px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all .2s ease;
}

.footer-link:hover {
    color: #CFE8E4;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

/* FAQ contraste mejorado */
.custom-faq .accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
}

/* Pregunta */
.custom-faq .accordion-button {
    background-color: #ffffff;
    font-weight: 600;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

/* Hover */
.custom-faq .accordion-button:hover {
    background-color: #f8f9fa;
}

/* Activo */
.custom-faq .accordion-button:not(.collapsed) {
    background-color: #f1f3f5;
    box-shadow: none;
}

/* Texto respuesta */
.custom-faq .accordion-body {
    background-color: #fafafa;
    padding: 20px;
    border-top: 1px solid #eee;
    line-height: 1.6;
    color: #444;
}

/* Quitar flecha azul Bootstrap */
.custom-faq .accordion-button:focus {
    box-shadow: none;
}

.texto-reflexion {
    max-width: 980px;
    position: relative;
    padding: 0 2.5rem;
    margin: 0 auto;
}

.texto-reflexion::before {
    display: none;
}

.texto-reflexion strong {
    color: #1f1f1f;
    font-weight: 600;
}

.texto-reflexion::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 0, 0, 0.06),
            transparent);
}

.texto-reflexion p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 1rem;
    text-align: justify;
    text-wrap: pretty;
    position: relative;
    z-index: 1;
}

.texto-apertura {
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
    color: #1f1f1f !important;
    font-weight: 500;
    text-align: center !important;
    max-width: 820px;
    margin: 0 auto 1.5rem auto !important;
}

.texto-process {
    display: flex;
    flex-direction: column;
    gap: 22px;

    max-width: 760px;
    margin: 4rem auto 0;
    padding-top: 1rem;

    position: relative;
}

.texto-process::before {
    content: "";
    width: 60px;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);

    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.texto-process-justificado p {
    margin: 0;

    font-size: 1.02rem;
    line-height: 1.9;
    color: #5a5a5a;

    text-align: justify;
    text-align-last: center;
}

.texto-justificado-process p:last-child {
    color: #2f2f2f;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.proceso-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.proceso-card h3,
.proceso-card .h2,
.proceso-card .text-muted.mb-3 {
    text-align: center;
}

/* Subtítulo en negrita centrado */
.proceso-card .fw-semibold {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem !important;

    font-size: 0.92rem;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

.bloque-texto-pni {
    padding: 3rem;
    border-radius: 24px;
}

@media (max-width: 768px) {

    .bloque-texto-pni {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

}

/* Solo el texto descriptivo justificado */
.proceso-card .text-muted.mb-0 {
    text-align: justify;
    line-height: 1.75;
}

.proceso-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proceso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

@media (min-width: 769px) {

    .footer-clinica .row {
        justify-content: center !important;
        column-gap: 48px;
    }

    .footer-clinica .col-lg-5 {
        flex: 0 0 42%;
        max-width: 42%;
    }

    .footer-clinica .col-lg-4 {
        flex: 0 0 28%;
        max-width: 28%;
    }

}

@media (max-width: 768px) {
    .texto-reflexion {
        padding: 0 1rem;
    }

    .texto-reflexion p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .texto-apertura {
        font-size: 1.05rem !important;
    }
}

/* Mobile */
@media (max-width: 768px) {

    @media (max-width: 768px) {
        .instagram-wrapper {
            display: flex;
            justify-content: center;
            margin-bottom: 12px;
        }
    }


    .texto-reflexion {
        width: 100%;
        padding-left: 22px;
        padding-right: 22px;
        max-width: 100%;
    }

    .texto-reflexion p {
        text-align: justify;
        text-justify: inter-word;
    }

    .texto-apertura {
        font-size: 1.05rem !important;
        max-width: 100%;
    }

    .navbar-brand {
        top: 0px;
        transform: none;
    }

    .navbar-brand img {
        height: 40px;
        padding-left: 15px;
    }

    .navbar-toggler {
        margin-left: auto;
        z-index: 10;
    }

    .contenido-pni {
        padding-left: 0;
        padding-right: 0;
    }

    .lista-pni {
        max-width: 100%;
        height: auto;
        padding-left: 0;
    }

    .lista-pni li {
        padding-left: 16px;
        margin-bottom: 12px;
    }

    .lista-pni li::before {
        left: 0;
        font-size: 14px;
    }

    .mb-0 {
        padding-bottom: 1rem;
    }

    .text {
        padding-bottom: 1rem;
        text-align: justify;
    }

    .hero-intro-bg {
        background-size: auto;
        background-position: 65% 60%;
    }

    .hero-section .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .hero-section p,
    .hero-section .lead {
        text-align: justify;
        text-justify: inter-word;
        line-height: 1.65;
        font-size: 1.05rem;
        margin-bottom: 1.3rem;
    }

    .hero-section p.fw-semibold {
        text-align: center;
        margin-top: 1.8rem;
        margin-bottom: 1.8rem;
    }

    .hero-section .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.1rem;
        border-radius: 12px;
    }


    .footer-clinica {
        text-align: center;
    }

    .footer-clinica .row {
        justify-content: center !important;
    }

    .footer-clinica .col-lg-5,
    .footer-clinica .col-lg-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-link {
        justify-content: center;
    }
}