@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Imagen de la banda “institucional” (nosotros-imagen-institucional): subí tu JPG/WEBP a imagenes/varias/ y cambiá solo esta URL. */
:root {
    --nosotros-banda-fondo: url("imagenes/varias/munaenorgano.jpg");
}

/* GENERAL */
section {
    padding: 4rem 2rem;
}

/* Fondos alternos legibles (sin depender del índice al añadir secciones) */
#quienessomos,
#mision,
#enfoque {
    background-color:#eef1f5;
}

#historia,
#metodo,
#programas,
#impacto {
    background-color: #f4f6f8;
}

section > div.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Párrafos y textos corridos justificados en esta página (títulos y portada siguen centrados donde corresponde) */
.pagina-nosotros p {
    text-align: justify;
}

@media (max-width: 768px) {
    .pagina-nosotros p {
        text-align: center;
    }
}

.pagina-nosotros .nosotrosportadatexto,
.pagina-nosotros .nosotrosportadatexto h1 {
    text-align: center;
}

.pagina-nosotros .misionvision-lead {
    text-align: justify;
    text-align-last: center;
}

.pagina-nosotros .nosotros-imagen-caption {
    text-align: justify;
    text-align-last: center;
}

/* Portada: sin padding de section — igual que inicio (evita “corte” del video/overlay) */
section.nosotrosportada {
    padding: 0;
    margin: 0;
}

/* CONTENEDORES DE TEXTO */
.quienessomostextos,
.historiatextos,
.metodotextos,
.enfoquetextos,
.impactotextos {
    max-width: 900px;
    margin: 0 auto;
}

.quienessomostextos h2,
.historiatextos h2,
.metodotextos h2,
.enfoquetextos h2,
.impactotextos h2 {
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #111;
    position: relative;
}

h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #f15a24;
    display: block;
    margin-top: 10px;
}

p {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 20px;
}

p span {
    display: block;
    margin-bottom: 15px;
    text-align: justify;
}

h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

h4 {
    margin-top: 20px;
}

/* ——— PORTADA ——— */
.nosotrosportada {
    position: relative;
    height: 100svh;
    min-height: 480px;
    max-height: none;
    overflow: hidden;
    isolation: isolate;
}

.nosotrosvideoportada {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.nosotrosvideoportada-mobile {
    display: block;
}

.nosotrosvideoportada-desktop {
    display: none;
}

@media (min-width: 769px) {
    .nosotrosvideoportada-mobile {
        display: none;
    }
    .nosotrosvideoportada-desktop {
        display: block;
    }
}

.nosotrosportadaoverlay {
    position: absolute;
    inset: 0;
    background: rgba(241, 90, 44, 0.22);
    z-index: 1;
    pointer-events: none;
}

.nosotrosportadatexto {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    padding: 0 1.25rem;
    box-sizing: border-box;
}

.nosotrosportadatexto h1 {
    max-width: 1100px;
    margin: 0 auto;
}

.nosotrosportadatexto h1 span {
    display: block;
    line-height: 1.05;
    opacity: 0;
    transform: translateY(10px);
    animation: nosotros-aparecer 0.85s ease forwards;
}

.nosotrosportadatexto h1 span:first-child,
.nosotrosportadatexto h1 span:nth-child(2) {
    font-size: clamp(2rem, 11vw, 100px);
    font-weight: 800;
}

.nosotrosportadatexto h1 span:last-child {
    font-size: clamp(1rem, 3.2vw, 30px);
    font-weight: 500;
    padding-top: 1.25rem;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
}

.nosotrosportadatexto h1 span:nth-child(1) {
    animation-delay: 0.15s;
}

.nosotrosportadatexto h1 span:nth-child(2) {
    animation-delay: 0.4s;
}

.nosotrosportadatexto h1 span:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes nosotros-aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banda imagen institucional */
.nosotros-imagen-institucional {
    padding: 0;
    margin: 0;
    position: relative;
    min-height: clamp(240px, 36vh, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(105deg, rgba(17, 24, 39, 0.82) 0%, rgba(241, 90, 44, 0.38) 55%, rgba(17, 24, 39, 0.75) 100%),
        var(--nosotros-banda-fondo) center / cover no-repeat;
        background-attachment: fixed;
}

.nosotros-imagen-institucional-inner {
    max-width: 720px;
    padding: 2.75rem 1.5rem;
}

.nosotros-imagen-caption {
    margin: 0;
    color: #fff;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* Misión + visión */
.misionvision {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.misionvision-heading {
    text-align: center;
    margin-bottom: 0.5rem;
}

.misionvision-heading::after {
    margin-left: auto;
    margin-right: auto;
}

.misionvision-lead {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.25rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.55;
}

.misionvision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .misionvision-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

.misionvision-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.65rem 1.4rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    scroll-margin-top: 96px;
}

.misionvision-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f15a24;
    margin-bottom: 0.65rem;
}

.misionvision-card p {
    margin: 0;
    text-align: justify;
    line-height: 1.65;
    color: #374151;
    font-size: 0.98rem;
}

/* Valores: grilla fija 2×2 en desktop */
#valores {
    background: linear-gradient(180deg, #eef1f5 0%, #f8f9fb 55%, #ffffff 100%);
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    position: relative;
    background-image: url("imagenes/varias/imagendebate.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px;
}

#valores::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* podés usar tu naranja institucional también */
    z-index: 1;
}
#valores .container {
    position: relative;
    z-index: 2;
}
.valores-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
    text-align: center;
    background-color: rgba(17, 17, 17, 0.101);
    backdrop-filter: blur (2px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
}
.valores-header h2{
    margin: 0 0 0.45rem;
    font-size: 1.40rem;
    color: #fff;
}
.valores-header p{
    margin: 0;
    flex: 1;
    text-align: justify;
    line-height: 1.55;
    font-size: 0.93rem;
    color: #e5e7eb
}
.valores-titulo {
    margin-bottom: 0.5rem;
}
.valores-titulo::after {
    display: none;
}
.valores-sub {
    margin: 0 0 1rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: justify;
    text-align-last: center;
    width: 100%;
}
.valores-titulo::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #f15a24;
    display: block;
    margin: 0 auto;
}

