/**
 * ProductosPromocion.css
 * Estilos para página de promociones con fondo oscuro y colores neón
 * Virawy Ropa Interior SAS
 */

/* ===== VARIABLES - COLORES NEÓN ===== */
:root {
    --primary: #ff0080;
    --primary-light: #ff4da6;
    --secondary: #ff00ff;
    --accent: #00ffff;
    --accent-yellow: #ffff00;
    --accent-green: #00ff00;
    --dark: #0a0a0a;
    --dark-secondary: #1a1a2e;
    --dark-card: #16213e;
    --white: #ffffff;
    --gray: #888;
    --gray-light: #2a2a3e;
    --success: #00ff88;
    --error: #ff0040;
    --warning: #ffaa00;
    --shadow-neon-pink: 0 0 20px rgba(255, 0, 128, 0.6), 0 0 40px rgba(255, 0, 128, 0.3);
    --shadow-neon-cyan: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
    --shadow-neon-purple: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.3);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.8);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== WRAPPER PRINCIPAL ===== */
.promo-urgency-wrapper {
    position: relative;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a001a 50%, #0a0a1a 100%);
}

/* ===== FONDO ANIMADO ===== */
.promo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.gradient-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.gradient-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent), #0080ff);
    bottom: -150px;
    left: -50px;
    animation-delay: -5s;
}

.gradient-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), var(--accent-yellow));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.3;
}

.gradient-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent));
    bottom: 20%;
    right: 10%;
    animation-delay: -15s;
    opacity: 0.25;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Grid overlay futurista */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 0, 128, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 128, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Partículas flotantes */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.8;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.pulse-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 3s infinite;
    box-shadow: 0 0 20px var(--primary), inset 0 0 20px var(--primary);
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* Orbes neón */
.neon-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbPulse 4s infinite ease-in-out;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    opacity: 0.4;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 10%;
    right: 5%;
    opacity: 0.3;
    animation-delay: -2s;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* ===== ELEMENTOS DE URGENCIA ===== */
.urgency-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.flash-badge,
.limited-badge,
.exclusive-badge {
    position: absolute;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--warning), var(--accent-yellow));
    color: var(--dark);
    font-weight: 800;
    font-size: 13px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
    border: 2px solid var(--accent-yellow);
}

.flash-badge { top: 15%; left: 10%; }
.limited-badge { top: 20%; right: 12%; }
.exclusive-badge { bottom: 25%; left: 8%; }

.discount-badge {
    position: absolute;
    top: 30%;
    right: 15%;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--error), #ff4040);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    box-shadow: var(--shadow-neon-pink);
    animation: bounce 2s infinite;
    border: 3px solid var(--primary-light);
}

.alert-dot {
    position: absolute;
    bottom: 15%;
    right: 20%;
    width: 20px;
    height: 20px;
    background: var(--error);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.7), 0 0 20px var(--error);
}

.alert-dot.pulse.active {
    animation: alertPulse 1.5s infinite;
}

@keyframes alertPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.7), 0 0 20px var(--error); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 64, 0), 0 0 20px var(--error); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 64, 0), 0 0 20px var(--error); }
}

/* Animaciones flotantes */
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float.delay-1 { animation-delay: -1s; }
.animate-float.delay-2 { animation-delay: -2s; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-pulse { animation: pulse 2s infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== CONTENIDO CENTRAL ===== */
.promo-urgency-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    width: 100%;
    text-align: center;
}

/* ===== LOGO ANIMADO ===== */
.brand-reveal {
    margin-bottom: 30px;
}

.logo-animated {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-family: 'Bebas Neue', cursive;
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--secondary),
        0 0 80px var(--secondary);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.logo-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
    transition: var(--transition);
    transition-delay: calc(var(--delay) * 100ms);
}

.logo-char.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.brand-subtitle {
    font-size: 18px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--accent);
}

.sparkle {
    color: var(--accent-yellow);
    animation: sparkle 1.5s infinite;
    text-shadow: 0 0 10px var(--accent-yellow);
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

/* ===== MENSAJE DE URGENCIA ===== */
.urgency-banner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--error), #ff4040);
    color: white;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-neon-pink);
    animation: shake 3s infinite;
    border: 2px solid var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.main-urgency-headline {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.headline-part {
    display: block;
}

.headline-part.highlight {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.5));
}

.blink {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 49%, 100% { opacity: 1; }
    50%, 99% { opacity: 0.6; }
}

.urgency-subheadline {
    font-size: 19px;
    color: var(--white);
    margin-bottom: 40px;
    background: rgba(255, 0, 128, 0.15);
    padding: 25px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 128, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.2);
}

