:root {
    --primary: #7B2CFF;
    --primary-light: #A855F7;
    --primary-dark: #5B1FD9;
    --secondary: #D946EF;
    --accent: #C084FC;
    --success: #10b981;
    --dark: #1E1B4B;
    --white: #FFFFFF;
    --gray-light: #F8F9FC;
    --gray-mid: #E2E8F0;
    --gray-text: #6B7280;
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(123, 44, 255, 0.15);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(123, 44, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: var(--dark);
}

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.9) blur(2px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(30, 27, 75, 0.466), rgba(30, 27, 75, 0.568));
}

.floating-light {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
    animation: floatLight 10s ease-in-out infinite;
}

.light-1 {
    background: #7B2CFF;
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.light-2 {
    background: #D946EF;
    bottom: 10%;
    right: -100px;
    animation-delay: 2s;
}

.light-3 {
    background: #C084FC;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    animation-delay: 4s;
}

@keyframes floatLight {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(40px, -40px) scale(1.15); opacity: 0.3; }
}

.recla-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 2.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.4s ease;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.glass-card:hover {
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.recla-header {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, #7B2CFF, #A855F7, #D946EF);
    overflow: hidden;
}

.header-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.logo-header {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255,255,255,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 45px rgba(255,255,255,0.5); }
}

.logo-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    animation: spinRing 3s linear infinite;
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.gradient-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.cyber-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.header-line {
    width: 80px;
    height: 3px;
    background: white;
    margin: 1rem auto 0;
    border-radius: 3px;
    animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% { width: 60px; opacity: 0.6; }
    50% { width: 120px; opacity: 1; }
}

.badge-3d {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotate(5deg);
    animation: badgeWobble 3s ease-in-out infinite;
}

@keyframes badgeWobble {
    0%, 100% { transform: rotate(5deg) translateX(0); }
    50% { transform: rotate(8deg) translateX(-3px); }
}

.progress-steps {
    display: flex;
    padding: 2rem;
    background: var(--gray-light);
    border-bottom: 1px solid var(--gray-mid);
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gray-mid), #cbd5e1);
    z-index: 1;
    border-radius: 3px;
}

.step-item.active:not(:last-child)::after,
.step-item.completed:not(:last-child)::after {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: lineGlow 1.5s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; box-shadow: 0 0 5px var(--primary); }
}

.step-num {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 800;
    color: var(--gray-text);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    font-size: 0.9rem;
    border: 2px solid var(--gray-mid);
}

.step-item.active .step-num {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(123, 44, 255, 0.5);
    animation: stepPop 0.5s ease;
}

@keyframes stepPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.step-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
}

.step-item.active .step-ripple {
    animation: stepRipple 2s infinite;
}

@keyframes stepRipple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.step-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-text);
    letter-spacing: 1px;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 800;
}

.step-item.completed .step-num {
    background: #10b981;
    border: none;
    color: white;
}

.step-item.completed .step-label {
    color: #10b981;
}

.recla-form {
    padding: 2.5rem;
    background: white;
}

.form-step {
    display: none;
}

.form-step.active-step {
    display: block;
    animation: slideUp 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-title i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.6rem;
}

.step-description {
    color: var(--gray-text);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    padding-left: 2.5rem;
}

.motivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.motivo-item {
    position: relative;
    background: var(--gray-light);
    border-radius: 1.5rem;
    padding: 1.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 2px solid transparent;
}

.motivo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 44, 255, 0.08), transparent);
    transition: left 0.5s;
}

.motivo-item:hover::before { left: 100%; }

.motivo-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(123, 44, 255, 0.2);
    background: white;
}

.motivo-item.selected {
    background: linear-gradient(135deg, #F3E8FF, #E9D5FF);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(123, 44, 255, 0.2);
}

.motivo-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.motivo-item:hover .motivo-icon {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(123, 44, 255, 0.4);
}

.motivo-icon i { font-size: 2rem; color: white; }

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.motivo-item h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--dark); font-weight: 700; }
.motivo-item p { font-size: 0.75rem; color: var(--gray-text); }

