/* ============================================================
   NOSOTROS - VERSIÓN ULTRA PREMIUM (RLA)
   ============================================================ */

:root {
    --cherry: #D61E43;
    --violet: #7E22CE;
    --orange: #F97316;
    --text-main: #1d1d1f;
    --text-sec: #6e6e73;
    --grad-rla: linear-gradient(135deg, #F97316 0%, #D61E43 50%, #7E22CE 100%);
    --grad-soft-v: linear-gradient(135deg, rgba(126, 34, 206, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-soft: rgba(0,0,0,0.06);
}

/* RESET Y ESTRUCTURA */
#nosotros-page { overflow-x: hidden; background-color: var(--white); }
.section-padding { padding: 120px 8%; }

/* ============================================================
   1. HERO SECCIÓN
   ============================================================ */
.nosotros-hero {
    padding: 180px 8% 80px;
    background: var(--white);
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.container-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-text h1 span {
    background: var(--grad-rla);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 45px;
    max-width: 580px;
}

.hero-stats { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats span {
    background: #f0f0f2;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.hero-image-container {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: var(--grad-rla);
    box-shadow: 0 40px 90px rgba(0,0,0,0.15);
}

.hero-image-container img {
    width: 100%;
    display: block;
    transition: var(--transition);
}
.hero-image-container:hover img { transform: scale(1.05); }

/* ============================================================
   2. BENTO GRID (Diseño Avanzado)
   ============================================================ */
.bento-nosotros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px); /* Un poco más de altura para legibilidad */
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: var(--white);
    border-radius: 45px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    border-color: var(--violet);
}

/* Item Principal */
.item-main {
    grid-column: span 2;
    background: var(--grad-rla);
    color: white;
    flex-direction: row;
    gap: 30px;
}
.item-main h2 { font-size: 6rem; font-weight: 900; letter-spacing: -4px; }
.item-main h3 { font-size: 2rem; font-weight: 800; margin-bottom: 5px; }

/* Contenedor de Imágenes del Bento */
.bento-img-container {
    padding: 0 !important;
}
.bento-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.bento-img-container:hover img { transform: scale(1.1); }

/* Ubicación con Overlay (Efecto Elegante) */
.item-ubicacion-img { grid-column: span 2; }
.info-overlay-dark {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    pointer-events: none;
}
.info-overlay-dark h4 { color: white !important; font-size: 1.8rem; margin: 0; }
.info-overlay-dark p { color: rgba(255,255,255,0.8) !important; margin: 0; }

/* Tarjeta del Profesor */
.item-profesor {
    background: var(--grad-soft-v);
    text-align: center;
    align-items: center;
}
.icon-brand-box {
    width: 80px; height: 80px;
    background: white;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Colores de Acento */
.purple { background: var(--violet); color: white; }
.orange { background: var(--orange); color: white; }
.bento-item i { font-size: 2.8rem; margin-bottom: 20px; }

/* ============================================================
   3. MISIÓN Y VISIÓN
   ============================================================ */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.mv-card {
    background: #fbfbfd;
    padding: 60px;
    border-radius: 50px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}
.mv-card:hover { transform: scale(1.02); background: white; border-color: var(--violet); }

/* ============================================================
   4. WHATSAPP Y MÓVIL
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 1024px) {
    .container-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .bento-nosotros { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .item-main, .item-ubicacion-img { grid-column: span 2; }
}

@media (max-width: 600px) {
    .nosotros-hero { padding: 120px 6% 60px; }
    .hero-text h1 { font-size: 2.5rem !important; }
    .bento-nosotros { grid-template-columns: 1fr; }
    .item-main, .item-ubicacion-img { grid-column: span 1; }
    .item-main h2 { font-size: 4.5rem; }
    .mv-grid { grid-template-columns: 1fr; }
    .whatsapp-float { bottom: 20px; right: 20px; transform: scale(0.8); }
}