:root {
    --primary-color: #3e0474;
    --secondary-color: #6a0dad;
    --accent-color: #ff4b8a;
    --text-color: #ffffff;
    --dark-bg: #1e0033;
    --card-bg: #380670;
    --header-vertical-padding: 0.25rem; /* reduced header padding to make header shorter */
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    background-image: linear-gradient(45deg, var(--dark-bg), var(--primary-color));
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Transiciones suaves para elementos interactivos */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

*:focus {
    outline: none;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Mejora visibilidad del icono hamburguesa en mobile */
.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(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ff4b8a;
}

.navbar {
    background-color: var(--primary-color);
    /* Use shared header padding so height matches across pages */
    padding: var(--header-vertical-padding) 1.25rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 66px; /* Increased to 66px to match privacy header */
}

/* Mobile: increase header logo size by 30% */
@media (max-width: 600px) {
    .logo {
        height: 61.776px; /* reduced additional 10% from 68.64px => 61.776px */
        width: auto;
        max-height: 100px; /* safety cap so it doesn't overflow */
    }
    /* Also increase logo inside .navbar-brand if used */
    .navbar-brand .logo {
        height: 61.776px;
        width: auto;
        max-height: 100px;
    }
}

.navbar-nav .nav-link {
    /* Ensure high contrast on dark header */
    color: rgba(255,255,255,0.95) !important;
    margin: 0 8px;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.18s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fff;
    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%;
}

.hero-section {
    /* Further reduce top/bottom spacing so content sits closer to header */
    padding: 1.25rem 0 1.25rem;
    background-color: transparent;
    position: relative;
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

@media (max-width: 600px) {
    .example-card-header {
        padding: 16px 14px 14px 14px;
        border-radius: 14px 14px 0 0;
        background: linear-gradient(90deg, #7b4bb7 0%, #8e5ec3 100%);
        box-shadow: 0 2px 8px 0 rgba(80,40,120,0.13);
        display: flex;
        align-items: center;
        min-height: 64px;
    }
    .example-card-header .title-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        width: 100%;
    }
    .example-card-header .example-icon {
        font-size: 1.7rem;
        width: 2.7rem;
        height: 2.7rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.18);
        border-radius: 50%;
        margin-right: 0;
        flex-shrink: 0;
        box-shadow: 0 1px 4px 0 rgba(80,40,120,0.10);
    }
    .header-title-wrap {
        display: flex;
        align-items: center;
        min-width: 0;
        height: 2.7rem;
    }
    .example-card-header .example-title {
        font-size: 2.1rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: -0.5px;
        line-height: 1.05;
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 992px) {
    .hero-section .container {
        max-width: 90%;
        width: 90%;
    }
    
    .hero-section h1 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .hero-text {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 991px) {
    .hero-section .col-lg-6:first-child {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-section .hero-tag {
        margin-left: auto;
        margin-right: auto;
    }

    /* Marca grande visible en primer plano */
    .hero-section .hero-brand {
        display: block;
        text-align: center;
        font-size: 2.4rem;
        font-weight: 900;
        color: #ffd966;
        letter-spacing: 0.6px;
        margin-bottom: 0.35rem;
        text-shadow: 0 10px 30px rgba(255, 106, 61, 0.12);
        line-height: 1;
    }
    
    @media (max-width: 991px) {
        .hero-section .hero-brand {
            font-size: 1.5rem;
            font-weight: 800;
        }
    }
    
    .hero-section .hero-text {
        margin-left: auto;
        margin-right: auto;
        transform: scale(1.18) translateY(-3px);
        box-shadow: 0 15px 30px rgba(255, 106, 61, 0.6);
        color: white;
    }
}

.social-proof {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.availability-counter {
    background-color: rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 10px;
    font-weight: 500;
}

.counter-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff4b8a;
}

.counter-total {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-left: 3px;
}

.privacy-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.privacy-note a {
    text-decoration: underline;
    opacity: 0.9;
}

.feature-section {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.15);
    position: relative;
}

.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiLz48L3N2Zz4=');
    opacity: 0.5;
    z-index: 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(74, 13, 143, 0.95), rgba(56, 6, 112, 0.95));
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Estilos para títulos de sección */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para tarjetas de características */
.card-title {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.card-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.card-number {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.15;
    color: var(--accent-color);
}

.examples-section {
    padding: 3rem 0;
    background-color: var(--primary-color);
}

.example-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

/* Ensure audio controls inside example cards don't overflow and share a consistent width */
.example-card audio {
    display: block;
    width: 100%;
    max-width: 360px; /* matches visual width used in other cards */
    margin: 10px auto 0 auto;
    box-sizing: border-box;
}

.play-button {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: #fff;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255,75,138,0.18);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-right: 0.5rem;
    position: relative;
}
.play-button:active {
    transform: scale(0.9) translateY(2px);
    box-shadow: 0 2px 8px rgba(255,75,138,0.4);
    transition-duration: 0.1s;
}
.play-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,75,138,0.3), 0 4px 16px rgba(255,75,138,0.18);
}


/* Animación sutil de pulso para el botón de play */
@keyframes playPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,75,138,0.25), 0 4px 16px rgba(255,75,138,0.18); }
    70% { box-shadow: 0 0 0 12px rgba(255,75,138,0.0), 0 4px 16px rgba(255,75,138,0.18); }
    100% { box-shadow: 0 0 0 0 rgba(255,75,138,0.0), 0 4px 16px rgba(255,75,138,0.18); }
}
.play-button-lg {
    animation: playPulse 1.8s infinite;
    width: 60px;
    height: 60px;
}

