/* IMPORTAR Y FORZAR FUENTE MONTSERRAT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Aplicar Montserrat EXCLUYENDO los iconos de Font Awesome */
body {
    font-family: 'Montserrat', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
}

p, span, div, a, button, input, textarea, select {
    font-family: 'Montserrat', sans-serif !important;
}

/* Asegurar que los iconos de Font Awesome mantengan su fuente */
.fas, .far, .fab, .fal, .fad, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
}

/* También puedes usar el selector más específico */
i[class*="fa-"], i[class^="fa "] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
}
.main-navigation {
    background: linear-gradient(135deg, #691B31 0%, #691B31 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    width: 100%; /* Agregar esto */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%; /* Agregar esto */
}

.nav-item {
    position: relative;
    /* CAMBIAR ESTAS LÍNEAS */
    flex: 1; /* Hace que todos tengan el mismo ancho */
    min-width: 0; /* Permite que el texto se ajuste */
    margin: 0 2px; /* Reducir el margen */
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px; /* Reducir padding horizontal */
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    min-height: 100px; /* CAMBIAR: Altura fija para todos */
    justify-content: center;
    background: transparent;
    width: 100%; /* Agregar esto */
    box-sizing: border-box; /* Agregar esto */
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #ffffff;
}

.nav-link i {
    font-size: 24px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Agregar esto - El icono no se encoge */
}

.nav-text {
    font-size: 16px; /* CAMBIAR: Reducir tamaño de fuente */
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
    /* AGREGAR ESTAS LÍNEAS */
    flex: 1; /* Permite que el texto ocupe el espacio disponible */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    word-wrap: break-word;
    hyphens: auto;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #DDC9A3, #DDC9A3);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Pestaña Activa */
.nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.15);
    color: #DDC9A3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nav-item.active .nav-link i {
    color: #DDC9A3;
    transform: scale(1.1);
}

.nav-item.active .nav-text {
    color: #DDC9A3;
    font-weight: 700;
}

.nav-item.active .nav-indicator {
    width: 80%;
}

/* Efectos hover para pestañas no activas */
.nav-item:not(.active) .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-item:not(.active) .nav-link:hover i {
    transform: scale(1.05);
    color: #e8f5e8;
}

.nav-item:not(.active) .nav-link:hover .nav-text {
    color: #e8f5e8;
}

.nav-item:not(.active) .nav-link:hover .nav-indicator {
    width: 60%;
    background: rgba(255, 255, 255, 0.6);
}

/* AGREGAR ESTOS BREAKPOINTS PARA TEXTO MÁS PEQUEÑO */
@media (max-width: 1024px) {
    .nav-text {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .nav-text {
        font-size: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        margin: 5px 0;
        width: 100%;
        max-width: 300px;
        flex: none; /* AGREGAR: Quitar flex en móvil */
    }
    
    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 20px;
        min-height: auto;
        text-align: left; /* AGREGAR */
    }
    
    .nav-link i {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 20px;
    }
    
    .nav-text {
        font-size: 14px;
        text-align: left;
        justify-content: flex-start; /* AGREGAR */
    }
    
    .nav-indicator {
        bottom: auto;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        transition: height 0.3s ease;
    }
    
    .nav-item.active .nav-indicator {
        height: 60%;
        width: 4px;
    }
    
    .nav-item:not(.active) .nav-link:hover .nav-indicator {
        height: 40%;
        width: 4px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-link {
        padding: 12px 15px;
    }
    
    .nav-text {
        font-size: 12px;
    }
    
    .nav-link i {
        font-size: 18px;
        margin-right: 12px;
    }
}

/* Animación de entrada */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-navigation {
    animation: slideInDown 0.5s ease-out;
}

/* Efecto de pulso para la pestaña activa */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 35px rgba(221, 201, 163, 0.3); /* CAMBIAR: Usar el color correcto */
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

.nav-item.active .nav-link {
    animation: pulse 2s infinite;
}