:root {
    --primary: #0e5bb3;
    --secondary: #d7b43f;
    --dark: #0b1c2d;
    --light: #f4f7fb;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
}


.nosotros-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(14, 91, 179, 0.725), rgba(11, 28, 45, 0.712)),
                url('/public/recursos/nosotros.jpg') center/cover no-repeat;
    transform: scale(1.1);
  
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 20px;
}


.story-section {
    padding: 100px 10%;
    background: white;
    will-change: transform;
}

.parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 8px;
    grid-row-gap: 11px;
}

.div1 { grid-area: 1 / 1 / 3 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 2 / 2 / 3 / 3; }


.div1 {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.div1 h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 50px;
}

.div1 p {
    line-height: 1.7;
}

.div2 img, .div3 img {
    width: 100%;
    height:250px;
    object-fit: cover; 
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,.1);
}



.objetivos-visual {
    padding: 100px 10%;
    background-image: url(/public/recursos/fondowa2.png);
    background-size: cover;
    background-position: center;
    text-align: center;
}
.objetivos-visual h2 {
    color: var(--white);
    font-size: 1.8rem;
}
.objetivos-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 60px;
}

.objetivo-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.1);
    transition: transform .4s ease;
}

.objetivo-card:hover {
    transform: translateY(-10px);
}

.badge {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 16px;
    background: #ead654;
    color: white;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
}

/* VALORES */
.valores-award {
    padding: 120px 10%;
    background: linear-gradient(120deg, var(--primary), var(--dark));
    color: white;
    text-align: center;
}
.valores-award h2 {
    font-size: 1.8rem;
}
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.valor {
    background: rgba(255,255,255,.08);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform .4s ease;
}

.valor:hover {
    transform: translateY(-15px);
}

.valor i {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* ANIMACIONES */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.2,.8,.2,1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets grandes y pantallas medianas */
@media (max-width: 1024px) {
    .story-section,
    .objetivos-visual,
    .valores-award {
        padding: 80px 5%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .div1 h2 {
        font-size: 40px;
    }

    .objetivos-cards {
        gap: 20px;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Hero */
    .nosotros-hero {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Story Section - Grid a columna */
    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .div1 { 
        grid-area: auto;
        padding: 30px 20px;
    }
    
    .div2 { 
        grid-area: auto;
    }
    
    .div3 { 
        grid-area: auto;
    }

    .div1 h2 {
        font-size: 32px;
    }

    .div2 img, .div3 img {
        height: 200px;
    }

    /* Objetivos */
    .objetivos-visual {
        padding: 60px 5%;
    }

    .objetivos-visual h2 {
        font-size: 1.5rem;
    }

    .objetivos-cards {
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
    }

    .objetivo-card {
        max-width: 100%;
        padding: 30px;
    }

    /* Valores */
    .valores-award {
        padding: 80px 5%;
    }

    .valores-award h2 {
        font-size: 1.5rem;
    }

    .valores-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }

    /* Asegurar que los elementos con la clase .fade-in sean visibles en dispositivos móviles
       porque algunas animaciones/ScrollTrigger pueden dejar opacidad 0 si no se disparan. */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Móviles */
@media (max-width: 480px) {
    /* Hero */
    .nosotros-hero {
        height: 70vh;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-top: 15px;
    }

    /* Secciones */
    .story-section,
    .objetivos-visual,
    .valores-award {
        padding: 50px 5%;
    }

    /* Story */
    .div1 {
        padding: 20px 15px;
    }

    .div1 h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .div1 p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .div2 img, .div3 img {
        height: 180px;
        border-radius: 10px;
    }

    /* Objetivos */
    .objetivos-visual h2,
    .valores-award h2 {
        font-size: 1.3rem;
    }

    .objetivo-card {
        padding: 25px 20px;
    }

    .badge {
        font-size: 0.8rem;
        padding: 5px 14px;
    }

    .objetivo-card p {
        font-size: 0.95rem;
    }

    /* Valores */
    .valor {
        padding: 30px 20px;
    }

    .valor i {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .valor h3 {
        font-size: 1.1rem;
    }

    .valor p {
        font-size: 0.9rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .div1 h2 {
        font-size: 22px;
    }

    .objetivo-card,
    .valor {
        padding: 20px 15px;
    }
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(14, 91, 179, 0.725), rgba(11, 28, 45, 0.712)),
                url('/public/recursos/nosotros.jpg') center/cover no-repeat;
    transform: scale(1.1);
    overflow: hidden;
}

/* Contenedor de tiles para animación */
.tiles-container {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.tile {
    position: absolute;
    background: linear-gradient(120deg, rgba(14, 91, 179, 0.725), rgba(11, 28, 45, 0.712)),
                url('/public/recursos/nosotros.jpg');
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center top;
    will-change: transform, opacity;
  
}

.tile:first-child {
    border-left: none;
}

.tile:last-child {
    border-right: none;
}

.tile::after {
    content: '';
    position: absolute;
    inset: 0;
  
    opacity: 0;
  
    animation-delay: 2.5s;
}

@keyframes shine {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.4; }
}
