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

:root {
    --primary: #FF40CC;
    --primary-light: #FF81DD;
    --primary-dark: #D10F9D;
    --accent: #370A69;
    --accent-light: #9054D2;
    --background-1: #000000;
    --background-2: #141E27;
    --text: #ffffff;
    --text-dark: #0D1216;
    --glow: #00c2ff;
    --footer: #150F1C;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-1);
    color: var(--text);
    line-height: 1.4;
    font-size: 16px;
}

.container {
    width: 100%;
    overflow: hidden;
}

.content {
    width: 100%;
    max-width: 996px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Typography */
h1,
h2 {
    font-weight: 800;
    line-height: 1;
}

h1 {
    font-size: 26px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px var(--text-dark);

}

h2 {
    font-size: 18px;
    text-align: center;
    font-weight: 600;
    text-wrap: balance;
}

/* CTA Button */
.cta-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to right, var(--primary-dark), var(--accent));
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    border: var(--primary-dark) 1px solid;
    transition: background 0.3s, box-shadow 0.3s;
    animation: buttonMobilePrimary 2s infinite alternate;
}

.cta-button:hover {
    background: linear-gradient(to right, var(--accent), var(--primary-dark));
    box-shadow: 0 0 15px var(--primary);
}

.arrow {
    width: 8px;
    height: 11px;
    background-image: url(../img/arrow-icon.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cta-button.secondary {
    background: linear-gradient(to right, var(--primary), var(--accent-light));
    color: var(--text-dark);
    font-size: 18px;
    padding: 12px 24px;
    border: solid 1px var(--primary);
}

.cta-button.secondary:hover {
    background: linear-gradient(to right, var(--accent-light), var(--primary));
    box-shadow: 0 0 15px var(--primary);
}

.cta-button.secondary .arrow {
    background-image: url(../img/arrow-icon-dark.svg);
}


/* Hero Section */
.hero {
    background-color: var(--background-1);
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    padding-top: 64px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: row;
}

.hero-text {
    position: relative;
    z-index: 4;
    min-width: 250px;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
}

.hero-content .logo {
    width: 126px;
    height: auto;
}

.hero-content .logo img {
    filter: drop-shadow(0 0 10px var(--text-dark)) drop-shadow(0 0 20px var(--text-dark)) drop-shadow(0 0 20px var(--text-dark));
    -webkit-filter: drop-shadow(0 0 10px var(--text-dark)) drop-shadow(0 0 20px var(--text-dark)) drop-shadow(0 0 20px var(--text-dark));
}

.hero-image {
    position: absolute;
    width: 500px;
    height: 100%;
    top: 0;
    left: 30vw;
    z-index: 1;
    margin: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    object-fit: cover;
    object-position: bottom left;
}

.floating-cards {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.card {
    position: absolute;
    width: 20px;
    height: 30px;
    border-radius: 3px;
    transform: rotate(var(--rotation));
    animation: float 8s infinite ease-in-out;
    animation-delay: var(--delay);
    box-shadow: 0 0 10px rgba(219, 172, 249, 0.5);
    z-index: 3;
}

.bg-variant-1 {
    background: linear-gradient(-55deg, #c09e7a 0%, #a76a93 60%, #c19d65 100%);
}

.bg-variant-2 {
    background: linear-gradient(-55deg, #89d0f8 0%, #404199 60%, #b886cf 100%);
}

.bg-variant-3 {
    background: url(../img/cards-imgs/card-1.jpg);
    background-size: cover;
}

.bg-variant-4 {
    background: url(../img/cards-imgs/card-2.jpg);
    background-size: cover;
}

.bg-variant-5 {
    background: url(../img/cards-imgs/card-3.jpg);
    background-size: cover;
}

.bg-variant-6 {
    background: url(../img/cards-imgs/card-4.jpg);
    background-size: cover;
}







/* Promotions Section */
a.second-cta-section {
    color: white;
    text-decoration: none;
}
.promotions {
    background-color: var(--background-2);
    width: 100%;
}

.promotions .content {
    padding-top: 64px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.promo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.promo-item p {
    font-size: 16px;
    line-height: 1;
    text-wrap: balance;

}

.promo-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px var(--primary));
}

.more-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0
}

.highlight-text {
    color: var(--primary);
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--primary-light), var(--accent-light));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Footer */
footer {
    background-color: var(--footer);
    padding: 40px 16px;
}

.footer-content {
    display: flex;
    flex-direction: column;

}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.age-restriction img {
    width: 28px;
    height: auto;
}

.loteria-provincia img {
    max-width: 128px;
    height: auto;
    ;
}

.advice img {
    width: 155px;
    height: auto;
}

.help img {
    width: 144px;
    height: auto;
}

.linea-jugadores img {
    width: 154px;
    height: auto;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rotation));
    }

    50% {
        transform: translateY(-20px) rotate(calc(var(--rotation) + 10deg));
    }
}

@keyframes buttonMobilePrimary {

    0%,
    100% {
        background-size: 100% 100%;
    }

    50% {
        background-size: 150% 150%;
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 375px) {
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 21px;
    }

    .cta-button {
        font-size: 18px;
    }

    .cta-button.secondary {
        font-size: 16px;
    }

    .hero-image {
        left: 140px;
        top: -50px;
    }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    h1 {
        font-size: 33px;
    }

    h2 {
        font-size: 24px;
    }

    .hero-text {
        width: 50%;
        min-width: 370px;
        max-width: 460px;
    }

    .hero-image {
        left: 55%;
        margin-top: 0;
        width: 50%;
        min-width: 550px;
        max-width: 600px;
    }

    .hero-image img {
        object-position: center left;
    }


    .promo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-logos {
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-help {
        flex-direction: row;
        width: 40%;
        justify-content: flex-end;
        gap: 2rem;
    }

    .help-item {
        max-width: 200px;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 26px;
    }

    .cta-button {
        font-size: 31px;
        padding: 20px 40px;
    }

    .hero-content {
        padding-top: 128px;
        padding-bottom: 128px;
    }

    .hero-content .logo {
        width: 240px;
    }

    .promo-icon {
        width: 128px;
        height: 128px;
    }

    .highlight-text {
        font-size: 40px;
    }

    .footer-logos {
        max-width: 996px;
        gap: 25px;
    }


}