.valores-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    align-items: stretch;
}
@media (min-width: 700px) {
    .valores-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
    }
}
.valor-card {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.09);
    color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.45rem 1.3rem 1.5rem;
    min-height: 100%;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}
.valor-card:hover {
    border-color: rgba(241, 90, 36, 0.4);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.09);
    transform: translateY(-3px);
}
.valor-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 0.55rem;
}
.valor-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.12rem;
    color: #111827;
    font-weight: 700;
    color: #fff;
}
.valor-card p {
    margin: 0;
    flex: 1;
    text-align: justify;
    line-height: 1.55;
    font-size: 0.93rem;
    color: #e5e7eb
}
/* Enfoque / Impacto: texto + imagen al costado en escritorio */
.nosotros-bloque-media {
    display: block;
}

.nosotros-bloque-media .enfoquetextos,
.nosotros-bloque-media .impactotextos {
    max-width: none;
    margin: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .nosotros-bloque-media--img-derecha {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 340px);
    }

    .nosotros-bloque-media--img-izquierda {
        grid-template-columns: minmax(200px, 340px) minmax(0, 1fr);
    }
}

.nosotros-bloque-fig {
    margin: 0;
}

.nosotros-bloque-fig img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.nosotros-bloque-placeholder {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    border: 2px dashed #c5c9d0;
    background: #e8eaee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
}

.nosotros-bloque-placeholder span {
    line-height: 1.3;
}
#enfoque {
    position: relative;
    background-image: url("imagenes/varias/enfoqueimagen.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0; /* ajustá según aire que quieras */
}
#enfoque::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(103, 46, 0, 0.616); /* podés usar tu naranja institucional también */
    z-index: 1;
}
#enfoque .container {
    position: relative;
    z-index: 2;
}
.enfoquetextos h2 {
    color: #fff;
}

.enfoquetextos p {
    color: #e5e7eb;
    max-width: 700px;
    font-weight: 500;
}
/*IMPACTO*/
#impacto {
    background-color: #eef1f5;
}
.impacto-separador {
    padding: 0;
    margin: 0;
    height: clamp(220px, 32vh, 360px);
    
    background:
        linear-gradient(105deg, rgba(17, 24, 39, 0.82) 0%, rgba(241, 90, 44, 0.38) 55%, rgba(17, 24, 39, 0.75) 100%),
        url("imagenes/varias/donarimagen.jpg") center / cover no-repeat;
        background-attachment: fixed;
}
/* PROGRAMAS */
#programas {
    /* Fondo consistente con secciones de lectura larga */
    background-color: #f4f6f8;
}

