/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --primary:         #1D3781;
    --primary-dark:    #162c6a;
    --secondary:       #D29E4A;
    --secondary-dark:  #b5892d;
    --light-bg:        #f8f9fc;
    --gray-100:        #f8f9fa;
    --gray-200:        #e2e8f0;
    --text:            #1f2937;
    --text-light:      #4b5563;
    --card-shadow:     0 6px 20px rgba(0,0,0,0.09);
    --transition:      all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --gold-glow:       0 0 18px rgba(210,158,74,0.45);
}

/* BASE */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--light-bg);
    color: var(--text);
    line-height: 1.68;
    min-height: 100vh;
}

/* ==========================================================================
   NAVBAR (Ajustado al PHP)
   ========================================================================== */
.navbar {
    background: white !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    padding: 1rem 0;
    border-bottom: 3px solid var(--secondary);
}

.navbar-brand img {
    transition: transform 0.45s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary) !important;
    background: rgba(210,158,74,0.08);
    border-radius: 5px;
}

/* ==========================================================================
   HEADER / JUMBOTRON
   ========================================================================== */
.jumbotron.bck-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 65%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 0 0 25px 25px;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(29,55,129,0.2);
}

/* Efecto de brillo dorado animado */
.jumbotron.bck-image::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(210,158,74,0.15) 0%, transparent 50%);
    animation: goldPulse 10s infinite alternate;
}

@keyframes goldPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* ==========================================================================
   CONTENIDO Y SECCIONES
   ========================================================================== */
.encabezado {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    border-left: 5px solid var(--secondary);
}

.encabezado h4 {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.encabezado p strong {
    color: var(--primary-dark);
}

.separador {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    margin: 3rem 0;
    position: relative;
}

/* Estilo para las listas de definiciones */
ul li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* ==========================================================================
   FORMULARIO
   ========================================================================== */
form.container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-200);
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(210,158,74,0.15);
}

/* Selects personalizados */
select.form-control {
    cursor: pointer;
    background-color: #fdfdfd;
}

/* Botón de envío */
.btn-primary {
    background: var(--primary) !important;
    border: 2px solid var(--secondary) !important;
    border-radius: 50px !important;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition) !important;
    box-shadow: 0 5px 15px rgba(29,55,129,0.3);
}

.btn-primary:hover {
    background: var(--secondary) !important;
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: var(--gold-glow);
}

/* Input de archivo */
input[type="file"] {
    background: var(--gray-100);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    form.container {
        padding: 1.5rem;
    }
    
    .jumbotron.bck-image {
        padding: 2.5rem 1rem;
    }

    .btn-primary {
        width: 100%;
    }
}

/* Pequeño ajuste para el texto de ayuda al final */
small a {
    color: var(--secondary-dark);
    font-weight: 700;
}
        /* Tamaño del logo ajustado (Punto medio) */
        .logo-header { 
            max-width: 320px; 
            width: 100%;
            height: auto; 
            transition: transform 0.3s ease;
        }
        
        /* Integración de Dorado en la estructura */
        .header-main {
            background: white;
            border-bottom: 5px solid var(--secondary); /* Línea dorada superior */
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .card-form { 
            border-radius: 15px; 
            border: none;
            border-top: 5px solid var(--secondary); /* Tope dorado en cada tarjeta */
            box-shadow: var(--card-shadow);
            background: white;
            margin-bottom: 30px;
        }

        /* Corrección de Selects (Sin cortes) */
        .custom-select {
            height: calc(2.8rem + 2px) !important; /* Altura aumentada para evitar cortes */
            padding: 0.5rem 1rem !important;
            border: 1px solid var(--gray-200);
            border-radius: 8px;
        }

        .section-title { 
            color: var(--primary) !important;
            font-weight: 800;
            display: flex;
            align-items: center;
        }

        .section-title i {
            color: var(--secondary); /* Iconos dorados */
            margin-right: 15px;
        }

        /* Separador dorado degradado */
        .separador-gold {
            height: 3px;
            background: linear-gradient(90deg, var(--secondary) 0%, rgba(210,158,74,0.2) 100%);
            border: none;
            margin: 2rem 0;
        }

        .text-brand-gold { color: var(--secondary) !important; }
        .text-brand-blue { color: var(--primary) !important; }

        /* Botón con énfasis dorado */
        .btn-enviar {
            background: var(--primary) !important;
            border: 2px solid var(--secondary) !important;
            color: white !important;
            border-radius: 50px;
            padding: 12px 40px;
            font-weight: 700;
            text-transform: uppercase;
            transition: all 0.3s ease;
        }

        .btn-enviar:hover {
            background: var(--secondary) !important;
            color: var(--primary) !important;
            transform: translateY(-2px);
            box-shadow: var(--gold-glow);
        }
