
:root{
    --morado:#493480;
    --morado-oscuro:#2f2157;
    --beige:#ffffff;
    --beige-claro:#ffffff;
    --beige-card:#ffffff;
    --texto:#2b2440;
    --rosa:#F7B2D0;
    --whatsapp:#25D366;
}

*{box-sizing:border-box}

html,body{
    margin:0;
    max-width:100%;
    overflow-x:hidden;
}

body{
    font-family:"Segoe UI",Arial,sans-serif;
    background:var(--beige);
    color:var(--texto);
}

.access-page{
    min-height:100vh;
    background:
        radial-gradient(circle at top right, rgba(73,52,128,.08), transparent 32%),
        var(--beige);
}

.access-header{
    width:min(1320px,94%);
    margin:0 auto;
    padding:22px 0 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    border-bottom:1px solid rgba(73,52,128,.12);
}

.access-logo img{
    width:220px;
    max-width:42vw;
    display:block;
}

.access-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
}

.access-nav a{
    min-height:44px;
    padding:10px 15px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(73,52,128,.16);
    border-radius:14px;
    background:var(--beige-card);
    color:var(--morado);
    text-decoration:none;
    font-size:13px;
    font-weight:900;
    box-shadow:0 6px 16px rgba(47,33,87,.08);
    transition:.2s ease;
}

.access-nav a:hover{
    transform:translateY(-2px);
    background:var(--morado);
    color:#fff;
}

.access-main{
    width:min(1180px,92%);
    margin:0 auto;
    padding:42px 0 70px;
}

.access-hero{
    padding:42px;
    border-radius:30px;
    background:
        linear-gradient(135deg, rgba(73,52,128,.98), rgba(47,33,87,.96));
    color:#fff;
    box-shadow:0 18px 42px rgba(47,33,87,.20);
}

.access-eyebrow{
    display:block;
    margin-bottom:9px;
    color:var(--rosa);
    font-size:12px;
    font-weight:950;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.access-hero h1{
    margin:0 0 12px;
    max-width:900px;
    color:#fff;
    font-size:clamp(34px,4.3vw,58px);
    font-weight:950;
    line-height:1.02;
}

.access-hero p{
    max-width:850px;
    margin:0;
    color:rgba(255,255,255,.91);
    font-size:17px;
    line-height:1.65;
}

.access-section{
    margin-top:26px;
    padding:34px;
    border:1px solid rgba(73,52,128,.12);
    border-radius:26px;
    background:var(--beige-card);
    box-shadow:0 12px 28px rgba(47,33,87,.10);
}

.access-section-header{
    margin-bottom:20px;
}

.access-section-header span{
    display:block;
    margin-bottom:4px;
    color:var(--morado);
    font-size:11px;
    font-weight:950;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.access-section h2{
    margin:0 0 10px;
    color:var(--morado);
    font-size:clamp(27px,3vw,38px);
    font-weight:950;
}

.access-section p{
    margin:0;
    color:var(--texto);
    line-height:1.65;
}

.access-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:18px;
    margin-top:22px;
}

.access-card{
    min-height:190px;
    padding:24px;
    display:flex;
    flex-direction:column;
    border:1px solid rgba(73,52,128,.12);
    border-radius:22px;
    background:var(--beige-claro);
    box-shadow:0 8px 18px rgba(47,33,87,.08);
}

.access-card i{
    width:52px;
    height:52px;
    margin-bottom:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:rgba(73,52,128,.09);
    color:var(--morado);
    font-size:27px;
}

.access-card h3{
    margin:0 0 8px;
    color:var(--morado-oscuro);
    font-size:20px;
    font-weight:900;
}

.access-card p{
    font-size:14.5px;
}

.access-card a,
.access-link{
    margin-top:auto;
    padding-top:16px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--morado);
    text-decoration:none;
    font-weight:900;
}

.access-card a:hover,
.access-link:hover{
    text-decoration:underline;
}

