/* Estructura de la Barra de Navegación */
:root {
    --primaryBarNav: #2c3e50;
    --accentBarNav: #3498db;
    --textBarNav: #333;
}
.barraNavPadre{
    display: flex;
    flex-direction: column; /* Los pone en columna */
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;    
}
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.custom-navbar {
    background-color: var(--primaryBarNav);
    height: 70px; 
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    overflow: hidden; /* Evita que cualquier hijo se asome por fuera */
}

.btn-icon {
    font-size: 1.1rem; /* Tamaño proporcional al texto */
    display: flex;
    align-items: center;
    padding-top: 17%;
}

.nav-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Obligamos al contenedor a medir lo mismo que el nav */
}

/* Logo */

.nav-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}
/* Título */
.nav-title {
    color: var(--textBarNav); /* Se adapta al modo claro/oscuro */
    color: white;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    flex-grow: 1;
}
.nav-actions{

}
/* Botón Regresar */
.btn-regresar {
    /* 1. Activa el contenedor flexible */
    display: inline-flex !important;
    
    /* 2. Centrado automático (Eje X e Y) */
    align-items: center !important;    /* Centro vertical absoluto */
    justify-content: center !important; /* Centro horizontal absoluto */
    
    /* 3. Dimensiones fijas */
    height: 42px;         /* Altura total del botón */
    padding: 0 15px;      /* Espacio solo a los lados, arriba/abajo es 0 */
    
    /* 4. Estética */
    background-color: var(--accentBarNav);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    line-height: 1;       /* Elimina espacios extra de texto */
    overflow: hidden;
}
.btn-regresar i {
    /* Reset total para el icono */
    margin: 0 !important;

    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
}
.btn-regresar span {
    margin-left: 8px;
    line-height: 1;
}
.btn-regresar:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Responsive: Ocultar texto en móviles */
@media (max-width: 600px) {
    .btn-text {
        display: none;
    }
    .btn-regresar {
        padding: 10px;
        border-radius: 50%;
    }
    .nav-title {
        font-size: 1rem;
    }
    .btn-icon {
        padding-top: 80%;
    }    
}