/* ==============================================
   ESTILOS PROFESIONALES - PALETA ORIGINAL CANCIONEALO
   ============================================== */

/* Variables CSS basadas en la paleta original */
:root {
    --primary-color: #3e0474; /* Morado oscuro */
    --secondary-color: #6a0dad; /* Morado */
    --accent-color: #ff4b8a; /* Rosa */
    --text-color: #ffffff; /* Texto claro */
    --dark-bg: #1e0033; /* Fondo oscuro */
    --card-bg: #380670; /* Fondo de tarjetas */
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --gradient-primary: linear-gradient(135deg, #3e0474, #6a0dad);
    --gradient-accent: linear-gradient(135deg, #ff6a3d, #ff4b8a);
    --gradient-hero: linear-gradient(45deg, var(--dark-bg), var(--primary-color));
}

/* Estilos globales */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    background-image: var(--gradient-hero);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* 1. NAVEGACIÓN */
.navbar {
    background-color: var(--primary-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    padding: 0.25rem 1.25rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-color) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    transition: all 0.18s ease;
    margin: 0 8px;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #ff8642);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* 2. HERO SECTION */
.hero-section {
    background: transparent;
    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-image: 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.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.hero-brand {
    position: relative;
    z-index: 2;
}

.logo-cancionealo-responsive {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
    max-width: 400px;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #ffd966);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.hero-cta-container {
    position: relative;
    z-index: 2;
    margin: 2rem 0;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #ff6a3d, #ff4b8a);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 75, 138, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 75, 138, 0.6);
    color: white;
}

/* 3. EJEMPLO SECTION */
.example-section {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}

.example-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0.7;
    z-index: -1;
}

.example-header h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.example-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.audio-player-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-player {
    width: 100%;
    height: 60px;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.2);
}

.example-note {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* 4. OFERTA SECTION */
.offer-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e0033 0%, #3e0474 100%);
    position: relative;
}

.offer-header h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 40px;
}

.offer-table {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-row {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-row:last-child {
    border-bottom: none;
}

.offer-row.highlight {
    background: rgba(255, 75, 138, 0.15);
    border-left: 4px solid var(--accent-color);
}

.offer-position {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 20px;
    min-width: 120px;
}

.offer-description {
    flex: 1;
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
}

.offer-gift {
    font-size: 1rem;
    color: #ffd966;
    font-weight: 600;
    background: rgba(255, 217, 102, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

/* 5. COMO FUNCIONA SECTION */
.how-it-works-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #3e0474 0%, #1e0033 100%);
    position: relative;
}

.how-it-works-header h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 60px;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    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;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.step-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.step-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-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: linear-gradient(135deg, #1e0033 0%, #3e0474 100%);
}

.testimonials-header h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 60px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1rem;
}

.testimonial-context {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 7. CTA FINAL SECTION */
.final-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #6a0dad 0%, #3e0474 100%);
    text-align: center;
}

.final-cta-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-final-cta {
    background: linear-gradient(135deg, #ff6a3d, #ff4b8a);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 75, 138, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-final-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 75, 138, 0.6);
    color: white;
}

/* 8. FORMULARIO SECTION */
.form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #3e0474 0%, #1e0033 100%);
    position: relative;
}

.form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 75, 138, 0.2);
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, #ff6a3d, #ff4b8a);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(255, 75, 138, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ff4b8a, #ff6a3d);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 75, 138, 0.5);
}

/* 9. FOOTER */
.footer {
    background: #1a1a1a;
    padding: 40px 0;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.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(--accent-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,
    .btn-final-cta {
        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;
    }
}

@media (max-width: 576px) {
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .audio-player-container {
        padding: 20px;
    }
    
    .testimonial-card {
        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;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-hero-primary, .btn-final-cta, .btn-submit {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Mejoras Técnicas */
.audio-player::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.7);
}

.audio-player::-webkit-media-controls-play-button,
.audio-player::-webkit-media-controls-volume-slider {
    filter: invert(0.7);
}

.audio-player::-webkit-media-controls-current-time-display,
.audio-player::-webkit-media-controls-time-remaining-display {
    color: #ffffff;
}

::placeholder {
    color: rgba(255, 255, 255, 0.5);
}