/* ==============================================
   ESTILOS PARA LA NUEVA LANDING OPTIMIZADA
   ============================================== */

/* Variables CSS para consistencia */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #2C3E50;
    --accent-color: #E74C3C;
    --success-color: #27AE60;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

/* 1. NAVEGACIÓN */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 2. HERO SECTION */
.hero-section {
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-brand {
    position: relative;
    z-index: 2;
}

.logo-cancionealo-responsive {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-cancionealo-responsive:hover {
    transform: translateY(-5px);
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.hero-cta-container {
    position: relative;
    z-index: 2;
}

.btn-hero-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.4);
    color: white;
}

/* 3. EJEMPLO SECTION */
.example-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.example-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.example-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.audio-player-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 20px;
}

.audio-player {
    width: 100%;
    height: 60px;
    border-radius: var(--border-radius);
}

.example-note {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* 4. OFERTA SECTION */
.offer-section {
    padding: 80px 0;
    background: white;
}

.offer-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 40px;
}

.offer-table {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.offer-row {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.offer-row:last-child {
    border-bottom: none;
}

.offer-row.highlight {
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
    border-left: 4px solid var(--primary-color);
}

.offer-position {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 120px;
}

.offer-description {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.offer-gift {
    font-size: 1rem;
    color: var(--success-color);
    font-weight: 600;
    background: rgba(39, 174, 96, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

/* 5. COMO FUNCIONA SECTION */
.how-it-works-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.how-it-works-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 60px;
}

.step-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.step-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 6. TESTIMONIOS SECTION */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 60px;
}

.testimonial-card {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.testimonial-context {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 7. FORMULARIO SECTION */
.form-section {
    padding: 80px 0;
    background: var(--background-gradient);
}

.form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-medium);
}

.form-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.form-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.btn-submit {
    background: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    width: 100%;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* 8. CTA FINAL SECTION */
.final-cta-section {
    padding: 60px 0;
    background: var(--text-dark);
    text-align: center;
}

.final-cta-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.btn-final-cta {
    background: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-final-cta:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.4);
    color: white;
}

/* 9. FOOTER */
.footer {
    background: #1a1a1a;
    padding: 40px 0;
    color: white;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-legal {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn-hero-primary {
        font-size: 1.1rem;
        padding: 12px 30px;
    }
    
    .offer-row {
        flex-direction: column;
        text-align: center;
    }
    
    .offer-position {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .step-card {
        margin-bottom: 30px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    section h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .offer-table {
        margin: 0 -15px;
    }
    
    .audio-player-container {
        padding: 20px;
    }
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* SCROLL SUAVE */
html {
    scroll-behavior: smooth;
}

/* FOCUS STATES MEJORADOS */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* MEJORAS ADICIONALES DE UX */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mejora para el reproductor de audio */
.audio-player {
    border: 2px solid #eee;
}

.audio-player:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Estados de loading */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Efectos de hover adicionales */
.offer-row:hover {
    background: rgba(255, 107, 53, 0.05);
    transition: background 0.3s ease;
}

.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
