/* === FUENTE POPPINS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
}

/* === NAVBAR MEJORADO === */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.8rem 0;
    min-height: 60px;
}

/* Contenedor flexible para la fila superior */
.navbar-mobile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* === LOGO (siempre visible) === */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 2;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Texto completo solo en escritorio */
.brand-text-full {
    font-weight: 700;
    font-size: 1.5rem;
    color: #000000;
    white-space: nowrap;
}

/* === TÍTULO CENTRADO EN MÓVIL === */
.brand-text-mobile {
    /* Ocupa el espacio restante y se centra */
    flex: 1 1 auto;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #000000;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none; /* no interfiere con clics */
}

/* Botón hamburguesa */
.navbar-toggler {
    flex-shrink: 0;
    z-index: 2;
}

/* === ENLACES DEL MENÚ === */
.navbar-custom .nav-link {
    color: #000000 !important;
    font-weight: 500;
    margin: 0 4px;
    padding: 8px 14px !important;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-custom .nav-link:hover {
    background-color: #fbb200;
    color: #000000 !important;
}

.nav-link.text-warning {
    color: #fbb200 !important;
}

/* === CONTENEDOR PRINCIPAL === */
.container {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* === TARJETAS (Cards) === */
.card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card-header {
    background-color: #fbb200;
    color: #000000;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

/* === BOTONES === */
.btn-primary {
    background-color: #fbb200;
    border-color: #fbb200;
    color: #000000;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #e5a600;
    border-color: #e5a600;
    color: #000000;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-warning {
    background-color: #fbb200;
    border-color: #fbb200;
    color: #000000;
}

/* === TABLAS === */
.table {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.table thead th {
    background-color: #fbb200;
    color: #000000;
    font-weight: 600;
    border: none;
}

.table td, .table th {
    vertical-align: middle;
    border-color: #f0f0f0;
}

/* === BADGES === */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 20px;
}

.badge.bg-primary {
    background-color: #fbb200 !important;
    color: #000000;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* === FORMULARIOS === */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
}

.form-control:focus {
    border-color: #fbb200;
    box-shadow: 0 0 0 0.2rem rgba(251,178,0,0.25);
}

.form-select {
    border-radius: 8px;
}

/* === ALERTAS === */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #fbb200;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* === FLAGS (flag-icons) === */
.fi {
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    vertical-align: middle;
}

/* =============================================
   RESPONSIVE – MÓVILES (hasta 575.98px)
   ============================================= */
@media (max-width: 575.98px) {
    .navbar-custom {
        min-height: 56px;
    }
    .logo-img {
        height: 30px;          /* Logo más pequeño */
    }
    .brand-text-mobile {
        font-size: 0.9rem;     /* Tamaño óptimo */
        font-weight: 700;
    }
    .navbar-mobile-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    /* Asegurar que el menú colapsable no afecte la fila superior */
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 0;
    }
}

/* Ajustes para tablets */
@media (min-width: 576px) and (max-width: 768px) {
    .logo-img {
        height: 38px;
    }
    .brand-text-full {
        font-size: 1.3rem;
    }
    .brand-text-mobile {
        display: none !important;
    }
}

/* === FOOTER === */
.footer-custom {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 20px 0;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* === PÁGINA DE INICIO === */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
    border-radius: 16px;
    padding: 40px 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #fbb200;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.5rem;
    color: #000000;
}

.hero-section p {
    font-size: 1.2rem;
    color: #333333;
}

/* === LIST GROUP (panel admin) === */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: #fff5d6;
    color: #000000;
}

/* === TÍTULOS === */
h2 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 3px solid #fbb200;
    padding-bottom: 10px;
    display: inline-block;
}