/* ========================================
   VARIABLES - DARK THEME ELEGANTE MARRÓN
   ======================================== */
:root {
    /* Paleta de colores marrones del logo */
    --brown-dark: #3D2817;
    --brown-primary: #6B3E2E;
    --brown-medium: #8B5A3C;
    --brown-light: #A67B5B;
    
    /* Dorados elegantes */
    --gold-primary: #C9A961;
    --gold-light: #D4B87A;
    --gold-dark: #B8954B;
    
    /* Beiges y cremas */
    --cream-light: #F5F0E8;
    --cream-medium: #E8DFD0;
    
    /* Oscuros para dark theme */
    --dark-bg: #1A1410;
    --dark-card: #2A1F1A;
    --dark-section: #251C16;
    
    /* Textos */
    --text-light: #F5F0E8;
    --text-muted: #B8A898;
    
    /* WhatsApp */
    --whatsapp-green: #25d366;
    --whatsapp-dark: #128C7E;
    
    /* Sombras */
    --shadow-elegant: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 4px 20px rgba(201, 169, 97, 0.3);
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
}

/* ========================================
   NAVBAR CON LOGO Y TEXTO
   ======================================== */
.navbar-dark-elegant {
    background: rgba(26, 20, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover .logo-img {
    transform: scale(1.05);
}

.brand-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream-light);
    white-space: nowrap;
}

.text-gold {
    color: var(--gold-primary);
}

/* HAMBURGER MENU - COLOR DORADO/VISIBLE */
.custom-toggler {
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.custom-toggler:hover {
    background: rgba(201, 169, 97, 0.1);
}

.custom-toggler:focus {
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.3);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201, 169, 97, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.navbar-dark-elegant .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-dark-elegant .nav-link:hover {
    color: var(--gold-primary) !important;
}

.btn-gold-outline {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-gold-outline:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* ========================================
   HERO DARK ELEGANTE
   ======================================== */
.hero-dark-elegant {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--brown-dark) 50%, var(--brown-primary) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(107, 62, 46, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 169, 97, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(201, 169, 97, 0.03) 35px, rgba(201, 169, 97, 0.03) 70px);
    z-index: 1;
}

.hero-dark-elegant .z-2 {
    z-index: 2;
}

.badge-elegant {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--dark-bg);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-gold);
    margin-bottom: 1.5rem;
    animation: badgeGlow 3s infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(201, 169, 97, 0.6); }
}

.hero-title {
    color: var(--cream-light);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-block;
}

.verse-highlight {
    color: var(--cream-light);
    background: rgba(201, 169, 97, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold-primary);
}

.verse-reference {
    color: var(--text-muted);
    font-style: italic;
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-safe {
    color: var(--gold-light);
    font-weight: 700;
    background: rgba(201, 169, 97, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(201, 169, 97, 0.4);
}

/* BOTONES */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    color: var(--dark-bg);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-gold);
    white-space: nowrap;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.5);
    color: var(--dark-bg);
}

.btn-whatsapp-elegant {
    background: var(--whatsapp-green);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    white-space: nowrap;
}

.btn-whatsapp-elegant:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-values {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.value-item i {
    font-size: 1.2rem;
    color: var(--gold-primary);
}

/* ========================================
   SECCIONES DARK
   ======================================== */
.section-dark {
    background: var(--dark-section);
}

.section-darker {
    background: var(--dark-bg);
}

.section-tag-elegant {
    display: inline-block;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.section-title-elegant {
    color: var(--cream-light);
}

.text-light-muted {
    color: var(--text-muted);
}

/* ========================================
   IMÁGENES ELEGANTES
   ======================================== */
.image-container-elegant {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    border: 2px solid rgba(201, 169, 97, 0.2);
}

.image-container-elegant img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-container-elegant:hover img {
    transform: scale(1.05);
}

.image-badge-elegant {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--dark-bg);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-gold);
}

/* ========================================
   LISTAS ELEGANTES
   ======================================== */
.feature-list-elegant {
    list-style: none;
    padding: 0;
}

/* ========================================
   BOTONES
   ======================================== */
.btn-rounded {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-gold-outline {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
}

.btn-gold-outline:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* ========================================
   TARJETAS DE SEGURIDAD
   ======================================== */
.safe-card-elegant {
    border-radius: 20px;
    background: var(--dark-card);
    transition: all 0.4s ease;
    border: 1px solid rgba(201, 169, 97, 0.15);
}

.safe-card-elegant:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 97, 0.4);
    box-shadow: var(--shadow-gold);
}

.safe-icon-wrapper-elegant {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.25));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(201, 169, 97, 0.3);
}

.safe-icon-wrapper-elegant i {
    font-size: 2.5rem;
    color: var(--gold-primary);
}

/* ========================================
   TARJETAS DE NIVELES
   ======================================== */
.level-card-elegant {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: var(--dark-card);
    border: 1px solid rgba(201, 169, 97, 0.15);
}

