/* ============================================
   ESTILOS SECCIÓN WAITLIST
   ============================================ */

.waitlist-section {
    position: relative;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #0f1729 100%);
    min-height: 100vh;
    padding: 4rem 2rem;
    overflow: hidden;
    color: #ffffff;
}

[data-theme="dark"] .waitlist-section {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #0f1729 100%);
}

/* Fondo animado - Media Luna Brillante */
.waitlist-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Línea curva del horizonte - Solo superior */
.waitlist-animated-bg::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 5000px;
    height: 2500px;
    border-radius: 50%;
    border-top: 2px solid rgba(130, 150, 255, 0.15);
    box-shadow: 0 -20px 40px rgba(130, 150, 255, 0.1),
                0 -40px 80px rgba(130, 150, 255, 0.05);
    pointer-events: none;
    clip-path: ellipse(2500px 150px at 50% 0%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

/* Media Luna Brillante Principal - Viaja por el horizonte */
.gradient-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 40%, 
        rgba(130, 150, 255, 0.9) 0%, 
        rgba(100, 120, 255, 0.6) 20%,
        rgba(70, 90, 200, 0.4) 40%,
        rgba(50, 70, 150, 0) 70%);
    filter: blur(60px);
    animation: crescentJourney 20s ease-in-out infinite;
}

/* Resplandor adicional que sigue la luna */
.gradient-orb.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 40% 50%, 
        rgba(150, 170, 255, 0.7) 0%, 
        rgba(100, 140, 255, 0.4) 30%,
        rgba(80, 100, 200, 0) 60%);
    filter: blur(80px);
    animation: crescentJourney 20s ease-in-out infinite 1s;
}

/* Acento de luz que sigue la luna */
.gradient-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(200, 210, 255, 0.5) 0%, 
        rgba(150, 170, 255, 0.3) 40%,
        rgba(100, 120, 200, 0) 70%);
    filter: blur(100px);
    animation: crescentJourney 20s ease-in-out infinite 2s;
}

/* Animación de viaje por el horizonte curvo */
@keyframes crescentJourney {
    0% {
        left: -15%;
        top: 40%;
        opacity: 0.3;
        transform: scale(0.8);
    }
    15% {
        left: 10%;
        top: 33%;
        opacity: 0.6;
        transform: scale(1);
    }
    35% {
        left: 40%;
        top: 27%;
        opacity: 0.8;
        transform: scale(1.1);
    }
    50% {
        left: 60%;
        top: 25%;
        opacity: 1;
        transform: scale(1.15);
    }
    65% {
        left: 80%;
        top: 27%;
        opacity: 0.8;
        transform: scale(1.1);
    }
    85% {
        left: 100%;
        top: 33%;
        opacity: 0.5;
        transform: scale(0.9);
    }
    100% {
        left: 115%;
        top: 40%;
        opacity: 0.2;
        transform: scale(0.7);
    }
}

/* Contenedor principal */
.container-waitlist {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.waitlist-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Header de la sección */
.waitlist-header {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.waitlist-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(143, 163, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(143, 163, 255, 0.3);
    box-shadow: 0 0 20px rgba(143, 163, 255, 0.2);
}

.waitlist-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.waitlist-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.waitlist-subtitle strong {
    font-weight: 700;
    background: linear-gradient(to right, #8fa3ff, #c5d1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(143, 163, 255, 0.3);
}

.waitlist-description {
    font-size: 0.9375rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    display: block;
}

/* Main Layout - Side by Side */
.waitlist-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Features List - Izquierda */
.waitlist-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    min-height: 300px;
}

/* Features Rotator Container */
.features-rotator {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: visible;
}

/* Feature Group */
.feature-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease,
                visibility 0s 0.3s;
    z-index: 1;
}

.feature-group.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transition: opacity 0.3s ease,
                visibility 0s;
}

/* Feature Group Title */
.feature-group-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #8fa3ff;
    text-shadow: 0 0 20px rgba(143, 163, 255, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-group.active .feature-group-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-group.active .feature-item:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.25s;
}

.feature-group.active .feature-item:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

.feature-group.active .feature-item:nth-child(4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.55s;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #8fa3ff;
    filter: drop-shadow(0 0 8px rgba(143, 163, 255, 0.5));
}

