/* ========================================
   IESJ Hero Slider + Nuestro Muro CSS
   Fase 2: Hero + Wall Section (FIXED)
   ======================================== */

/* ─── Hero Slider Container ─── */
.iesj-hero-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #1A3A8C 0%, #07163A 100%);
}

@media (max-width: 768px) {
    .iesj-hero-wrap {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .iesj-hero-wrap {
        height: 280px;
    }
}

/* ─── Individual Slides ─── */
.iesj-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: iesjSlideFade 15s infinite;
}

/* Primera slide visible por defecto — antes de que JS cargue no hay hero en blanco */
.iesj-hero-slide[data-slide="0"] { animation-delay: 0s; opacity: 1; }
.iesj-hero-slide[data-slide="1"] { animation-delay: -3s; }
.iesj-hero-slide[data-slide="2"] { animation-delay: -6s; }
.iesj-hero-slide[data-slide="3"] { animation-delay: -9s; }
.iesj-hero-slide[data-slide="4"] { animation-delay: -12s; }

@keyframes iesjSlideFade {
    0% { opacity: 0; }
    20% { opacity: 0.85; }
    40% { opacity: 0.85; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}

/* ─── Hero Overlay ─── */
.iesj-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(7, 22, 58, 0.45));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.iesj-hero-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 20px;
}

/* ─── Hero Tagline ─── */
.iesj-hero-tagline {
    font-size: clamp(24px, 5vw, 52px);
    font-weight: 700;
    color: #FFD700 !important;
    margin: 0 0 30px 0;
    line-height: 1.3;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.9), -1px -1px 0 rgba(0,0,0,0.8);
}

/* ─── CTA Button ─── */
.iesj-hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #C41E24 0%, #E8192D 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(196, 30, 36, 0.3);
    transition: all 0.3s ease;
}

.iesj-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(196, 30, 36, 0.5), 0 0 20px rgba(255, 215, 0, 0.4);
}

/* ─── Nuestro Muro Section ─── */
.iesj-muro-section {
    background: linear-gradient(135deg, #f5f3f0 0%, #faf8f6 100%);
    padding: 80px 20px;
    margin-top: 60px;
}

.iesj-muro-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ─── Muro Title ─── */
.iesj-muro-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #1A3A8C;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.iesj-muro-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 0 0 40px 0;
    font-weight: 400;
}

/* ─── Muro Grid ─── */
.iesj-muro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .iesj-muro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ─── Muro Card ─── */
.iesj-muro-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.iesj-muro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(26, 58, 140, 0.15), 0 0 25px rgba(255, 215, 0, 0.2);
}

/* ─── Card Image ─── */
.iesj-muro-card-image-link {
    display: block;
    overflow: hidden;
}

.iesj-muro-card-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.iesj-muro-card-image--placeholder {
    background-size: 80px auto;
    background-position: center center;
    background-color: #07163A;
    opacity: 0.85;
}

.iesj-muro-card:hover .iesj-muro-card-image {
    transform: scale(1.05);
}

/* ─── Card Content ─── */
.iesj-muro-card-content {
    padding: 24px;
}

/* ─── Card Date ─── */
.iesj-muro-card-date {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #856404; /* dorado oscuro: legible sobre blanco (WCAG AA), #FFD700 daba 1.6:1 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ─── Card Title ─── */
.iesj-muro-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A3A8C;
    margin: 12px 0 16px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.iesj-muro-card:hover .iesj-muro-card-title {
    color: #C41E24; /* rojo institucional: contraste AA sobre blanco (el dorado fallaba) */
}

/* ─── Card Excerpt ─── */
.iesj-muro-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 18px 0;
}

/* ─── Card Link ─── */
.iesj-muro-card-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #C41E24;
    text-decoration: none;
    transition: all 0.3s ease;
}

.iesj-muro-card-link:hover {
    color: #1A3A8C; /* navy: contraste AA sobre blanco (el dorado fallaba) */
    transform: translateX(4px);
}

/* ─── Responsive adjustments ─── */
@media (max-width: 480px) {
    .iesj-muro-section {
        padding: 40px 16px;
        margin-top: 30px;
    }

    .iesj-muro-card-image {
        height: 180px;
    }

    .iesj-muro-card-image--placeholder {
        background-size: 60px auto;
    }

    .iesj-muro-card-content {
        padding: 16px;
    }

    .iesj-muro-card-title {
        font-size: 16px;
    }

    .iesj-muro-card-excerpt {
        font-size: 13px;
    }
}