.level-card-elegant:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 97, 0.4);
    box-shadow: var(--shadow-gold);
}

.level-header-elegant {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bg-preescolar {
    background: linear-gradient(135deg, var(--brown-light), var(--brown-medium));
}

.bg-primaria {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
}

.bg-secundaria {
    background: linear-gradient(135deg, var(--brown-medium), var(--brown-primary));
}

.level-icon {
    font-size: 4rem;
    color: var(--cream-light);
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.level-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link-gold {
    color: var(--gold-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-link-gold:hover {
    gap: 0.8rem;
    color: var(--gold-light);
}

/* ========================================
   FORMULARIO ELEGANTE - MEJORADO
   ======================================== */
.contact-card-elegant {
    border-radius: 24px;
    background: var(--dark-card);
    overflow: hidden;
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.card-header-elegant {
    background: linear-gradient(135deg, var(--brown-primary), var(--brown-dark));
    color: var(--cream-light);
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 2px solid rgba(201, 169, 97, 0.3);
}

.card-header-elegant h3 {
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
}

.card-header-elegant p {
    opacity: 0.9;
    margin: 0;
    font-size: 0.95rem;
}

.school-form-elegant {
    max-width: 100%;
}

.school-form-elegant .form-label {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* MEJORA DE CONTROLES DE FORMULARIO */
.form-control-elegant,
.form-select-elegant {
    background: rgba(245, 240, 232, 0.08);
    border: 2px solid rgba(201, 169, 97, 0.3);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text-light);
    width: 100%;
    height: auto;
    line-height: 1.5;
    display: block;
}

.form-control-elegant:focus,
.form-select-elegant:focus {
    background: rgba(245, 240, 232, 0.12);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.2);
    outline: none;
    color: var(--text-light);
}

.form-control-elegant::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* MEJORA ESPECÍFICA DEL DROPDOWN/SELECT */
.form-select-elegant {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23C9A961' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.form-select-elegant option {
    background: var(--dark-card);
    color: var(--text-light);
    padding: 0.75rem;
    font-size: 0.95rem;
}

.form-select-elegant option:checked {
    background: var(--gold-primary);
    color: var(--dark-bg);
}

/* MEJORA DE ESPACIADO DEL FORMULARIO */
.school-form-elegant .mb-4 {
    margin-bottom: 1.5rem !important;
}

.school-form-elegant .row {
    margin: 0 -0.75rem;
}

.school-form-elegant .col-md-6 {
    padding: 0 0.75rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer-dark-elegant {
    background: var(--dark-bg);
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

/* ========================================
   BOTÓN WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float-elegant {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
    border: 3px solid var(--dark-bg);
}

@keyframes whatsappPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
}

.whatsapp-float-elegant:hover {
    transform: scale(1.15) rotate(10deg);
    background: var(--whatsapp-dark);
    color: #fff;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* ========================================
   UTILIDADES
   ======================================== */
.text-gold { color: var(--gold-primary) !important; }
.text-brown { color: var(--brown-primary) !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

.min-vh-100 { min-height: 100vh; }
.z-2 { z-index: 2; }

.img-fluid { max-width: 100%; height: auto; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .display-6 {
        font-size: 1.6rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-gold,
    .btn-whatsapp-elegant {
        width: 100%;
        justify-content: center;
    }
    
    .whatsapp-float-elegant {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .contact-card-elegant .card-body {
        padding: 1.5rem !important;
    }
    
    .hero-values {
        flex-direction: column;
        gap: 1rem;
    }
    
    .value-item {
        justify-content: center;
    }
    
    .card-header-elegant {
        padding: 1.25rem 1.5rem;
    }
    
    .card-header-elegant h3 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .navbar-dark-elegant .navbar-brand {
        margin-right: 0;
    }
    
    /* Mejor espaciado en móvil para el formulario */
    .school-form-elegant .col-md-6 {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .school-form-elegant .row {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .display-3 {
        font-size: 1.6rem;
    }
    
    .display-6 {
        font-size: 1.4rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .badge-elegant {
        font-size: 0.7rem;
        padding: 0.4rem 0.9rem;
    }
    
    .hero-lead {
        font-size: 0.9rem;
    }
    
    .btn-gold,
    .btn-whatsapp-elegant {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .navbar-dark-elegant {
        padding: 0.4rem 0;
    }
    
    /* Ajustes del formulario en móvil */
    .form-control-elegant,
    .form-select-elegant {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   ANIMACIONES DE ENTRADA
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title,
.hero-lead,
.badge-elegant,
.hero-cta,
.hero-values {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-lead { animation-delay: 0.2s; opacity: 0; }
.badge-elegant { animation-delay: 0s; opacity: 0; }
.hero-cta { animation-delay: 0.4s; opacity: 0; }
.hero-values { animation-delay: 0.6s; opacity: 0; }