.card-border {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.motivo-item:hover .card-border,
.motivo-item.selected .card-border { width: 100%; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.input-group { margin-bottom: 1.5rem; position: relative; }

.input-group label {
    display: block; font-weight: 600; margin-bottom: 0.5rem;
    color: var(--dark); font-size: 0.8rem; letter-spacing: 0.5px;
}

.input-group label i { color: var(--primary); margin-right: 8px; }
.required { color: #ec4899; }

.input-control {
    width: 100%; padding: 0.9rem 1rem;
    border: 2px solid var(--gray-mid); border-radius: 1rem;
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
    transition: all 0.3s; background: var(--gray-light);
}

.input-control:focus {
    outline: none; border-color: var(--primary); background: white;
    box-shadow: 0 0 0 4px rgba(123, 44, 255, 0.1); transform: translateY(-2px);
}

.input-focus-line {
    position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s; border-radius: 3px;
}

.input-group:focus-within .input-focus-line { width: 100%; }
textarea.input-control { resize: vertical; }

.char-counter {
    text-align: right; font-size: 0.7rem; color: var(--gray-text); margin-top: 0.5rem;
}

.btn-group { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

.btn-primary, .btn-secondary, .btn-success {
    position: relative; padding: 0.9rem 2rem; border-radius: 1rem;
    font-weight: 700; cursor: pointer; font-size: 0.9rem;
    transition: all 0.3s; display: inline-flex; align-items: center;
    gap: 10px; overflow: hidden; border: none;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -8px rgba(123, 44, 255, 0.5); }
.btn-secondary { background: white; border: 2px solid var(--gray-mid); color: var(--gray-text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.1); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-success:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -8px rgba(16, 185, 129, 0.5); }

.btn-ripple {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

.btn-primary:hover .btn-ripple,
.btn-success:hover .btn-ripple { left: 100%; }

.pdf-preview-area {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(123, 44, 255, 0.3);
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #333333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.loading-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 9999;
    justify-content: center; align-items: center;
}

.loading-overlay.active { display: flex; }

.loading-spinner {
    background: linear-gradient(135deg, var(--dark), #1E1B4B);
    padding: 2.5rem; border-radius: 2rem; text-align: center;
    min-width: 300px; border: 1px solid rgba(123, 44, 255, 0.3);
}

.spinner {
    width: 60px; height: 60px; border: 3px solid rgba(123, 44, 255, 0.2);
    border-top-color: var(--primary); border-right-color: var(--secondary);
    border-radius: 50%; margin: 0 auto 1rem; animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.1); margin: 1rem auto; border-radius: 3px; overflow: hidden; }
.loading-progress { width: 0%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); animation: loadingProgress 1.5s ease-in-out infinite; }

@keyframes loadingProgress { 0% { width: 0%; } 50% { width: 100%; } 100% { width: 0%; } }
.loading-spinner p { color: white; font-weight: 500; letter-spacing: 1px; }

.whatsapp-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px);
    z-index: 10000; justify-content: center; align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.whatsapp-modal.active { display: flex; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: linear-gradient(135deg, #1E1B4B, #2D2A5A);
    border-radius: 2rem; max-width: 450px; width: 90%; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(123, 44, 255, 0.3);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.5rem 1rem; position: relative; }
.modal-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #25D366, #128C7E); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 1rem; box-shadow: 0 0 20px rgba(37, 211, 102, 0.4); }
.modal-icon i { font-size: 2.2rem; color: white; }
.modal-header h3 { flex: 1; color: white; font-size: 1.3rem; font-weight: 700; margin: 0; }
.modal-close { background: rgba(255, 255, 255, 0.1); border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: white; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }
.modal-body { padding: 0.5rem 1.5rem 1.5rem; }
.modal-body p { color: rgba(255, 255, 255, 0.9); font-size: 1rem; margin-bottom: 1.5rem; text-align: center; }
.modal-info { background: rgba(255, 255, 255, 0.1); border-radius: 1rem; padding: 0.8rem; display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.15); }
.modal-info i { color: #25D366; font-size: 1.2rem; }
.modal-info span { color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; }
.modal-buttons { display: flex; gap: 1rem; }
.btn-whatsapp { flex: 2; background: linear-gradient(135deg, #25D366, #128C7E); border: none; padding: 0.9rem; border-radius: 1rem; color: white; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -8px rgba(37, 211, 102, 0.4); }
.btn-cancel { flex: 1; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.9rem; border-radius: 1rem; color: rgba(255, 255, 255, 0.7); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-cancel:hover { background: rgba(255, 255, 255, 0.2); color: white; }
.modal-footer { padding: 1rem 1.5rem; background: rgba(0, 0, 0, 0.3); text-align: center; }
.modal-footer small { color: rgba(255, 255, 255, 0.5); font-size: 0.7rem; }

@media (max-width: 768px) {
    .recla-container { padding: 1rem; }
    .logo-header { width: 75px; height: 75px; }
    .logo-ring { width: 85px; height: 85px; }
    .logo-pulse { width: 95px; height: 95px; }
    .gradient-text { font-size: 1.3rem; }
    .progress-steps { padding: 1rem; }
    .step-label { font-size: 0.55rem; }
    .step-num { width: 38px; height: 38px; font-size: 0.8rem; }
    .step-item:not(:last-child)::after { top: 18px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .btn-group { flex-direction: column; }
    .btn-group button { width: 100%; justify-content: center; }
    .recla-form { padding: 1.5rem; }
    .motivos-grid { grid-template-columns: 1fr; }
    .step-description { padding-left: 0; }
    .badge-3d { display: none; }
    .step-title { font-size: 1.2rem; }
    .step-title i { font-size: 1.3rem; }
    .modal-buttons { flex-direction: column; }
    .modal-header { flex-wrap: wrap; }
    .modal-icon { margin-bottom: 0.5rem; }
}

    #producto-otro { margin-top: 0.5rem; }