
/* ============================================
   NAVEGACIÓN VISUAL INSTITUCIONAL
   Estilo: Cards cuadradas profesionales sin hover
   ============================================ */

.institutional-nav-section {
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
    border-top: 1px solid rgba(121, 120, 120, 0.5);
}

.institutional-nav-container {
    max-width: 100%;
    margin-bottom: 40px;
    padding: 0;
    
}

/* Grid de 4 columnas SIN espacios entre cards */
.institutional-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    margin-bottom: 140px;
    max-height: 200px;
}

.nav-card-inst {
    filter: brightness(1.4);
}

/* Cada card cuadrada - MÁS PEQUEÑAS */
.nav-card-inst {
    position: relative;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: 100px;
    
}

/* Imágenes de fondo para cada card */
.nav-card-inst {
    background-image: url('/images/educacion_secundaria/imagen1.jpg');
    background-size: cover;
    background-position: center;
}

.nav-card-inst.filosofia {
    background-image: url('/images/educacion_secundaria/imagen2.jpg');
}

.nav-card-inst.principios {
    background-image: url('/images/educacion_inicial/imagen.jpg');
}

.nav-card-inst.simbolos {
    background-image: url('/images/bandera.png');
}

/* Overlay con degradado OSCURO (verde a negro) */
.nav-card-overlay-inst {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.60) 100%);
    z-index: 1;
}

/* Contenido centrado */
.nav-card-content-inst {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* Ícono BLANCO - SIN borde ni fondo circular */
.nav-icon-inst {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.nav-icon-inst i {
    font-size: 2.5rem;
    color: var(--white);
}

/* Título BLANCO */
.nav-title-inst {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}





/* ============================================
   RESPONSIVE DESIGN - SOLO PANTALLAS PEQUEÑAS
   ============================================ */

/* Tablets medianas a grandes (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .institutional-nav-section {
        margin-top: 25px;
    }

    .institutional-nav-container {
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .institutional-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        max-height: none;
    }

    .nav-card-inst {
        height: 280px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .nav-card-content-inst {
        padding: 1.8rem;
    }

    .nav-icon-inst {
        margin-bottom: 1rem;
    }

    .nav-icon-inst i {
        font-size: 2.3rem;
    }

    .nav-title-inst {
        font-size: 1.2rem;
        letter-spacing: 0.8px;
    }
}

/* Tablets pequeñas (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    .institutional-nav-section {
        margin-top: 20px;
        overflow-x: hidden;
    }

    .institutional-nav-container {
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .institutional-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        max-height: none;
    }

    .nav-card-inst {
        height: 240px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .nav-card-content-inst {
        padding: 1.5rem 1rem;
    }

    .nav-icon-inst {
        margin-bottom: 0.9rem;
    }

    .nav-icon-inst i {
        font-size: 2.1rem;
    }

    .nav-title-inst {
        font-size: 1.1rem;
        letter-spacing: 0.6px;
    }
}

/* Móviles grandes (481px - 599px) */
@media (max-width: 599px) and (min-width: 481px) {
    .institutional-nav-section {
        margin-top: 15px;
        overflow-x: hidden;
    }

    .institutional-nav-container {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .institutional-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        max-height: none;
    }

    .nav-card-inst {
        height: 200px;
        margin-top: 10px;
        margin-bottom: 10px;
        filter: brightness(1.3);
    }

    .nav-card-content-inst {
        padding: 1.2rem 0.8rem;
    }

    .nav-icon-inst {
        margin-bottom: 0.7rem;
    }

    .nav-icon-inst i {
        font-size: 1.9rem;
    }

    .nav-title-inst {
        font-size: 0.95rem;
        letter-spacing: 0.4px;
        line-height: 1.2;
    }
}

/* Móviles medianos (376px - 480px) */
@media (max-width: 480px) and (min-width: 376px) {
    .institutional-nav-section {
        margin-top: 15px;
        overflow-x: hidden;
        border-top: 1px solid rgba(121, 120, 120, 0.4);
    }

    .institutional-nav-container {
        margin-bottom: 15px;
        padding: 0;
    }

    .institutional-nav-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-height: none;
    }

    .nav-card-inst {
        height: 160px;
        margin-top: 0;
        margin-bottom: 0;
        filter: brightness(1.35);
        background-position: center center;
    }

    .nav-card-overlay-inst {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.65) 100%);
    }

    .nav-card-content-inst {
        padding: 1rem 1.5rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .nav-icon-inst {
        margin-bottom: 0;
        margin-right: 1.2rem;
        flex-shrink: 0;
    }

    .nav-icon-inst i {
        font-size: 2rem;
    }

    .nav-title-inst {
        font-size: 1rem;
        text-align: left;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }
}

/* Móviles pequeños (320px - 375px) */
@media (max-width: 375px) {
    .institutional-nav-section {
        margin-top: 10px;
        overflow-x: hidden;
        border-top: 1px solid rgba(121, 120, 120, 0.3);
    }

    .institutional-nav-container {
        margin-bottom: 10px;
        padding: 0;
    }

    .institutional-nav-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-height: none;
    }

    .nav-card-inst {
        height: 140px;
        margin-top: 0;
        margin-bottom: 0;
        filter: brightness(1.4);
        background-position: center center;
    }

    .nav-card-overlay-inst {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.70) 100%);
    }

    .nav-card-content-inst {
        padding: 0.8rem 1.2rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .nav-icon-inst {
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .nav-icon-inst i {
        font-size: 1.8rem;
    }

    .nav-title-inst {
        font-size: 0.9rem;
        text-align: left;
        letter-spacing: 0.3px;
        line-height: 1.2;
        font-weight: 600;
    }
}

/* Móviles muy pequeños (menos de 320px) */
@media (max-width: 319px) {
    .institutional-nav-section {
        margin-top: 8px;
    }

    .institutional-nav-container {
        margin-bottom: 8px;
        padding: 0;
    }

    .nav-card-inst {
        height: 120px;
    }

    .nav-card-content-inst {
        padding: 0.6rem 1rem;
    }

    .nav-icon-inst {
        margin-right: 0.8rem;
    }

    .nav-icon-inst i {
        font-size: 1.6rem;
    }

    .nav-title-inst {
        font-size: 0.85rem;
        letter-spacing: 0.2px;
    }
}