/* Estilos específicos para la página de premios */
:root {
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}

/* Estilos generales */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Roboto', 'Poppins', sans-serif;
    overflow-x: hidden;
}

.premio-header {
    background: linear-gradient(120deg, #2c3e50, #2980b9);
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.premio-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Monedas flotantes */
.floating-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.coin {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.8;
}

.coin.small {
    width: 30px;
    height: 30px;
}

.coin-gold {
    background: radial-gradient(circle at 30% 30%, #FFD700, #B8860B);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.coin-silver {
    background: radial-gradient(circle at 30% 30%, #E0E0E0, #A0A0A0);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.6);
}

.coin-bronze {
    background: radial-gradient(circle at 30% 30%, #CD7F32, #8B4513);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.6);
}

/* Main y secciones */
.premios-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.premio-section {
    margin-bottom: 4rem;
    opacity: 0; /* Inicialmente invisible, GSAP lo mostrará */
    position: relative;
}

.section-content {
    text-align: center;
    padding: 1rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0; /* GSAP lo revelará */
}

/* Texto con gradiente mejorado */
.gradient-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #2c3e50, #008080, #00a0a0, #00c0c0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-align: center;
    margin-bottom: 2rem;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.reveal-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Icono de introducción con brillos */
.intro-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.intro-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.intro-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    z-index: 2;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.intro-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at center, #FFD700, transparent);
    border-radius: 50%;
    opacity: 0;
}

.s1 { top: 0; left: 50%; animation: sparkle 3s infinite 0.5s; }
.s2 { top: 50%; left: 0; animation: sparkle 3s infinite 1s; }
.s3 { top: 50%; right: 0; animation: sparkle 3s infinite 1.5s; }
.s4 { bottom: 0; left: 50%; animation: sparkle 3s infinite 2s; }

@keyframes sparkle {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.animated-text {
    animation: text-glow 2s infinite alternate;
}

@keyframes text-glow {
    from { text-shadow: 0 0 0 rgba(0,128,128,0); }
    to { text-shadow: 0 0 10px rgba(0,128,128,0.5); }
}

.text-center {
    text-align: center;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: var(--primary-color);
}

/* Podium */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 4rem 0;
    gap: 1rem;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(100px);
    opacity: 0;
}

.trophy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transform: scale(0);
    opacity: 0;
    position: relative;
    z-index: 2;
}

.trophy-gold {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
    animation: float-trophy 3s ease-in-out infinite;
}

.trophy-silver {
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.7));
    animation: float-trophy 3s ease-in-out infinite 0.5s;
}

.trophy-bronze {
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.7));
    animation: float-trophy 3s ease-in-out infinite 1s;
}

@keyframes float-trophy {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.podium-platform {
    width: 150px;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gold {
    background: linear-gradient(to bottom, #FFD700, #B8860B);
    height: 200px;
}

.silver {
    background: linear-gradient(to bottom, #E0E0E0, #A0A0A0);
    height: 150px;
}

.bronze {
    background: linear-gradient(to bottom, #CD7F32, #8B4513);
    height: 120px;
}

.podium-platform h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 0;
    font-size: 1.2rem;
}

.podium-platform .prize {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

.other-positions {
    margin: 3rem auto;
    max-width: 700px;
}

.position-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.position-item {
    flex: 1;
    min-width: 180px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.position-item:hover {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.position-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    animation: bounce-subtle 2s infinite ease-in-out;
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.position-item .position {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.position-item .prize {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-top: 0.5rem;
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.badge-container {
    text-align: center;
    margin: 2rem 0;
}

.badge-papeletas {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--secondary-color) 60%, var(--accent-color) 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
    opacity: 0;
    transform: scale(0.8);
}

/* Lottery section */
.lottery-container {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.raffle-visual {
    position: relative;
    height: 200px;
    margin-bottom: 2rem;
}

.tickets-swirl {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1), rgba(0, 160, 160, 0.05));
    border-radius: 50%;
    opacity: 0;
}

.ticket {
    position: absolute;
    font-size: 3rem;
    opacity: 0;
}

.prize-badge {
    text-align: center;
    margin: 2rem 0;
}

.prize-badge span {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 128, 128, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

.lottery-text {
    text-align: center;
    margin-top: 2rem;
}

.lottery-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.premio-list {
    list-style: none;
    text-align: left;
    max-width: 700px;
    margin: 2rem auto;
    padding: 0;
}

.premio-list li {
    background: linear-gradient(90deg, rgba(0, 128, 128, 0.1) 0%, rgba(0, 160, 160, 0.05) 100%);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
}

.premio-list li::before {
    content: "";
    margin-right: 1rem;
}

/* How it works section */
.info-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
}

.card-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateX(30px);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
    flex-shrink: 0;
}

.step-item p {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.call-to-action {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 0;
}

/* Tips section */
.tips-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.tip-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tip-card p {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

/* Conclusion */
#conclusion {
    padding: 3rem 0;
    text-align: center;
}

.conclusion-text {
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--primary-color);
    opacity: 0;
    transform: scale(0.9);
}

.confetti-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .premio-title {
        font-size: 2rem;
    }

    .podium-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "first"
            "second"
            "third";
        align-items: center;
        gap: 2rem;
    }

    #first-place {
        grid-area: first;
        order: 1;
    }

    #second-place {
        grid-area: second;
        order: 2;
    }

    #third-place {
        grid-area: third;
        order: 3;
    }

    .podium-item {
        margin-bottom: 1rem;
    }

    .podium-platform {
        width: 100%;
        max-width: 200px;
        height: auto !important;
        min-height: 100px;
    }

    .position-group {
        flex-direction: column;
    }

    .position-item {
        margin-bottom: 1rem;
    }

    .premio-list li {
        font-size: 1rem;
    }

    .tips-container {
        flex-direction: column;
    }

    .tip-card {
        margin-bottom: 1rem;
    }
}

/* Banner total de premios */
.total-prize-banner {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin: 1.5rem auto;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    animation: pulseGlow 2s infinite ease-in-out;
}

.total-amount {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    }
}

/* Responsive para banner del total */
@media (max-width: 768px) {
    .total-prize-banner {
        padding: 0.8rem 1.5rem;
        margin: 1rem auto;
    }
    
    .total-amount {
        font-size: 1.1rem;
    }
}