.access-cta{
    margin-top:26px;
    padding:30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    border-radius:25px;
    background:linear-gradient(135deg,#ffffff,#ffffff);
    border:2px solid rgba(73,52,128,.14);
    box-shadow:0 10px 25px rgba(47,33,87,.09);
}

.access-cta h2{
    margin:0 0 8px;
    color:var(--morado);
    font-size:28px;
    font-weight:950;
}

.access-cta p{
    margin:0;
    line-height:1.55;
}

.access-cta-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    flex:0 0 auto;
}

.access-btn{
    min-height:48px;
    padding:11px 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:0;
    border-radius:15px;
    background:var(--morado);
    color:#fff;
    text-decoration:none;
    font-weight:900;
    box-shadow:0 8px 18px rgba(47,33,87,.18);
}

.access-btn:hover{
    background:var(--morado-oscuro);
    color:#fff;
}

.access-btn.whatsapp{
    background:var(--whatsapp);
}

.access-note{
    margin-top:20px;
    padding:18px 20px;
    border-radius:17px;
    border:1px dashed rgba(73,52,128,.30);
    background:#fff7df;
    color:#5f4912;
    line-height:1.55;
}

.access-list{
    margin:16px 0 0;
    padding-left:20px;
}

.access-list li{
    margin:8px 0;
    line-height:1.5;
}

.access-values{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:12px;
    margin-top:20px;
}

.access-value{
    padding:16px;
    border-radius:16px;
    background:var(--beige-claro);
    border:1px solid rgba(73,52,128,.12);
    text-align:center;
    color:var(--morado);
    font-weight:900;
}

.access-footer{
    padding:28px 16px;
    background:var(--morado-oscuro);
    color:var(--beige-claro);
    text-align:center;
    font-size:13px;
}

@media(max-width:768px){
    .access-header{
        padding:14px 0;
        flex-direction:column;
        align-items:center;
    }

    .access-logo img{
        width:180px;
        max-width:70vw;
    }

    .access-nav{
        justify-content:center;
    }

    .access-main{
        width:min(94%,700px);
        padding:24px 0 50px;
    }

    .access-hero{
        padding:28px 22px;
        border-radius:23px;
    }

    .access-hero p{
        font-size:15px;
    }

    .access-section{
        padding:24px 19px;
        border-radius:22px;
    }

    .access-grid{
        grid-template-columns:1fr;
    }

    .access-card{
        min-height:auto;
    }

    .access-cta{
        padding:24px 20px;
        flex-direction:column;
        align-items:flex-start;
    }

    .access-cta-actions{
        width:100%;
    }

    .access-btn{
        width:100%;
    }
}

/* =========================================================
   SOCIO DISTINGUIDO - HERO CON CARRUSEL
========================================================= */

.socio-hero {
    position: relative;
    padding: 0;
    min-height: 440px;

    display: grid;
    grid-template-columns: 48% 52%;

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(73,52,128,.99),
            rgba(47,33,87,.97)
        );

    box-shadow:
        0 18px 42px rgba(47,33,87,.20);
}


/* =========================================================
   TEXTO
========================================================= */

.socio-hero-contenido {
    position: relative;
    z-index: 5;

    padding: 48px 25px 48px 42px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.socio-hero-contenido h1 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: clamp(34px, 3.7vw, 57px);
    font-weight: 950;
    line-height: 1.03;
}


.socio-hero-contenido p {
    max-width: 650px;

    margin: 0;

    color: rgba(255,255,255,.92);

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   GALERÍA
========================================================= */

.socio-hero-galeria {
    position: relative;

    min-width: 0;
    min-height: 440px;

    overflow: hidden;
}


/*
   Degradado entre texto e imagen.
   Evita que parezca que simplemente pegamos
   una fotografía junto al bloque morado.
*/
.socio-hero-galeria::before {
    content: "";

    position: absolute;
    z-index: 3;

    top: 0;
    bottom: 0;
    left: 0;

    width: 150px;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            #3c2a6d 0%,
            rgba(60,42,109,.82) 22%,
            rgba(60,42,109,.35) 60%,
            transparent 100%
        );
}