.feature-item span {
    font-size: 0.9375rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Contenedor de imágenes de beneficios */
.feature-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.feature-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.5s ease-out;
    filter: drop-shadow(0 4px 12px rgba(143, 163, 255, 0.3));
}

/* Animación bounce suave para las imágenes cuando el grupo está activo */
.feature-group.active .feature-image:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: none;
    animation: bounceInImage 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

.feature-group.active .feature-image:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: none;
    animation: bounceInImage 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s both;
}

.feature-group.active .feature-image:nth-child(3) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: none;
    animation: bounceInImage 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

/* Animación bounce suave y elegante para las imágenes */
@keyframes bounceInImage {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.92);
    }
    40% {
        opacity: 0.8;
        transform: translateY(-8px) scale(1.05);
    }
    60% {
        opacity: 1;
        transform: translateY(3px) scale(0.98);
    }
    80% {
        transform: translateY(-2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto hover sutil en las imágenes */
.feature-image:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(143, 163, 255, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Cuando la animación termina, permitir transiciones suaves para hover */
.feature-group.active .feature-image {
    animation-fill-mode: both;
}

.feature-group.active .feature-image:hover {
    animation: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Responsive para las imágenes */
@media (max-width: 768px) {
    .feature-images {
        gap: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 3.5rem;
    }
    
    .feature-image {
        width: 55px;
        height: 55px;
    }
}

/* Indicador de Paginación */
.features-pagination {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(143, 163, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    position: relative;
    overflow: visible;
}

/* Ícono de pausa/play en el centro del dot */
.pagination-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    font-size: 6px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

/* Ícono de pausa cuando está activo (no pausado) y en hover */
.pagination-dot.active[data-paused="false"]:hover::before {
    content: '❚❚';
    opacity: 1;
    font-size: 5px;
    letter-spacing: 0.5px;
}

/* Ícono de play cuando está pausado (siempre visible) */
.pagination-dot.active[data-paused="true"]::before {
    content: '▶';
    opacity: 0.85;
    font-size: 5px;
    padding-left: 1px; /* Pequeño ajuste para centrar visualmente el triángulo */
}

.pagination-dot.active[data-paused="true"]:hover::before {
    opacity: 1;
    font-size: 6px;
}

.pagination-dot:hover {
    transform: scale(1.3);
    border-color: rgba(143, 163, 255, 0.8);
    background: rgba(143, 163, 255, 0.3);
}

.pagination-dot.active {
    background: #8fa3ff;
    border-color: #8fa3ff;
    box-shadow: 0 0 12px rgba(143, 163, 255, 0.6);
    transform: scale(1.3);
}

.pagination-dot.active:hover {
    transform: scale(1.5);
}

/* Indicación visual cuando está pausado - mantiene el color pero con pulso diferente */
.pagination-dot.active[data-paused="true"] {
    background: #8fa3ff;
    border-color: #8fa3ff;
    box-shadow: 0 0 12px rgba(143, 163, 255, 0.6);
    animation: pulse-paused 1.5s ease-in-out infinite;
}

@keyframes pulse-paused {
    0%, 100% {
        opacity: 1;
        transform: scale(1.3);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.25);
    }
}

.pagination-progress {
    width: 100%;
    max-width: 200px;
    height: 3px;
    background: rgba(143, 163, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8fa3ff, #c5d1ff);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(143, 163, 255, 0.5);
    transition: width 6000ms linear;
}

/* Formulario - Derecha */
.waitlist-form-container {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.waitlist-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(130, 150, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 100px rgba(130, 150, 255, 0.1) inset;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 1px solid rgba(130, 150, 255, 0.3);
    border-radius: 12px;
    background: rgba(20, 25, 50, 0.6);
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #8fa3ff;
    background: rgba(20, 25, 50, 0.8);
    box-shadow: 0 0 0 3px rgba(143, 163, 255, 0.2),
                0 0 20px rgba(143, 163, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.waitlist-submit-btn {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #8fa3ff 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4),
                0 0 40px rgba(143, 163, 255, 0.2);
}

.waitlist-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6),
                0 0 60px rgba(143, 163, 255, 0.3);
    background: linear-gradient(135deg, #7788ee 0%, #9fb3ff 100%);
}

.waitlist-submit-btn:active {
    transform: translateY(0);
}

.waitlist-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.waitlist-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Mensajes de feedback */
.waitlist-message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: slideDown 0.4s ease-out;
}

.waitlist-message.show {
    display: block;
}

.waitlist-message.success {
    background: rgba(72, 187, 120, 0.2);
    border: 2px solid rgba(72, 187, 120, 0.5);
    color: #c6f6d5;
}

.waitlist-message.error {
    background: rgba(245, 101, 101, 0.2);
    border: 2px solid rgba(245, 101, 101, 0.5);
    color: #fed7d7;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .waitlist-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 767px) {
    .waitlist-section {
        padding: 3rem 1.5rem;
    }
    
    .waitlist-title {
        font-size: 2rem;
    }
    
    .waitlist-subtitle {
        font-size: 1.125rem;
    }
    
    .waitlist-description {
        font-size: 0.875rem;
        display: none !important;
    }
    
    .waitlist-main {
        gap: 2rem;
    }
    
    .waitlist-features {
        gap: 0.75rem;
    }
    
    .feature-item span {
        font-size: 0.875rem;
    }
    
    .features-pagination {
        margin-top: 7rem;
    }
    
    .waitlist-form {
        padding: 2rem 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .waitlist-animated-bg::before {
        top: 35%;
        width: 3000px;
        height: 1500px;
        clip-path: ellipse(1500px 100px at 50% 0%);
    }
    
    .gradient-orb.orb-1 {
        width: 400px;
        height: 400px;
    }
    
    .gradient-orb.orb-2 {
        width: 300px;
        height: 300px;
    }
    
    .gradient-orb.orb-3 {
        width: 200px;
        height: 200px;
    }
    
    @keyframes crescentJourney {
        0% {
            left: -20%;
            top: 35%;
            opacity: 0.3;
            transform: scale(0.7);
        }
        15% {
            left: 5%;
            top: 28%;
            opacity: 0.5;
            transform: scale(0.9);
        }
        35% {
            left: 35%;
            top: 23%;
            opacity: 0.7;
            transform: scale(1);
        }
        50% {
            left: 55%;
            top: 20%;
            opacity: 0.9;
            transform: scale(1.05);
        }
        65% {
            left: 75%;
            top: 23%;
            opacity: 0.7;
            transform: scale(1);
        }
        85% {
            left: 95%;
            top: 28%;
            opacity: 0.4;
            transform: scale(0.8);
        }
        100% {
            left: 120%;
            top: 35%;
            opacity: 0.2;
            transform: scale(0.6);
        }
    }
}

@media (max-width: 480px) {
    .waitlist-title {
        font-size: 1.75rem;
    }
    
    .waitlist-form {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   MODAL DE PREGUNTAS
   ============================================ */

.waitlist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.waitlist-modal.show {
    display: flex;
}

.waitlist-modal-content {
    background: rgba(20, 25, 50, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(130, 150, 255, 0.3);
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(130, 150, 255, 0.1);
    animation: slideUp 0.4s ease-out;
}

.waitlist-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.waitlist-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.waitlist-modal-close svg {
    width: 24px;
    height: 24px;
}

.waitlist-question {
    animation: fadeIn 0.4s ease-out;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.question-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(130, 150, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(130, 150, 255, 0.4);
    transform: translateX(5px);
}

.option-label input[type="checkbox"],
.option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #8fa3ff;
}

.option-label input[type="checkbox"]:checked + span,
.option-label input[type="radio"]:checked + span {
    color: #8fa3ff;
    font-weight: 600;
}

.option-label:has(input:checked) {
    background: rgba(143, 163, 255, 0.1);
    border-color: rgba(143, 163, 255, 0.5);
}

.option-label span {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.question-btn-continue {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #8fa3ff 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.question-btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.question-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.waitlist-modal-content .form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 1px solid rgba(130, 150, 255, 0.3);
    border-radius: 12px;
    background: rgba(20, 25, 50, 0.6);
    color: #ffffff;
    transition: all 0.3s ease;
}

.waitlist-modal-content .form-group input:focus {
    outline: none;
    border-color: #8fa3ff;
    background: rgba(20, 25, 50, 0.8);
    box-shadow: 0 0 0 3px rgba(143, 163, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .waitlist-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .question-title {
        font-size: 1.25rem;
    }
}

