/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --color-primary: #ff0054;
    --color-dark: #111;
    --color-light: #fff;
    --color-gray: #777;
}

/* ============================================================
   GLOBAL
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(90deg, #ff6a00, #ee0979);
    color: var(--color-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    width: 100%;
    background: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    color: var(--color-primary);
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.btn-login {
    background: var(--color-primary);
    color: white !important;
    padding: 8px 14px;
    border-radius: 6px;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: -300px;
        background: white;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        gap: 15px;
        transition: 0.3s;
    }
    .nav-links.active {
        right: 10px;
    }
    .menu-toggle {
        display: block;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    height: 70vh;
    background: url('https://images.unsplash.com/photo-1587825140708-dfaf72ae4b1f?auto=format&fit=crop&w=1600&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.hero h1 {
    font-size: 42px;
    color: white;
}

.hero p {
    font-size: 18px;
    color: white;
    margin: 10px 0 20px;
}

.btn-cta {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    font-size: 18px;
    text-decoration: none;
}

/* ============================================================
   COMO PARTICIPAR
   ============================================================ */
.como-participar {
    padding: 80px 20px;
    background: white;
    text-align: center;
}

.steps {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 25px;
}

.step {
    background: #fff;
    padding: 20px;
    width: 260px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.1);
}

.step-number {
    font-size: 26px;
    font-weight: bold;
    color: var(--color-primary);
}

/* ============================================================
   SORTEOS HOME
   ============================================================ */
.sorteos {
    padding: 70px 20px;
    text-align: center;
}

.sorteos-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card-sorteo {
    width: 320px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-sorteo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.btn-participar-home {
    display: inline-block;
    padding: 10px 18px;
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    margin: 10px;
}

/* ============================================================
   PARTICIPA Y GANA — DISEÑO FINAL OPTIMIZADO 2025
   ============================================================ */

.participa-y-gana {
    padding: 90px 0 40px;
}

/* GRID */
.participar-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 35px; 
    padding: 20px 10px;
}

/* TARJETA */
.card-participar {
    width: 420px;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    text-align: center;
    padding: 0 0 25px 0;
    transition: transform 0.25s ease;
    position: relative;
}

/* Contenido interno */
.card-participar .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* IMAGEN SIN RECORTES */
.card-participar img {
    width: 100%;
    height: auto;              /* 🔥 Ajuste automático */
    object-fit: contain;       /* 🔥 No recorta */
    display: block;
    pointer-events: none;
}

/* Hover suave */
.card-participar:hover img {
    transform: scale(1.04);
}

/* BOTÓN SIEMPRE CLICKEABLE */
.btn-participar {
    display: block;
    margin: 15px auto 0;
    width: 90%;
    padding: 14px;
    background: #ff0099;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    position: relative;
    z-index: 5;                /* 🔥 Importante */
}

.btn-participar:hover {
    background: #d00080;
    transform: translateY(-2px);
}

/* BORDE NEÓN */
.card-participar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 5px;
    background: linear-gradient(
        45deg,
        #ff0080,
        #ff5f00,
        #ffee00,
        #00ff80,
        #00c8ff,
        #8a00ff,
        #ff0080
    );
    background-size: 400%;
    animation: glowBorder 6s linear infinite;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    z-index: 1;
}

@keyframes glowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* HOVER GENERAL */
.card-participar:hover {
    transform: scale(1.03);
}

/* MODO RESPONSIVO */
@media(max-width: 500px){
    .card-participar {
        width: 95%;
    }

    .card-participar img {
        height: 420px;
    }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 20px;
    background: var(--color-dark);
    color: white;
}


/* ===== BOTONES PRINCIPALES ===== */

.acciones-principales {
    padding: 40px 0;
    background: #ffffff;
    text-align: center;
}

.acciones-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-accion {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Comprar Tickets */
.btn-accion.comprar {
    background: #ff0080;
}

.btn-accion.comprar:hover {
    background: #cc0068;
}

/* Consultar Tickets */
.btn-accion.consultar {
    background: #007bff;
}

.btn-accion.consultar:hover {
    background: #005fcc;
}

@media (max-width: 600px) {
    .btn-accion {
        width: 85%;
        text-align: center;
    }
}

.btn-cta-pink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff0080;
    padding: 18px 30px;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(255, 0, 128, 0.35);
    transition: 0.3s ease;
}

.btn-cta-pink:hover {
    background: #e00072;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 128, 0.5);
}


/* ==========================
   CONTADOR ESTILO PREMIAZOS
   ========================== */

.contador-section {
    background: #00ff2a; /* verde fosfo */
    padding: 50px 20px;
    text-align: center;
}

.contador-titulo {
    font-size: 48px;
    font-weight: 900;
    color: #0043ff;
    margin-bottom: 20px;
}

.contador-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.contador-grid .item {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 35px;
    font-weight: bold;
    color: black;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.contador-grid .item small {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 600;
}

.btn-gran-sorteo {
    background: #000;
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-gran-sorteo:hover {
    background: #333;
}

/* SECCIÓN YAPE */
.yape-section {
    background: #5f1682;
    padding: 70px 0;
    color: white;
}

.yape-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    max-width: 1100px;
    margin: auto;
    flex-wrap: wrap;
}

/* IZQUIERDA */
.yape-left h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
}

.yape-number {
    font-size: 45px;
    font-weight: 900;
    color: #00ffd0;
    margin-top: 15px;
}

/* QR CENTRADO */
.yape-center {
    text-align: center;
}

.yape-qr {
    width: 260px;
    border-radius: 20px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.4);
}

/* BOTÓN CAPTURA */
.yape-btn-captura {
    margin-top: 20px;
    background: #ff7a00;
    border: none;
    padding: 14px 30px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

/* DERECHA */
.yape-right h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
}

/* BOTÓN REGISTRO */
.yape-btn-registrar {
    margin-top: 20px;
    background: #00e4ff;
    border: none;
    padding: 14px 30px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

@media(max-width: 768px){
    .yape-container {
        flex-direction: column;
        text-align: center;
    }
}



/* BLOQUE CELESTE */
.bloque-celeste {
    background: #00C9E9;
    padding: 60px 0;
    margin-top: 80px;
}

.celeste-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.celeste-left h2 {
    font-size: 45px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.celeste-img img {
    width: 290px;
    border-radius: 10px;
}

.celeste-right h2 {
    font-size: 45px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-align: right;
}

.btn-celeste {
    display: inline-block;
    background: #8b00ff;
    color: white;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-celeste:hover {
    background: #6d00cc;
}

/* RESPONSIVE */
@media (max-width: 850px) {
    .celeste-content {
        flex-direction: column;
        text-align: center;
    }

    .celeste-left h2,
    .celeste-right h2 {
        text-align: center;
    }
}