/* =========================================================
   BOOTSTRAP CAROUSEL
========================================================= */

.socio-hero-galeria .carousel,
.socio-hero-galeria .carousel-inner,
.socio-hero-galeria .carousel-item {
    width: 100%;
    height: 100%;
}


.socio-hero-galeria .carousel {
    position: absolute;

    inset: 0;
}


.socio-hero-galeria .carousel-item img {
    width: 100%;
    height: 440px;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* Ligero oscurecimiento para integrar fotografía */

.socio-hero-galeria .carousel-item::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(47,33,87,.16),
            transparent 45%
        );

    pointer-events: none;
}


/* =========================================================
   FLECHAS
========================================================= */

.socio-hero-galeria .carousel-control-prev,
.socio-hero-galeria .carousel-control-next {
    z-index: 5;

    width: 55px;

    opacity: .85;

    transition:
        opacity .2s ease,
        background .2s ease;
}


.socio-hero-galeria .carousel-control-prev:hover,
.socio-hero-galeria .carousel-control-next:hover {
    opacity: 1;
}


.socio-hero-galeria .carousel-control-prev-icon,
.socio-hero-galeria .carousel-control-next-icon {
    width: 38px;
    height: 38px;

    padding: 20px;

    border-radius: 50%;

    background-color: rgba(47,33,87,.60);

    background-size: 45%;

    box-shadow:
        0 5px 16px rgba(0,0,0,.22);
}


/* =========================================================
   INDICADORES
========================================================= */

.socio-hero-galeria .carousel-indicators {
    z-index: 6;

    margin-bottom: 16px;
}


.socio-hero-galeria .carousel-indicators button {
    width: 9px;
    height: 9px;

    margin: 0 5px;

    border: 0;
    border-radius: 50%;

    background-color: #ffffff;

    opacity: .55;
}


.socio-hero-galeria .carousel-indicators .active {
    opacity: 1;

    transform: scale(1.25);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .socio-hero {
        grid-template-columns: 1fr;
    }


    .socio-hero-contenido {
        padding: 35px 30px 30px;
    }


    .socio-hero-contenido h1 {
        max-width: 760px;

        font-size: clamp(32px, 6vw, 46px);
    }


    .socio-hero-galeria {
        min-height: 380px;
    }


    .socio-hero-galeria .carousel-item img {
        height: 380px;
    }


    /*
       En móvil/tablet el degradado pasa
       de vertical a horizontal.
    */

    .socio-hero-galeria::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;

        width: 100%;
        height: 80px;

        background:
            linear-gradient(
                180deg,
                #3c2a6d 0%,
                rgba(60,42,109,.60) 35%,
                transparent 100%
            );
    }

}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 576px) {

    .socio-hero {
        min-height: auto;

        border-radius: 22px;
    }


    .socio-hero-contenido {
        padding: 28px 21px 24px;
    }


    .socio-hero-contenido h1 {
        font-size: 29px;
        line-height: 1.07;
    }


    .socio-hero-contenido p {
        font-size: 14px;
        line-height: 1.5;
    }


    .socio-hero-galeria {
        min-height: 280px;
    }


    .socio-hero-galeria .carousel-item img {
        height: 280px;
    }


    .socio-hero-galeria .carousel-control-prev,
    .socio-hero-galeria .carousel-control-next {
        width: 45px;
    }


    .socio-hero-galeria .carousel-control-prev-icon,
    .socio-hero-galeria .carousel-control-next-icon {
        width: 32px;
        height: 32px;

        padding: 17px;
    }

}


/* =========================================================
   NOSOTROS - PORTADA Y SECCIONES DINÁMICAS
========================================================= */

.nosotros-main {
    width: min(1180px, 92%);
}

.nosotros-hero {
    position: relative;
    overflow: hidden;
}

.nosotros-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -130px;
    bottom: -190px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}

.nosotros-hero-contenido {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 36px;
}

