* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0D1B2A;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.98), rgba(27, 40, 56, 0.95));
    padding: 12px 0;
    border-bottom: 3px solid #E53935;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.highlight {
    color: #E53935;
}

/* ===== HERO ===== */
.hero {
    padding: 50px 0 60px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
}

/* ===== PREMIO CARD ===== */
.premio-card {
    background: linear-gradient(145deg, rgba(27, 40, 56, 0.7), rgba(13, 27, 42, 0.9));
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(229, 57, 53, 0.25);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.premio-card:hover {
    border-color: rgba(229, 57, 53, 0.6);
    box-shadow: 0 0 40px rgba(229, 57, 53, 0.1);
    transform: translateY(-5px);
}

.premio-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E53935, #c62828);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(229, 57, 53, 0.2); }
}

.premio-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(229, 57, 53, 0.3);
}

.premio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premio-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.premio-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.premio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 500px) {
    .premio-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.premio-stat-periodo {
    display: none;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
    background: rgba(76, 175, 80, 0.08) !important;
    animation: fadeIn 0.5s ease;
}

.premio-stat-periodo .value {
    font-weight: 800;
}

.premio-stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 8px;
}

.premio-stat .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.premio-stat .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #E53935;
}

/* ===== PARTICIPAR FORM ===== */
.participar-form {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.participar-form h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #E53935;
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.15);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-group button {
    padding: 16px 30px;
    background: linear-gradient(135deg, #E53935, #c62828);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.3);
}

.input-group button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.3rem;
}

.mensaje-resultado {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    display: none;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

.mensaje-resultado.show {
    display: block;
}

.mensaje-resultado.loading {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mensaje-resultado.loading::before {
    font-family: 'Material Symbols Outlined';
    content: 'progress_activity';
    margin-right: 10px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.mensaje-resultado.error {
    display: block;
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ff8a80;
}

.mensaje-resultado.success {
    display: block;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #69f0ae;
}

.mensaje-resultado.info {
    display: block;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #82b1ff;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #1B2838, #0D1B2A);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    border: 2px solid rgba(229, 57, 53, 0.3);
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    text-align: center;
}

.modal-body .result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.modal-body .result-premio {
    font-size: 1.4rem;
    font-weight: 700;
    color: #E53935;
    margin: 15px 0;
}

.modal-body .btn-modal {
    margin-top: 20px;
    padding: 12px 35px;
    background: linear-gradient(135deg, #E53935, #c62828);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.modal-body .btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.98), rgba(27, 40, 56, 0.95));
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-slogan {
    font-size: 1rem !important;
    font-weight: 700;
    color: rgba(229, 57, 53, 0.5) !important;
    margin-top: 5px;
}

/* ===== CONFETTI CANVAS ===== */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ===== LOADING ===== */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0D1B2A;
}

::-webkit-scrollbar-thumb {
    background: rgba(229, 57, 53, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 57, 53, 0.5);
}

/* ===== DISTRIBUIDOR BADGE ===== */
.distribuidor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 57, 53, 0.15);
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #fff;
}