.urgency-subheadline strong {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.urgency-subheadline em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

/* ===== TARJETA DE REGISTRO ===== */
.registration-card {
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-card));
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg), var(--shadow-neon-pink);
    margin-bottom: 30px;
    animation: cardEntrance 0.6s ease-out;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 0, 128, 0.1) 50%,
        transparent 70%
    );
    animation: cardShine 3s infinite;
}

@keyframes cardShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 10px var(--accent-yellow));
}

.card-header h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--accent);
}

.card-header p {
    color: var(--gray);
    font-size: 15px;
}

/* ===== FORMULARIO ===== */
.urgency-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 16px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition-fast);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 0, 128, 0.2), 0 0 20px rgba(255, 0, 128, 0.3);
}

.form-group input.error {
    border-color: var(--error);
    background: rgba(255, 0, 64, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.3);
}

.form-group input::placeholder {
    color: var(--gray);
}

.error-msg {
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
    display: none;
    min-height: 16px;
}

.form-hint {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0;
    position: relative;
    z-index: 1;
}

.consent-check input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-check label {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
    cursor: pointer;
}

/* ===== BOTÓN DE REGISTRO ===== */
.btn-register {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: var(--shadow-neon-pink);
    animation: gradientShift 3s ease infinite;
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-register:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(255, 0, 128, 0.6), 0 0 60px rgba(255, 0, 255, 0.4);
}

.btn-register:active:not(:disabled) {
    transform: translateY(-2px);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.btn-loader {
    font-size: 14px;
}

.form-guarantee {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

/* ===== FEEDBACK ===== */
.form-feedback {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-feedback .error {
    color: var(--error);
    background: rgba(255, 0, 64, 0.15);
    border: 2px solid var(--error);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.3);
}

.form-feedback .success {
    color: var(--success);
    background: rgba(0, 255, 136, 0.15);
    border: 2px solid var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(255, 0, 128, 0.1);
    padding: 20px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 128, 0.3);
    position: relative;
    z-index: 1;
}

.proof-item {
    text-align: center;
    padding: 10px 5px;
}

.proof-number {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--accent);
}

.proof-label {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.3;
}

.proof-label strong {
    color: var(--white);
}

/* ===== BADGES DECORATIVOS ===== */
.decorative-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.badge {
    position: absolute;
    font-size: 28px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.badge-gift { top: 10%; right: 20%; }
.badge-sale { bottom: 20%; right: 10%; }
.badge-star { top: 25%; left: 15%; }
.badge-heart { bottom: 15%; left: 20%; }

/* ===== OVERLAY DE ÉXITO ===== */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-card {
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-card));
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: modalEntrance 0.4s ease;
    box-shadow: var(--shadow-lg), var(--shadow-neon-purple);
    border: 2px solid var(--secondary);
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
    filter: drop-shadow(0 0 20px var(--success));
}

.success-card h3 {
    font-size: 28px;
    color: var(--success);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--success);
}

.success-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.success-card strong {
    color: var(--accent);
}

.success-steps {
    background: rgba(0, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--radius-md);
    margin: 25px 0;
    text-align: left;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.success-steps p {
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--white);
}

.success-steps ol {
    padding-left: 25px;
    color: var(--gray);
    font-size: 14px;
}

.success-steps li {
    margin: 10px 0;
}

.btn-close-success {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    box-shadow: var(--shadow-neon-pink);
}

.btn-close-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 0, 128, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .promo-urgency-wrapper {
        padding: 20px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-proof {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .main-urgency-headline {
        font-size: 30px;
    }
    
    .urgency-subheadline {
        font-size: 17px;
        padding: 20px;
    }
    
    .registration-card {
        padding: 30px 20px;
    }
    
    .urgency-elements > div {
        font-size: 11px;
        padding: 8px 15px;
    }
    
    .discount-badge {
        width: 75px;
        height: 75px;
        font-size: 20px;
    }
    
    .logo-animated {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .logo-animated {
        font-size: 36px;
    }
    
    .brand-subtitle {
        font-size: 14px;
        letter-spacing: 3px;
    }
    
    .card-header h3 {
        font-size: 22px;
    }
    
    .btn-register {
        font-size: 14px;
        padding: 16px 25px;
    }
    
    .success-card {
        padding: 30px 20px;
    }
    
    .success-icon {
        font-size: 50px;
    }
    
    .urgency-banner {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== UTILIDADES ===== */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible para navegación con teclado */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 20px var(--accent);
}