* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
    overflow: hidden;
}

body {
    background: url('../images/FONDO-configurador-Easy-Link.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Background decorations */
.network-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    pointer-events: none;
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.09);
    top: 200px;
    left: 520px;
    animation: float 20s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.09);
    bottom: -200px;
    right: -100px;
    animation: float 25s ease-in-out infinite 2s;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.13);
    top: -50px;
    left: -100px;
}

.glow-4 {
    width: 200px;
    height: 200px;
    background: rgba(16, 185, 129, 0.13);
    bottom: -100px;
    right: -50px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(160, 160, 160, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 48px;
    animation: slideUp 0.8s ease-out;
}

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

/* Logo */
.logo {
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -20px auto 0;
    font-size: 14px;
    font-weight: 600;
    color: #A0A0A0;
    letter-spacing: 2px;
}

/* Title group */
.title-group {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: -40px;
}

.main-title {
    font-size: 48px;
    font-weight: 300;
    color: #D0D0D0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #909090;
    line-height: 1.6;
}

.product-name {
    font-size: 36px;
    font-weight: 700;
    color: #1A1D23;
    letter-spacing: -0.3px;
}

/* Countdown section */
.countdown-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.countdown-label {
    font-size: 14px;
    font-weight: 500;
    color: #A0A0A0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.timer {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timer-value {
    font-size: 56px;
    font-weight: 700;
    color: #D0D0D0;
    font-variant-numeric: tabular-nums;
    min-width: 70px;
    text-align: center;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.timer-value.updating {
    animation: pulseNumber 0.4s ease-out;
}

@keyframes pulseNumber {
    0% {
        transform: scale(1.08) translateY(-2px);
        color: #dcdb00;
    }
    50% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
        color: #D0D0D0;
    }
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(160, 160, 160, 0.2);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #dcdb00;
    border-radius: 2px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(255, 196, 0, 0.6);
}

.timer-label {
    font-size: 12px;
    font-weight: 600;
    color: #909090;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Date info */
.date-info {
    font-size: 14px;
    font-weight: 400;
    color: #909090;
    text-align: center;
}

/* Language selector */
.language-selector {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.language-btn {
    width: 48px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0.6;
    background: #3A3A3A;
    color: #FFFFFF;
}

.language-btn.active {
    opacity: 1;
    background: #FFC400;
    transform: scale(1.1);
}

.language-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Language dropdown */
.language-dropdown {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.dropdown-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(80, 80, 80, 0.8);
    border: 1px solid rgba(160, 160, 160, 0.3);
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dropdown-btn:hover {
    background: rgba(80, 80, 80, 1);
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(160, 160, 160, 0.3);
    border-radius: 8px;
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #D0D0D0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(160, 160, 160, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(160, 160, 160, 0.1);
}

.dropdown-item.active {
    background: rgba(255, 196, 0, 0.2);
    color: #FFC400;
    font-weight: 600;
}

.dropdown-item-flag {
    font-size: 18px;
    margin-right: 8px;
}

/* Success modal */
.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 196, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    min-width: 280px;
    animation: slideInModal 0.4s ease-out;
}

.success-modal.active {
    display: block;
}

.success-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: scaleIn 0.6s ease-out;
    color: #dcdb00;
}

.success-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #dcdb00;
    margin-bottom: 12px;
}

.success-modal-text {
    font-size: 14px;
    color: #D0D0D0;
    line-height: 1.5;
    margin-bottom: 20px;
}

.success-modal-btn {
    background: #dcdb00;
    color: #1d1d1b;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-modal-btn:hover {
    background: #FFD700;
    transform: scale(1.05);
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .container {
        padding: 28px;
        gap: 14px;
        border-radius: 16px;
    }

    .logo {
        width: 70px;
        height: 70px;
        border-radius: 14px;
        font-size: 10px;
        letter-spacing: 1px;
        margin: 0 auto 20px !important;
    }

    .main-title {
        font-size: 28px;
        letter-spacing: -0.3px;
        line-height: 1;
    }

    .subtitle {
        font-size: 12px;
        line-height: 1.3;
    }

    .product-name {
        font-size: 18px;
        letter-spacing: -0.2px;
        max-width: 200px !important;
    }

    .countdown-label {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .timer {
        gap: 16px;
    }

    .timer-value {
        font-size: 32px;
        min-width: 40px;
    }

    .timer-label {
        font-size: 9px;
    }

    .date-info {
        font-size: 10px;
        margin: 0;
    }

    .language-btn {
        width: 40px;
        height: 30px;
        font-size: 16px;
    }

    .glow-1 { width: 250px; height: 250px; top: 150px; left: 50%; }
    .glow-2 { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    .container {
        padding: 24px;
        gap: 12px;
    }

    .logo {
        margin: 0 auto 20px !important;
    }

    .main-title {
        font-size: 24px;
        line-height: 1;
    }

    .subtitle {
        font-size: 11px;
    }

    .product-name {
        font-size: 16px;
        max-width: 180px !important;
    }

    .timer {
        gap: 14px;
    }

    .timer-value {
        font-size: 28px;
        min-width: 35px;
    }

    .language-btn {
        width: 32px;
        height: 24px;
        font-size: 12px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