.programas-header {
    max-width: 900px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.programas-header h2::after {
    margin-left: auto;
    margin-right: auto;
}

.programas-grid {
    display: block;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.programas-acordeon {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.acordeon-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.acordeon-header {
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    background: white;
    border: none;
    cursor: pointer;
    position: relative;
}

.acordeon-header::after {
    content: "+";
    position: absolute;
    right: 1rem;
    font-weight: 700;
    color: #f15a2c;
}

.acordeon-item.active .acordeon-header::after {
    content: "–";
}

.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.acordeon-item.active .acordeon-content {
    max-height: 500px;
    padding: 0.75rem 1rem 1rem;
}

.acordeon-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
}

@media (min-width: 768px) {
    .programas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.programas-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.65rem 1.4rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    scroll-margin-top: 96px;
}

.programas-card h3 {
    margin: 0 0 0.85rem;
    font-size: 1.12rem;
    color: #111827;
    font-weight: 700;
}

.programas-card h4 {
    margin: 1.15rem 0 0.45rem;
    font-size: 0.98rem;
    color: #111827;
    font-weight: 700;
}

.programas-card p {
    margin: 0 0 0.95rem;
    color: #374151;
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: justify;
}

.programas-card p:last-of-type {
    margin-bottom: 0;
}

.programas-card ul {
    margin: 0 0 0.95rem;
    padding-left: 1.25rem;
}

.programas-card ul:last-child {
    margin-bottom: 0;
}

.programas-card li {
    color: #374151;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0.25rem 0;
}

/* PROGRAMAS - sub-bloques dentro de "MODELOS DE SIMULACIÓN" */
.programas-subitems {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.programas-modelos-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .programas-modelos-intro {
        display: none;
    }
}

.programas-subitem {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}

.programas-subitem h4 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.programas-subitem p {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
    text-align: justify;
    font-size: 0.98rem;
}
/* Ocultar por defecto */
.acordeon-content {
    display: none;
    overflow: hidden;
}

/* Mostrar cuando el padre tiene la clase active */
.acordeon-item.active .acordeon-content {
    display: block;
}

/* Opcional: una flechita para indicar que abre */
.acordeon-header::after {
    content: ' ▼';
    float: right;
    font-size: 0.8rem;
}
.acordeon-item.active .acordeon-header::after {
    content: ' ▲';
}
@media (min-width: 768px) {
    .programas-subitems {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* COMITÉ (misma lógica que inicio: grid en el section) */
.comitejecutivo {
    background-color: #f89825;
    color: white;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: auto repeat(2, 1fr);
    gap: 40px 60px;
    align-items: start;
    height: max-content;
}

.comiteejecutivotitulo {
    grid-column: 1;
    align-self: center;
}

.comiteejecutivotitulo h2 {
    font-size: clamp(1.75rem, 4vw, 48px);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: white;
}

.comiteejecutivotitulo h2::after {
    background: rgba(255, 255, 255, 0.85);
    margin-left: auto;
    margin-right: auto;
}

.comitejecutivo > .comitejecutivocolumna:nth-child(2) {
    grid-column: 2;
}

.comitejecutivo > .comitejecutivocolumna:nth-child(3) {
    grid-column: 3;
}

.comitejecutivocolumna {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: center;
}

.comiteejecutivodirector {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comiteejecutivodirector:last-child {
    margin-bottom: 0;
}

.comiteejecutivo-foto {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

.comiteejecutivo-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comiteejecutivo-foto--pendiente {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comiteejecutivo-foto--pendiente::after {
    content: "Foto";
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.comiteejecutivo-ficha {
    width: 100%;
}

.comiteejecutivo-ficha h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.comiteejecutivo-ficha p {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 400;
    color: white;
    line-height: 1.5;
    text-align: justify;
    text-align-last: center;
}

/* SPONSORS */
.sponsors {
    height: 270px;
    padding: 0;
}

.sponsorstitulo {
    text-align: center;
    color: #f15a2c;
    font-size: xx-large;
    padding-top: 60px;
}

.infinite-scroller {
    width: 100%;
    padding: 10px 0;
    margin: 0;
}

.scroller-wrapper {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scroll 45s linear infinite;
}

.infinite-scroller:hover .scroller-wrapper {
    animation-play-state: paused;
}

.scroller-item {
    flex: 0 0 auto;
    width: 140px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroller-item img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .comitejecutivo {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 24px;
        gap: 32px 0;
    }

    .comitejecutivo > .comitejecutivocolumna:nth-child(2),
    .comitejecutivo > .comitejecutivocolumna:nth-child(3) {
        grid-column: 1;
    }

    .comitejecutivocolumna {
        align-items: center;
    }

    .comiteejecutivotitulo {
        grid-column: 1;
    }
}