.countdown-section {
    background-color: var(--card-bg);
    background-image: linear-gradient(135deg, rgba(107, 65, 185, 0.3), rgba(149, 68, 255, 0.2));
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    width: 95%;
    max-width: 800px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Espaciado adicional en mobile */
@media (max-width: 767px) {
    .countdown-section {
        margin: 3rem auto 2rem auto;
        padding: 1.5rem;
    }
    
    /* Ajustar espaciado de la nueva caja para que sea consistente con los pasos */
    .next-step-highlight {
        margin: 0 !important;
    }
}

/* Asegurar centrado en desktop */
@media (min-width: 768px) {
    .countdown-section {
        width: 90%;
        margin: 3rem auto;
    }
}

@media (min-width: 992px) {
    .countdown-section {
        width: 85%;
        margin: 2rem auto;
        padding: 2.5rem;
    }
}

.countdown {
    display: flex;
    justify-content: center;
    margin: 1.8rem 0;
}

.countdown-item {
    background-color: rgba(30, 15, 60, 0.8);
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
    margin: 0 0.8rem;
    width: 80px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.countdown-item .h2 {
    font-weight: 700;
    color: white;
    font-size: 1.8rem;
}

@media (min-width: 992px) {
    .countdown-item .h2 {
        font-size: 2.2rem;
    }
}

.countdown-item small {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.urgency-badge {
    background-color: #ff4b8a;
    color: white;
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(255, 75, 138, 0.4);
    animation: pulse 2s infinite;
}

.availability-indicator {
    max-width: 350px;
    margin: 0 auto;
}

.availability-progress {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.availability-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b5d, #ff4b8a);
    border-radius: 5px;
}

.availability-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.social-proof-signup {
    color: rgba(255, 255, 255, 0.8);
}

.user-avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #6e4ed4;
    border: 2px solid rgba(255, 255, 255, 0.9);
    margin-left: -8px;
    position: relative;
}

.avatar:nth-child(1) {
    background-image: url('/prelanzamiento/images/44.jpg');
    background-size: cover;
    margin-left: 0;
    z-index: 4;
}

.avatar:nth-child(2) {
    background-image: url('/prelanzamiento/images/32.jpg');
    background-size: cover;
    z-index: 3;
}

.avatar:nth-child(3) {
    background-image: url('/prelanzamiento/images/68.jpg');
    background-size: cover;
    z-index: 2;
}

.avatar:nth-child(4) {
    background-image: url('/prelanzamiento/images/75.jpg');
    background-size: cover;
    z-index: 1;
}

.signup-form {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 0.8rem;
    margin: 2rem auto;
    width: 95%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 
                0 10px 30px rgba(93, 52, 168, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

@media (min-width: 992px) {
    .countdown-section, .signup-form {
        width: 70%;
    }
    .signup-form {
        padding: 2.8rem;
    }

}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    padding: 0.85rem 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 0 0 3px rgba(138, 80, 246, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 3rem;
}

.input-with-icon i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.input-with-icon .form-control:focus + i {
    color: rgba(255, 255, 255, 0.7);
}

textarea.form-control {
    border-radius: 16px;
    resize: none;
    min-height: 120px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-check {
    padding-left: 1.8rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    margin-left: -1.8rem;
}

/* Estilos globales para btn-action */
.btn-action {
    background: linear-gradient(135deg, #ff6a3d, #ff4b8a);
    color: white !important;
    font-weight: 600;
    border: none !important;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(255, 75, 138, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-action:hover, .btn-action:focus {
    background: linear-gradient(135deg, #ff7a4d, #ff5b9a);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 75, 138, 0.5);
    opacity: 1;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Fix for disabled buttons */
.btn[disabled], .btn[aria-disabled="true"] {
    opacity: 0.65;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Botón flotante de volver arriba (solo móvil) */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e4ed4, #9b6dff);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #5a3fb8, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Solo mostrar en móvil */
@media (min-width: 992px) {
    .back-to-top-btn {
        display: none !important;
    }
}

.form-check-input:checked {
    background-color: #6e4ed4;
    border-color: #6e4ed4;
}

.form-check-input:focus {
    border-color: #6e4ed4;
    box-shadow: 0 0 0 0.2rem rgba(110, 78, 212, 0.25);
}

.form-check-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

footer {
    background-color: var(--primary-color);
    padding: 1.5rem 0;
}

/* Estilos para el demo interactivo de la app */
.demo-app {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Mobile simplified steps */
.mobile-steps-container {
    display: none;
    padding: 0 10px;
}

@media (max-width: 991px) {
    .mobile-steps-container {
        display: block;
    }
    
    .demo-app {
        display: none;
    }
}


.mobile-step {
    background-color: rgba(45, 20, 80, 0.7);
    background-image: linear-gradient(135deg, rgba(45, 20, 80, 0.7), rgba(70, 40, 120, 0.7));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(170, 120, 255, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mobile-step:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6e4ed4, #9b6dff, #6e4ed4);
}

.mobile-step:hover {
    transform: translateY(-5px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 78, 212, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(110, 78, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 78, 212, 0);
    }
}

.mobile-step-number {
    background-color: #6e4ed4;
    background-image: linear-gradient(135deg, #6e4ed4, #9b6dff);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.mobile-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.mobile-step-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-step-icon {
    background-color: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-window {
    background-color: #1a0d3a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
                0 0 40px rgba(128, 0, 255, 0.35);
    border: 1px solid rgba(170, 120, 255, 0.25);
    position: relative;
    transform: scale(0.98);
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
}

@media (min-width: 992px) {
    .app-window {
        transform: rotate(2deg) scale(0.98);
    }
}

.app-window:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3f5efb, #fc466b);
    border-radius: 17px;
    z-index: -1;
    opacity: 0.8;
}

@keyframes float {
    0% {
        transform: scale(0.98) translateY(0px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                    0 0 40px rgba(128, 0, 255, 0.35);
    }
    50% {
        transform: scale(0.98) translateY(-15px);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7),
                    0 0 50px rgba(128, 0, 255, 0.5);
    }
    100% {
        transform: scale(0.98) translateY(0px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                    0 0 40px rgba(128, 0, 255, 0.35);
    }
}

@media (min-width: 992px) {
    @keyframes float {
        0% {
            transform: rotate(2deg) scale(0.98) translateY(0px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                        0 0 40px rgba(128, 0, 255, 0.35);
        }
        50% {
            transform: rotate(2deg) scale(0.98) translateY(-15px);
            box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7),
                        0 0 50px rgba(128, 0, 255, 0.5);
        }
        100% {
            transform: rotate(2deg) scale(0.98) translateY(0px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                        0 0 40px rgba(128, 0, 255, 0.35);
        }
    }
}

.window-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-buttons {
    display: flex;
    margin-right: 15px;
}

.window-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.btn-red {
    background-color: #ff5f56;
}

.btn-yellow {
    background-color: #ffbd2e;
}

.btn-green {
    background-color: #27c93f;
}

.window-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
    font-weight: 500;
}

.app-content {
    padding: 20px;
    background-color: #1a0d3a;
    background-image: linear-gradient(to bottom, #1a0d3a, #26134a);
    min-height: 320px;
}

.app-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step.active {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Step number styles moved to step-indicator section for better organization */

.step-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.step-content {
    color: rgba(255, 255, 255, 0.7);
}

.step-row {
    display: flex;
    gap: 15px;
}

.step.half {
    flex: 1;
}

.story-box {
    background-color: rgba(30, 15, 60, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    cursor: pointer;
}

.story-quote {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.genre-selector, .emotion-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    background-color: rgba(45, 20, 80, 0.5);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 400px) {
    .step {
        padding: 10px;
    }
}

.step:hover {
    background-color: rgba(65, 30, 100, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.step.active {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 
                inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.step:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6e4ed4, #9b6dff, #6e4ed4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step.active:after {
    opacity: 1;
}

.step-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.step.half {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 400px) {
    .step-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .step.half {
        margin-bottom: 10px;
    }
    
    .step-row .step:last-child {
        margin-bottom: 0;
    }
}

.step-number {
    width: 22px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    position: absolute;
    top: 12px;
    left: 12px;
}

.step-title {
    margin-left: 32px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 400px) {
    .step-title {
        font-size: 0.9rem;
    }
}

.step-content {
    padding: 5px 0;
}

@media (max-width: 400px) {
    .step-content {
        padding: 3px 0;
    }
}

.story-box {
    background-color: rgba(30, 15, 60, 0.5);
    border-radius: 10px;
    padding: 15px;
}

.story-quote {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.story-quote:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(108, 74, 161, 0.7);
}

.genre-selector, .emotion-selector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.genre-badge, .emotion-badge {
    background-color: rgba(30, 15, 60, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    width: 100%;
    /* Prevent long genre text from wrapping and breaking layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
}

@media (max-width: 400px) {
    .genre-badge, .emotion-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.genre-badge:hover, .emotion-badge:hover {
    background-color: rgba(40, 20, 70, 0.8);
    box-shadow: 0 4px 15px rgba(108, 74, 161, 0.4);
    transform: translateY(-1px);
}

.genre-badge i, .emotion-badge i {
    margin-right: 6px;
}

/* Ensure the inner text can truncate gracefully while icons stay visible */
.genre-badge > span, .emotion-badge > span {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
}

/* Hero offer text: single harmonious color and slight emphasis */
.hero-offer-text {
    color: #c084fc; /* soft lavender that matches site accents */
    font-weight: 700;
    font-size: 1.15rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    margin: 0;
}

.genre-badge {
    background-color: #6c4aa1;
    justify-content: center;
    max-width: 100%;
}

.emotion-badge {
    background-color: #a13b5d;
    justify-content: center;
    max-width: 100%;
}

/* Estilos para arreglar los badges en modo mobile */
@media (max-width: 576px) {
    .genre-selector, .emotion-selector {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .genre-badge, .emotion-badge {
        width: auto;
        max-width: 90%;
    }
}

.app-btn-primary {
    background-color: #6e4ed4;
    background-image: linear-gradient(135deg, #6e4ed4, #9b6dff);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(110, 78, 212, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.app-btn-primary:hover {
    background-color: #8063d8;
    background-image: linear-gradient(135deg, #7e5eeb, #ab7dff);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(110, 78, 212, 0.5);
}

.app-btn-primary:hover:before {
    left: 100%;
}

.result-section {
    display: none;
    margin-top: 10px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-tag {
    color: #4BB543;
    font-weight: 500;
    font-size: 0.9rem;
}

.result-stats {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.result-visualization {
    background-color: rgba(30, 15, 60, 0.5);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 110px;
}

.visualization-bars {
    display: flex;
    align-items: flex-end;
    height: 60px;
    justify-content: space-around;
}

.bar {
    background-color: #6e4ed4;
    width: 4px;
    height: 20px;
    border-radius: 2px;
    transition: height 0.2s ease;
}

@keyframes barAnimation {
    0% { height: 10px; }
    50% { height: 40px; }
    100% { height: 15px; }
}

.audio-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.audio-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 10px;
    transition: all 0.2s ease;
}

.audio-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.audio-btn.play {
    background-color: rgba(255, 255, 255, 0.15);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-btn.play:hover {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.convert-section {
    background-color: rgba(30, 15, 60, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.convert-section:hover {
    background-color: rgba(40, 20, 70, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.convert-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 5px;
}

.convert-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* === Estilos Mejorados para la Sección de Ejemplos === */
.examples-section {
    padding: 5rem 0;
    background-color: rgba(15, 8, 33, 0.7);
    position: relative;
    border-top: 1px solid rgba(108, 74, 161, 0.3);
    border-bottom: 1px solid rgba(108, 74, 161, 0.3);
}

.example-card {
    background: linear-gradient(135deg, #2a1840 0%, #3a2060 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    border: 1.5px solid rgba(168,129,238,0.10);
    box-shadow: 0 8px 32px rgba(80,40,120,0.13), 0 1.5px 0 rgba(255,255,255,0.04) inset;
    transition: transform 0.22s cubic-bezier(.4,1.4,.6,1), box-shadow 0.22s, border-color 0.22s;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.example-card:hover, .example-card:focus-within {
    transform: translateY(-6px) scale(1.018);
    box-shadow: 0 16px 44px rgba(80,40,120,0.19), 0 2px 0 rgba(255,255,255,0.07) inset;
    border-color: rgba(168, 129, 238, 0.22);
}

.example-card-header {
    padding: 1.15rem 10px 1.05rem 1.5rem;
    background: linear-gradient(120deg, #6c4aa1 0%, #8055c7 100%);
    border-bottom: 1.5px solid rgba(255,255,255,0.10);
    position: relative;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 12px 0 rgba(80,40,120,0.08);
}

.example-card-header .title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}
.header-title-wrap {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
}
.example-card-header .example-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #a881ee 0%, #6c4aa1 100%);
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 4px 12px rgba(80,40,120,0.13) inset;
}

.example-card-header .example-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-weight: 800;
    font-size: 1.32rem;
    margin: 0;
    line-height: 1.18;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 4px rgba(60,30,80,0.13);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.example-card-content {
    padding: 1.5rem 1.5rem 1.3rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.example-card-content .example-meta,
.example-card-header .example-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    color: rgba(255,255,255,0.78);
    font-size: 0.97rem;
    margin-bottom: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.example-card-content .example-description {
    color: #fff;
    font-size: 1.07rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-style: italic;
    flex-grow: 1;
    text-shadow: 0 1px 4px rgba(60,30,80,0.10);
}

.example-card-content audio {
    width: 100%;
    display: block;
    margin-top: auto;
    background: rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 0.5rem 0.7rem;
    border: 1.5px solid rgba(168,129,238,0.10);
    box-shadow: 0 2px 8px rgba(80,40,120,0.08);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .col-lg-4.col-md-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .example-card-header {
        padding: 0.95rem 1rem 1.15rem 1rem;
        border-radius: 16px 16px 0 0;
    }
    .example-card-header .example-title {
        font-size: 1.18rem;
    }
    .example-card-header .example-icon {
        width: 40px;
        height: 40px;
        font-size: 1.18rem;
        border-radius: 9px;
    }
    .example-card-content {
        padding: 1rem 1rem 1.1rem 1rem;
    }
    .example-card-content .example-description {
        font-size: 0.99rem;
        margin-bottom: 1rem;
    }
}

/* Animaciones para las barras de visualización */
@keyframes barAnimation {
    0% { height: 10px; }
    20% { height: 25px; }
    40% { height: 40px; }
    60% { height: 20px; }
    80% { height: 35px; }
    100% { height: 15px; }
}

.result-section .bar {
    animation: barAnimation 1.8s infinite;
}

.result-section .bar:nth-child(1) { animation-delay: -0.8s; }
.result-section .bar:nth-child(2) { animation-delay: -0.7s; }
.result-section .bar:nth-child(3) { animation-delay: -0.6s; }
.result-section .bar:nth-child(4) { animation-delay: -0.5s; }
.result-section .bar:nth-child(5) { animation-delay: -0.4s; }
.result-section .bar:nth-child(6) { animation-delay: -0.3s; }
.result-section .bar:nth-child(7) { animation-delay: -0.2s; }
.result-section .bar:nth-child(8) { animation-delay: -0.1s; }
.result-section .bar:nth-child(9) { animation-delay: 0s; }
.result-section .bar:nth-child(10) { animation-delay: -0.9s; }
.result-section .bar:nth-child(11) { animation-delay: -1.0s; }
.result-section .bar:nth-child(12) { animation-delay: -1.1s; }
.result-section .bar:nth-child(13) { animation-delay: -1.2s; }
.result-section .bar:nth-child(14) { animation-delay: -1.3s; }
.result-section .bar:nth-child(15) { animation-delay: -1.4s; }

/* Nuevos estilos para demo estática */
.step.completed {
    background-color: rgba(40, 160, 40, 0.1);
    border: 1px solid rgba(40, 160, 40, 0.3);
}

.step.final {
    background: linear-gradient(135deg, rgba(255, 107, 93, 0.15), rgba(168, 129, 238, 0.15));
    border: 1px solid rgba(255, 107, 93, 0.3);
    box-shadow: 0 8px 25px rgba(255, 107, 93, 0.2);
}

.app-steps .step-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-right: 4px;
}

.app-steps .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

/* Hide step status icons for cleaner design */
.app-steps .step-check,
.app-steps .step-star {
    display: none;
}

.app-steps .step-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-left: 8px;
    letter-spacing: -0.02em;
}

.story-preview {
    background-color: rgba(30, 15, 60, 0.5);
    border-radius: 8px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 8px;
}

.style-selected {
    background-color: rgba(30, 15, 60, 0.5);
    border-radius: 8px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-result {
    margin-top: 12px;
}

.song-preview {
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.8), rgba(45, 20, 80, 0.8));
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.song-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 12px;
    height: 50px;
}

.wave-bar {
    width: 4px;
    background: linear-gradient(to top, #ff6b5d, #a881ee);
    border-radius: 2px;
    animation: wave-pulse 2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: -0.8s; }
.wave-bar:nth-child(2) { animation-delay: -0.7s; }
.wave-bar:nth-child(3) { animation-delay: -0.6s; }
.wave-bar:nth-child(4) { animation-delay: -0.5s; }
.wave-bar:nth-child(5) { animation-delay: -0.4s; }
.wave-bar:nth-child(6) { animation-delay: -0.3s; }
.wave-bar:nth-child(7) { animation-delay: -0.2s; }
.wave-bar:nth-child(8) { animation-delay: -0.1s; }
.wave-bar:nth-child(9) { animation-delay: 0s; }
.wave-bar:nth-child(10) { animation-delay: -0.9s; }

@keyframes wave-pulse {
    0%, 100% { height: 20px; opacity: 0.7; }
    50% { height: 45px; opacity: 1; }
}

.song-info {
    text-align: center;
}

.song-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.song-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.song-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-item i {
    color: #ffd966;
    font-size: 0.9rem;
}

/* Color específico para el ícono de letra personalizada */
.feature-item i.fa-file-text {
    color: #ff6b5d;
}

/* Estilos para las coronitas premium en las descripciones */
.premium-crown-icon {
    color: #ffd966;
    font-size: 0.9rem;
    margin-left: 8px;
    opacity: 0.8;
}

.premium-crown-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.demo-cta {
    margin-top: 20px;
    text-align: center;
}

.cta-badge {
    background: linear-gradient(135deg, #ff6b5d, #a881ee);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 93, 0.3);
}

/* Estilos para badge premium inline */
.premium-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.premium-badge-inline {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.premium-note {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Estilos para badge premium */
.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.premium-description {
    color: #666;
    font-size: 0.8rem;
    margin-top: 8px;
    text-align: center;
}

/* Media queries para la demo estática */
@media (max-width: 400px) {
    .song-features {
        grid-template-columns: 1fr;
    }
    
    .song-waveform {
        height: 40px;
    }
    
    .wave-bar {
        width: 3px;
    }
    
    .demo-cta {
        margin-top: 15px;
    }
    
    .cta-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .premium-description {
        font-size: 0.75rem;
        margin-top: 6px;
    }

    .premium-badge-inline {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .premium-note {
        font-size: 0.85rem;
    }
}

/* Compactar cards de ejemplos en mobile */
@media (max-width: 576px) {
    .examples-section {
        padding-top: 2.2rem;
        padding-bottom: 2.2rem;
    }
    .example-card {
        padding: 0.7rem 0.5rem 0.7rem 0.5rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.7rem !important;
    }
    .example-card-header {
        height: 60px !important;
        min-height: 0 !important;
    }
    .example-card-wave svg {
        height: 22px !important;
    }
    .example-card-content {
        padding: 18px 24px 20px 24px !important;
    }
.example-card-content audio {
    width: 100%;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    margin: 10px 0 16px 0;
    box-shadow: 0 1px 6px 0 rgba(80,40,120,0.10);
}
.example-card-header .header-info > div:first-child span:last-child {
    font-size: 1.18rem !important;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.example-card-header .header-info > div:last-child {
    font-size: 0.97rem !important;
    color: rgba(255,255,255,0.90) !important;
    font-weight: 400;
}
.example-card-content .example-meta {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2px;
}
.example-card-content small {
    color: rgba(255,255,255,0.60);
    font-size: 0.90rem;
}
.example-card-content blockquote, .example-card-content .example-description {
    color: #fff;
    font-size: 1.01rem;
    margin: 18px 0 0 0;
    padding-left: 0;
    border-left: none;
    font-style: italic;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .example-card-header {
        padding: 14px 8px 0 8px;
        min-height: 80px;
        border-radius: 12px 12px 0 0;
    }
    .example-card {
        border-radius: 12px;
    }
    .example-card-content {
        padding: 12px 8px 14px 8px !important;
    }
}
    .example-title {
        font-size: 0.98rem !important;
        margin-bottom: 2px !important;
    }
    .example-meta {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }
    .example-card .d-flex.align-items-start.gap-3 {
        gap: 7px !important;
    }
    .example-card [style*="font-size:1.6rem"] {
        font-size: 1.15rem !important;
    }
    .demo-badge {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.85rem !important;
    }
    /* --- FORZAR HEADER DE EXAMPLE CARDS EN MOBILE --- */
    @media (max-width: 600px) {
        .example-card-header {
            padding: 16px 14px 14px 14px !important;
            border-radius: 14px 14px 0 0 !important;
            background: linear-gradient(90deg, #7b4bb7 0%, #8e5ec3 100%) !important;
            box-shadow: 0 2px 8px 0 rgba(80,40,120,0.13) !important;
            display: flex !important;
            align-items: center !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
            min-height: 64px !important;
        }
        .example-card-header .title-row {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 14px !important;
            min-width: 0 !important;
            width: 100% !important;
        }
        .example-card-header .example-icon {
            font-size: 1.7rem !important;
            width: 2.7rem !important;
            height: 2.7rem !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: rgba(255,255,255,0.18) !important;
            border-radius: 50% !important;
            margin-right: 0 !important;
            flex-shrink: 0 !important;
            box-shadow: 0 1px 4px 0 rgba(80,40,120,0.10) !important;
        }
        .header-title-wrap {
            display: flex !important;
            align-items: center !important;
            min-width: 0 !important;
            flex: 1 1 0% !important;
            box-sizing: border-box !important;
            height: 2.7rem !important;
        }
        .example-card-header .example-title {
            font-size: 1.47rem !important; /* reducido 30% desde 2.1rem */
            font-weight: 900 !important;
            color: #fff !important;
            letter-spacing: -0.5px !important;
            line-height: 1.05 !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            padding-right: 12px !important;
            display: flex !important;
            align-items: center !important;
        }
        /* Ajustes para el formulario secundario en mobile (más ancho similar al mobile-hero-form) */
        #form2 {
            width: 98% !important;
            max-width: 98% !important;
            margin-left: auto !important;
            margin-right: auto !important;
            box-sizing: border-box !important;
            padding-left: 6px !important;
            padding-right: 6px !important;
        }
        #form2 .input-with-icon {
            width: 100% !important;
            max-width: 100% !important;
        }
        #form2 .form-control {
            width: 100% !important;
            box-sizing: border-box !important;
        }
        #form2 .mt-3.mb-2.text-center {
            max-width: 100% !important;
            width: 100% !important;
            padding: 0 8px !important;
        }
        /* checkbox area: permitir que ocupe todo el ancho y se reordene si hace falta */
        .checkbox-row {
            max-width: 100% !important;
            width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            flex-wrap: wrap !important;
            gap: 8px !important;
            padding: 0 6px !important;
        }
        /* asegurar que el wrapper interior no permita overflow visual */
        .play-button-wrapper, .play-button-wrapper .header-info { overflow: hidden !important; box-sizing: border-box !important; width: 100% !important; }
    }
    .example-card audio {
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 4px !important;
    }
    .example-card p {
        font-size: 0.85rem !important;
        margin-top: 6px !important;
        margin-bottom: 0 !important;
    }
    .example-card small {
        font-size: 0.7rem !important;
    }
}

/* Estilos adicionales para el formulario de registro simplificado */
.hero-form .form-control {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    height: 50px;
    padding-left: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(168, 129, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(168, 129, 238, 0.25);
    transform: translateY(-1px);
}

.hero-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Fix para el alineamiento del icono del sobre */
.hero-form .fa-envelope {
    line-height: 0;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -5px; /* Ajuste fino para el alineamiento vertical */
}

.mobile-hero-form .fa-envelope {
    line-height: 1;
    height: auto;
    display: inline-block;
    margin-top: 0;
}

/* Estilos para mejorar la apariencia de los checkboxes */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    float: left;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #a881ee;
    border-color: #a881ee;
    box-shadow: 0 2px 8px rgba(168, 129, 238, 0.4);
}

.form-check-input:focus {
    border-color: #a881ee;
    box-shadow: 0 0 0 3px rgba(168, 129, 238, 0.25);
}

.form-check-label {
    cursor: pointer;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.form-check-input:checked {
    background-color: #ff4b8a;
    border-color: #ff4b8a;
}

.form-check-label {
    cursor: pointer;
}

/* Mejoras específicas para el formulario mobile */
.mobile-hero-form .form-check {
    text-align: left !important;
    display: flex;
    align-items: flex-start;
}

.mobile-hero-form .form-check-input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.mobile-hero-form .form-check-label {
    margin-left: 5px;
    text-align: left;
    line-height: 1.3;
}

.mobile-hero-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-hero-form .card {
    transition: all 0.3s ease;
    overflow-x: hidden; /* Prevenir scroll horizontal */
    box-sizing: border-box; /* Para que padding no afecte el ancho */
    margin-left: auto;
    margin-right: auto;
}

.mobile-hero-form .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
}

.mobile-hero-form .card-body {
    padding: 1.25rem; /* Padding responsivo */
    overflow: hidden; /* Prevención adicional de scroll */
}

/* Efecto pulsante para el botón */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 75, 138, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 75, 138, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 75, 138, 0);
    }
}

#mobile-submit-button {
    animation: pulse 2s infinite;
}

/* Efecto ripple para botones */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    opacity: 0;
    animation: ripple 1.8s;
    animation-iteration-count: infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Animación de la etiqueta de urgencia */
@keyframes pulse-urgency {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

.urgency-tag {
    animation: pulse-urgency 2s infinite;
}

/* Estilos para el destacado de oferta */
.offer-box {
    transition: all 0.3s ease;
    overflow: hidden;
}

.offer-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25) !important;
}

.offer-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    animation: shine 6s infinite;
    z-index: 1;
}

@keyframes shine {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.9rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .mobile-hero-form .form-check-label {
        font-size: 0.85rem !important;
        line-height: 1.3;
    }
    
    .mobile-hero-form .card {
        border-radius: 12px !important;
        width: 98% !important;
        margin: 0 auto;
    }
    
    .mobile-hero-form h4 {
        font-size: 1.2rem;
    }
    
    /* Mejora para badges en pantallas muy pequeñas */
    .mobile-hero-form .badge {
        width: 95%;
        white-space: normal;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    /* Ajuste del contenedor principal para que esté centrado */
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Prevención adicional de scroll horizontal para dispositivos muy pequeños */
@media (max-width: 360px) {
    h1 {
        font-size: 1.7rem;
        line-height: 1.1;
    }
    
    .hero-tag {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-hero-form .badge {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    /* Mejoras adicionales para los checkboxes en pantallas muy pequeñas */
    .mobile-hero-form .form-check {
        margin-bottom: 10px;
    }
    
    .mobile-hero-form .form-check-input {
        margin-top: 0.15rem;
        width: 16px;
        height: 16px;
    }
    
    .mobile-hero-form .form-check-label {
        font-size: 0.8rem !important;
    }
    
    .hero-subtitle .lead {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .hero-subtitle .offer-box {
        padding: 10px 12px;
    }
    
    .hero-subtitle .lead span {
        display: inline-block;
        margin-bottom: 3px;
    }
}

/* Ajustes de estilo para móvil y desktop */
@media (min-width: 992px) {
    .hero-form {
        max-width: 520px;
    }
    
    .hero-form .btn-action {
        transform: scale(1) !important;
        font-size: 1.1rem;
        box-shadow: 0 6px 15px rgba(255, 106, 61, 0.4);
        transition: all 0.3s ease;
    }
    
    .hero-form .btn-action:hover {
        transform: scale(1.05) translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(255, 106, 61, 0.6);
    }
}

/* Animación de pulso suave para etiquetas de urgencia */
@keyframes pulse-light {
    0% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(139, 195, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0); }
}

/* Animación de brillo para elementos premium */
@keyframes shine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* Efecto hover para elementos premium */
.premium-highlight:hover {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Animación de pulso para elementos de urgencia */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid ~ .form-check-label {
    color: #dc3545;
}

.ajax-error {
    margin-bottom: 1rem;
    border-radius: 8px;
    position: relative;
    z-index: 1000;
}

/* Mobile-specific styles for error visibility */
@media (max-width: 768px) {
    .ajax-error {
        background-color: #f8d7da !important;
        border-color: #f5c6cb !important;
        color: #721c24 !important;
        font-size: 14px;
        padding: 12px 16px;
        margin: 10px 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .is-invalid {
        border-color: #dc3545 !important;
        background-color: rgba(220, 53, 69, 0.05) !important;
    }
}

/* Mobile-specific validation styles */
@media (max-width: 768px) {
    .form-control.is-invalid {
        border-color: #dc3545 !important;
        border-width: 2px !important;
        background-color: rgba(220, 53, 69, 0.1) !important;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    }
    
    .invalid-feedback {
        display: block !important;
        color: #dc3545 !important;
        font-size: 0.875rem !important;
        margin-top: 0.25rem !important;
        font-weight: 500 !important;
        background-color: rgba(220, 53, 69, 0.1) !important;
        padding: 0.5rem !important;
        border-radius: 0.375rem !important;
        border: 1px solid rgba(220, 53, 69, 0.3) !important;
    }
    
    .form-floating > .form-control.is-invalid ~ label {
        color: #dc3545 !important;
    }
    
    /* Ensure error messages are visible on mobile */
    .alert-danger {
        display: block !important;
        background-color: rgba(220, 53, 69, 0.9) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        font-weight: 500 !important;
    }
    
    /* AJAX error messages on mobile */
    .ajax-error {
        display: block !important;
        background-color: rgba(220, 53, 69, 0.95) !important;
        color: white !important;
        border: 2px solid #dc3545 !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        font-weight: 500 !important;
        font-size: 0.9rem !important;
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
        position: relative !important;
        z-index: 1000 !important;
    }
    
    .ajax-error strong {
        color: #ffcccc !important;
        font-weight: 700 !important;
    }
    
    /* Server alert messages on mobile */
    .server-alert {
        display: block !important;
        background-color: rgba(220, 53, 69, 0.95) !important;
        color: white !important;
        border: 2px solid #dc3545 !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        font-weight: 500 !important;
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
    }
    
    /* Mobile form button feedback */
    .btn-primary:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Mobile input focus styles */
    .form-control:focus {
        border-color: var(--accent-color) !important;
        box-shadow: 0 0 0 0.2rem rgba(255, 75, 138, 0.25) !important;
    }
}
