/* ==========================================================================
   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 */
* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--light-bg);
    color: var(--text);
    line-height: 1.68;
    padding-top: 88px;               /* más espacio por navbar más alto */
    min-height: 100vh;
}

.main-container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   NAVBAR – logos más grandes y mejor espaciado
   ========================================================================== */
.navbar {
    background: white !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    padding: 1.1rem 0;
}

.navbar .main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-main {
    height: 68px;
    max-width: 240px;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.logo-main:hover { transform: scale(1.06); }

.logo-secondary {
    height: 64px;
    max-width: 260px;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.logo-secondary:hover { transform: scale(1.06); }

.navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1.09rem;
    padding: 0.7rem 1.5rem !important;
    margin: 0 0.45rem;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--secondary) !important;
    background: rgba(210,158,74,0.09);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER – más imponente + dorado elegante
   ========================================================================== */
.main-header {
    background: linear-gradient(135deg, 
                var(--primary) 0%, 
                var(--primary-dark) 65%, 
                rgba(29,55,129,0.92) 100%);
    color: white;
    padding: 6.8rem 1.5rem 5.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 0 0 24px 24px;
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, 
                rgba(210,158,74,0.18) 0%, transparent 60%);
    opacity: 0.7;
    pointer-events: none;
    animation: goldPulse 12s ease-in-out infinite;
}

.main-header h1 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    letter-spacing: -1px;
}

.main-header .lead {
    font-size: 1.48rem;
    font-weight: 400;
    max-width: 820px;
    margin: 0 auto;
    opacity: 0.96;
}

@keyframes goldPulse {
    0%,100%   { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.15); opacity: 0.85; }
}

/* ==========================================================================
   ENCUESTA
   ========================================================================== */
.survey-container {
    background: white;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    padding: 2.8rem 2.2rem 3.4rem;
    border: 1px solid rgba(210,158,74,0.10);
}

.encabezado h4 {
    color: var(--primary);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.separador {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.3rem 2rem;
    border-radius: 12px;
    margin: 3.5rem 0 2.4rem;
    font-size: 1.55rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(29,55,129,0.28);
    position: relative;
}

.separador::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 100%; height: 6px;
    background: var(--secondary);
    border-radius: 0 0 6px 6px;
}

/* Preguntas */
.question-item {
    background: #fdfefe;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.question-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 12px 36px rgba(210,158,74,0.20);
    transform: translateY(-5px);
}

.question-item.invalid {
    border-color: #dc3545 !important;
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(220,53,69,0.18);
}

/* Select y radio */
.form-control, .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--secondary) !important;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.3rem rgba(210,158,74,0.25);
}

/* Botón */
.btn-primary {
    background: var(--primary);
    border: 2px solid var(--secondary);
    color: white;
    font-size: 1.32rem;
    font-weight: 700;
    padding: 1.1rem 4.2rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(29,55,129,0.38), var(--gold-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 16px 40px rgba(210,158,74,0.48);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .main-header { padding: 5.5rem 1.5rem 4.5rem; }
    .main-header h1 { font-size: 2.9rem; }
}

@media (max-width: 768px) {
    .main-header { 
        padding: 4.5rem 1rem 3.8rem; 
        margin-bottom: 2.2rem;
    }
    .main-header h1 { font-size: 2.4rem; }
    .main-header .lead { font-size: 1.24rem; }
    
    .survey-container { padding: 2rem 1.4rem 2.8rem; }
    .question-item   { padding: 1.6rem; }
    .btn-primary     { 
        padding: 1rem 3rem; 
        font-size: 1.22rem; 
        width: 100%; 
        max-width: 420px;
    }
}
/* ==========================================================================
   HEADER - Versión mejorada con más dorado
   ========================================================================== */
.main-header {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 60%,
        rgba(29, 55, 129, 0.92) 100%);
    color: white;
    padding: 6.5rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.28);
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, 
        rgba(210,158,74,0.22) 0%, 
        transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--secondary);
}

.header-content {
    position: relative;
    z-index: 2;
}

.main-header h1 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.main-header .lead {
    font-size: 1.45rem;
    font-weight: 400;
    max-width: 820px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Decoración dorada sutil */
.header-decoration {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 4px;
    background: var(--secondary);
    border-radius: 4px;
    opacity: 0.85;

}

/* Responsive header */
@media (max-width: 992px) {
    .main-header {
        padding: 5.5rem 1.5rem 4.5rem;
    }
    .main-header h1 {
        font-size: 2.9rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 4.8rem 1rem 4rem;
    }
    .main-header h1 {
        font-size: 2.4rem;
    }
    .main-header .lead {
        font-size: 1.22rem;
    }
}

