/* ==========================================================================
   Variables y Configuración Base
   ========================================================================== */
:root {
    /* Paleta de Colores Premium */
    --color-emerald: #0b4f30; /* Verde Esmeralda Profundo */
    --color-emerald-light: #15804e;
    --color-cream: #fdfbf7; /* Fondo Crema Cálido */
    --color-crimson: #8b1c31; /* Carmesí Institucional */
    --color-gold: #c5a059; /* Dorado Satín */
    --color-text-main: #2c3e50;
    --color-text-light: #596a7a;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    
    /* Sombras y Transiciones */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-hover: 0 22px 30px -5px rgba(11, 79, 48, 0.15); /* Sombra con acento verde */
    
    --transition-elastic: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bg-cream {
    background-color: var(--color-cream);
}

/* ==========================================================================
   Tipografía y Botones
   ========================================================================== */
h1, h2, h3 {
    line-height: 1.2;
    color: var(--color-emerald);
}

.highlight {
    color: var(--color-gold);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-emerald);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-emerald-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Header Móvil Estricto
   ========================================================================== */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-placeholder {
    font-weight: 700;
    color: var(--color-emerald);
    border: 2px dashed var(--color-emerald-light);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.menu-btn, .icon-btn {
    background: none;
    border: none;
    color: var(--color-emerald);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: var(--transition-smooth);
}

.menu-btn:hover, .icon-btn:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--color-white), var(--color-cream));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(197, 160, 89, 0.15);
    color: var(--color-gold);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Sección de Beneficios (Grid Elástico y Microinteracciones)
   ========================================================================== */
.benefits {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    /* 1 columna móvil, 3 columnas escritorio */
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-elastic);
    position: relative;
    z-index: 1;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-emerald-light);
    z-index: 2;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.gold-icon {
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--color-gold);
}

.green-icon {
    background-color: rgba(11, 79, 48, 0.1);
    color: var(--color-emerald);
}

.crimson-icon {
    background-color: rgba(139, 28, 49, 0.1);
    color: var(--color-crimson);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.benefit-card p {
    color: var(--color-text-light);
}

/* ==========================================================================
   Para Quién Es
   ========================================================================== */
.target-audience {
    padding: 100px 0;
    text-align: center;
}

.target-content {
    max-width: 800px;
    margin: 0 auto;
}

.target-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.target-content p {
    font-size: 1.15rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Formulario y Custom Dropdown
   ========================================================================== */
.registration-section {
    padding: 100px 0;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--color-emerald);
}

.form-wrapper h2 {
    text-align: center;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input:not([type="hidden"]) {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-emerald);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(11, 79, 48, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    font-size: 1rem;
    color: var(--color-text-light);
}

.dropdown-selected:hover {
    border-color: var(--color-emerald-light);
}

.dropdown-selected.active {
    border-color: var(--color-emerald);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--color-white);
}

.dropdown-selected.has-value {
    color: var(--color-text-main);
    font-weight: 500;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border: 1px solid var(--color-emerald);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    display: none;
}

.dropdown-options.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: var(--color-cream);
    color: var(--color-emerald);
}

/* Campo oculto pero validable */
.hidden-input {
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 1px;
    width: 1px;
    z-index: -1;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
    position: relative;
}

.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    position: absolute;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.status-error {
    color: var(--color-crimson);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-text-main);
    color: var(--color-white);
    text-align: center;
    padding: 40px 0;
}

/* ==========================================================================
   Modal de Éxito
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Desenfoque avanzado solicitado */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: var(--transition-elastic);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(11, 79, 48, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    background-color: #25D366; /* Verde oficial WhatsApp */
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-bottom: 16px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 10px;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
}