.nosotros-hero-icon {
    width: 170px;
    max-width: 100%;
    height: 170px;
    object-fit: contain;
    justify-self: end;
    filter: brightness(0) invert(1);
    opacity: .92;
}


/* MENÚ NOSOTROS */

.nosotros-menu {
    margin-top: 28px;
    padding: 34px;

    background: var(--beige-card);
    border: 1px solid rgba(73,52,128,.12);
    border-radius: 28px;

    box-shadow: 0 12px 28px rgba(47,33,87,.10);
}

.nosotros-menu-header {
    max-width: 760px;
    margin-bottom: 24px;
}

.nosotros-menu-header > span {
    display: block;
    margin-bottom: 5px;

    color: var(--morado);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
}

.nosotros-menu-header h2 {
    margin: 0 0 8px;

    color: var(--morado);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 950;
}

.nosotros-menu-header p {
    margin: 0;
    line-height: 1.55;
}

.nosotros-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.nosotros-menu-card {
    --card-accent: #493480;

    min-height: 155px;
    padding: 20px 22px;

    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 20px;

    border: 2px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
    border-radius: 23px;

    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--card-accent) 7%, #ffffff),
            #ffffff 58%
        );

    color: var(--texto);

    text-align: left;
    cursor: pointer;

    box-shadow: 0 8px 22px rgba(47,33,87,.10);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.nosotros-menu-card:hover,
.nosotros-menu-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--card-accent);
    box-shadow: 0 14px 28px rgba(47,33,87,.16);
}

.nosotros-menu-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--card-accent) 32%, transparent);
    outline-offset: 3px;
}

.nosotros-menu-icon {
    width: 86px;
    height: 86px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: rgba(255,255,255,.70);
}

.nosotros-menu-icon img {
    width: 68px;
    height: 68px;

    display: block;
    object-fit: contain;
}

.nosotros-menu-texto {
    min-width: 0;
}

.nosotros-menu-texto strong {
    display: block;

    color: var(--morado-oscuro);
    font-size: 22px;
    font-weight: 950;
}

.nosotros-menu-texto small {
    display: block;
    margin-top: 5px;

    color: var(--texto);
    font-size: 14px;
    line-height: 1.4;
}

.nosotros-menu-card > i {
    color: var(--card-accent);
    font-size: 23px;
}

.nosotros-menu-card-wide {
    grid-column: 1 / -1;

    width: min(650px, 100%);
    justify-self: center;
}


/* COLORES SEGÚN ICONO */

.card-historia {
    --card-accent: #b88c63;
}

.card-mision {
    --card-accent: #f0c94d;
}

.card-vision {
    --card-accent: #2f9fe8;
}

.card-valores {
    --card-accent: #c35ee0;
}

.card-hoy {
    --card-accent: #493480;
}


/* CONTENIDO DINÁMICO */

.nosotros-contenido {
    min-height: 420px;
}

.nosotros-loading {
    min-height: 360px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: var(--morado);
    font-weight: 900;
}

.nosotros-volver {
    margin-bottom: 18px;
    padding: 9px 14px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    border: 1px solid rgba(73,52,128,.16);
    border-radius: 13px;

    background: var(--beige-card);
    color: var(--morado);

    font: inherit;
    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    transition: .2s ease;
}

.nosotros-volver:hover {
    background: var(--morado);
    color: #fff;
}

.nosotros-detalle-header {
    --section-accent: #493480;

    padding: 34px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 32px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--section-accent) 12%, #ffffff),
            #ffffff 70%
        );

    border: 2px solid color-mix(in srgb, var(--section-accent) 25%, transparent);

    box-shadow: 0 12px 28px rgba(47,33,87,.10);
}

.detalle-historia .nosotros-detalle-header {
    --section-accent: #b88c63;
}

.detalle-mision .nosotros-detalle-header {
    --section-accent: #f0c94d;
}

.detalle-vision .nosotros-detalle-header {
    --section-accent: #2f9fe8;
}

.detalle-valores .nosotros-detalle-header {
    --section-accent: #c35ee0;
}

.detalle-hoy .nosotros-detalle-header {
    --section-accent: #493480;
}

.nosotros-detalle-header img {
    width: 130px;
    height: 130px;

    object-fit: contain;
    justify-self: end;
}

.nosotros-detalle-eyebrow {
    display: block;
    margin-bottom: 6px;

    color: var(--morado);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nosotros-detalle-header h1 {
    margin: 0 0 10px;

    color: var(--morado-oscuro);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 950;
    line-height: 1;
}

.nosotros-detalle-header p {
    max-width: 750px;
    margin: 0;

    font-size: 16px;
    line-height: 1.55;
}

.nosotros-detalle-bloque {
    margin-top: 24px;
    padding: 32px;

    border: 1px solid rgba(73,52,128,.12);
    border-radius: 25px;

    background: var(--beige-card);

    box-shadow: 0 10px 24px rgba(47,33,87,.08);
}

.nosotros-detalle-bloque h2 {
    margin: 0 0 14px;

    color: var(--morado);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 950;
}

.nosotros-detalle-bloque p {
    margin: 0 0 13px;
    line-height: 1.7;
}

.nosotros-detalle-bloque p:last-child {
    margin-bottom: 0;
}

.nosotros-detalle-titulo > span {
    display: block;
    margin-bottom: 4px;

    color: var(--morado);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* MISIÓN / VISIÓN */

.nosotros-declaracion {
    display: flex;
    justify-content: center;
}

.nosotros-declaracion blockquote {
    max-width: 900px;
    margin: 0;
    padding: 18px 0;

    color: var(--morado-oscuro);

    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.25;

    text-align: center;
}

.nosotros-mini-grid {
    margin-top: 20px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.nosotros-mini-grid article {
    padding: 24px;

    border: 1px solid rgba(73,52,128,.12);
    border-radius: 20px;

    background: var(--beige-card);
}

.nosotros-mini-grid i {
    color: var(--morado);
    font-size: 28px;
}

.nosotros-mini-grid h3 {
    margin: 12px 0 7px;

    color: var(--morado-oscuro);
    font-size: 19px;
    font-weight: 900;
}

.nosotros-mini-grid p {
    margin: 0;

    font-size: 14px;
    line-height: 1.55;
}


/* TIMELINE */

.nosotros-timeline {
    position: relative;

    margin-top: 25px;
    padding-left: 34px;
}

.nosotros-timeline::before {
    content: "";

    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;

    width: 3px;

    border-radius: 5px;

    background: linear-gradient(
        to bottom,
        #b88c63,
        #493480
    );
}

.nosotros-timeline-item {
    position: relative;
    padding: 0 0 28px 15px;
}

.nosotros-timeline-item:last-child {
    padding-bottom: 0;
}

.nosotros-timeline-marker {
    position: absolute;

    left: -33px;
    top: 4px;

    width: 16px;
    height: 16px;

    border: 4px solid var(--beige-card);
    border-radius: 50%;

    background: var(--morado);

    box-shadow: 0 0 0 2px var(--morado);
}

.nosotros-timeline-item small {
    color: #8b694d;
    font-weight: 900;
}

.nosotros-timeline-item h3 {
    margin: 3px 0 5px;

    color: var(--morado-oscuro);
    font-size: 20px;
    font-weight: 950;
}

.nosotros-timeline-item p {
    margin: 0;
}

.timeline-pendiente {
    opacity: .78;
}


/* VALORES */

.nosotros-valores-grid {
    margin-top: 24px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.nosotros-valores-grid article {
    min-height: 145px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid rgba(195,94,224,.22);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(195,94,224,.08),
            var(--beige-card)
        );

    box-shadow: 0 8px 18px rgba(47,33,87,.07);
}

.nosotros-valores-grid span {
    color: #c35ee0;

    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
}

.nosotros-valores-grid h3 {
    margin: 20px 0 0;

    color: var(--morado-oscuro);
    font-size: 20px;
    font-weight: 950;
}


/* SAN JOSÉ HOY */

.nosotros-pendiente-info {
    margin-top: 22px;
    padding: 22px;

    display: flex;
    align-items: flex-start;
    gap: 15px;

    border: 1px dashed rgba(73,52,128,.30);
    border-radius: 19px;

    background: #fff7df;
}

.nosotros-pendiente-info > i {
    margin-top: 1px;

    color: var(--morado);
    font-size: 25px;
}

.nosotros-pendiente-info strong {
    color: var(--morado-oscuro);
}

.nosotros-pendiente-info p {
    margin: 5px 0 0;
    line-height: 1.55;
}


/* ERROR */

.nosotros-error {
    min-height: 360px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 35px;

    text-align: center;
}

.nosotros-error > i {
    margin-bottom: 12px;

    color: #d78900;
    font-size: 40px;
}

.nosotros-error h2 {
    color: var(--morado);
    font-weight: 950;
}

.nosotros-error button {
    margin-top: 15px;
    padding: 10px 16px;

    border: 0;
    border-radius: 13px;

    background: var(--morado);
    color: #fff;

    font-weight: 900;
}


/* =========================================================
   NOSOTROS RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .nosotros-main {
        width: min(94%, 700px);
    }

    .nosotros-hero-contenido {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nosotros-hero-icon {
        width: 110px;
        height: 110px;

        justify-self: center;
    }

    .nosotros-menu {
        padding: 24px 18px;
        border-radius: 23px;
    }

    .nosotros-menu-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .nosotros-menu-card,
    .nosotros-menu-card-wide {
        width: 100%;
        grid-column: auto;

        min-height: 120px;

        grid-template-columns: 72px minmax(0, 1fr) 22px;

        gap: 14px;
        padding: 16px;
    }

    .nosotros-menu-icon {
        width: 68px;
        height: 68px;

        border-radius: 17px;
    }

    .nosotros-menu-icon img {
        width: 54px;
        height: 54px;
    }

    .nosotros-menu-texto strong {
        font-size: 19px;
    }

    .nosotros-menu-texto small {
        font-size: 13px;
    }

    .nosotros-detalle-header {
        padding: 25px 20px;

        grid-template-columns: 1fr;
        gap: 18px;

        text-align: center;
    }

    .nosotros-detalle-header img {
        width: 100px;
        height: 100px;

        justify-self: center;

        grid-row: 1;
    }

    .nosotros-detalle-bloque {
        padding: 24px 19px;
    }

    .nosotros-mini-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-valores-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 430px) {

    .nosotros-menu-card,
    .nosotros-menu-card-wide {
        grid-template-columns: 60px minmax(0, 1fr) 18px;
        gap: 11px;
    }

    .nosotros-menu-icon {
        width: 57px;
        height: 57px;
        border-radius: 14px;
    }

    .nosotros-menu-icon img {
        width: 46px;
        height: 46px;
    }

    .nosotros-menu-texto strong {
        font-size: 17px;
    }

    .nosotros-menu-texto small {
        font-size: 12px;
    }

    .nosotros-valores-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-declaracion blockquote {
        font-size: 23px;
    }
}


/* =========================================================
   CABECERA UNIFICADA - INDEX / PACIENTES / NOSOTROS
   ========================================================= */
.site-header-unified{
    width:min(1500px,94%);
    margin:0 auto;
    padding:18px 28px;
    display:grid;
    grid-template-columns:260px minmax(0,1fr) auto;
    align-items:center;
    gap:30px;
    background:var(--beige);
    border-bottom:2px solid rgba(73,52,128,.12);
}
.site-header-logo{display:flex;align-items:center;justify-content:flex-start;text-decoration:none}
.site-header-logo img{width:245px;height:auto;display:block;max-width:100%}
.site-header-welcome{text-align:center}
.site-header-welcome>span{display:block;color:var(--morado);font-size:14px;font-weight:900;letter-spacing:.18em}
.site-header-welcome h1{margin:4px 0;color:var(--morado);font-size:clamp(28px,3vw,46px);font-weight:950;line-height:1}
.site-header-welcome p{max-width:720px;margin:0 auto;color:var(--texto);font-size:clamp(14px,1.25vw,18px);line-height:1.4}
.site-header-contact{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 16px}
.site-header-contact a{display:inline-flex;align-items:center;gap:7px;color:var(--morado);text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap}
.site-header-contact a i{font-size:18px}
.site-header-contact a:hover{color:var(--morado-oscuro)}

/* La altura de pacientes ahora considera la cabecera clara, no la barra morada */
.patient-header-unified + .patient-zone{
    height:calc(100vh - 118px);
}

@media (max-width:992px){
    .site-header-unified{
        width:min(100%,760px);
        padding:18px 20px 16px;
        grid-template-columns:1fr;
        justify-items:center;
        gap:8px;
        text-align:center;
    }
    .site-header-logo{justify-content:center}
    .site-header-logo img{width:190px;max-width:60vw}
    .site-header-welcome>span{font-size:11px}
    .site-header-welcome h1{font-size:clamp(25px,6vw,34px)}
    .site-header-welcome p{font-size:13px;max-width:520px}
    .site-header-contact{width:100%;justify-content:center;gap:8px}
    .site-header-contact a{
        min-height:38px;padding:8px 12px;border:1px solid rgba(73,52,128,.14);
        border-radius:12px;background:var(--beige-card);box-shadow:0 5px 14px rgba(47,33,87,.08);
    }
    .patient-header-unified + .patient-zone{height:auto;min-height:0}
}

@media (max-width:576px){
    .site-header-unified{width:100%;padding:14px 14px 12px}
    .site-header-logo img{width:175px}
    .site-header-welcome h1{font-size:27px}
    .site-header-welcome p{font-size:12px;line-height:1.35}
    .site-header-contact{gap:6px}
    .site-header-contact a{padding:7px 9px;font-size:11px;border-radius:11px}
    .site-header-contact a i{font-size:14px}
}

/* Ajustes solicitados por diseño: fondo blanco y componentes claros */
body,.access-page{background:#fff!important}.access-page{background-image:none!important}.access-main{width:min(1420px,92%);padding-top:38px}.access-section,.access-card,.access-cta{background:#fff!important}.access-section{box-shadow:0 12px 30px rgba(47,33,87,.08)}.access-card{box-shadow:0 10px 24px rgba(47,33,87,.10)}.access-footer{display:none}
@media(max-width:768px){.access-main{width:100%;padding:28px 28px 40px}.access-hero{padding:30px 24px;border-radius:24px}.access-hero h1{font-size:30px}.access-section{padding:25px 20px}.access-grid{grid-template-columns:1fr 1fr}.access-card{padding:20px;min-height:210px}.access-cta{padding:22px;flex-direction:column;align-items:flex-start}}
@media(max-width:560px){.access-grid{grid-template-columns:1fr}.access-card{min-height:180px}}

/* =========================================================
   AJUSTES FINALES RESPONSIVE / ACCESIBILIDAD
   ========================================================= */
img, video { max-width: 100%; }
.access-page { min-width: 0; }
.access-main, .access-grid, .access-card { min-width: 0; }
.access-card h1, .access-card h2, .access-card h3,
.access-hero h1, .access-hero p { overflow-wrap: anywhere; }

@media (max-width: 430px) {
    .access-main { padding-left: 14px; padding-right: 14px; }
    .access-hero { padding: 26px 20px; }
    .access-hero h1 { font-size: clamp(1.75rem, 9vw, 2.25rem); line-height: 1.08; }
    .access-card { padding: 18px; }
}

@media (min-width: 1800px) {
    .access-main, .page-back-wrap { max-width: 1540px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 2560px) {
    .access-main, .page-back-wrap { max-width: 1900px; }
    .access-hero h1 { font-size: clamp(3rem, 2.3vw, 4.2rem); }
    .access-card { font-size: 1.08rem; }
}
