/* main.css */
/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #000;
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    min-height: 100vh;
}

.hero-section {
    margin: 0 auto;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    text-align: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 32px #000c;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    left: 0; right: 0; bottom: 24px;
    text-align: center;
}

.hero-text h2 {
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 3px 12px #000, 0 0 4px #000;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-title {
    margin-top: 40px;
    font-family: 'Orbitron', Arial, sans-serif;
    color: #ffd900;
    font-size: 2.7rem;
    letter-spacing: 2px;
    font-weight: 900;
    text-shadow: 2px 2px 8px #000, 0 0 8px #ffd90055;
}

.tickets-container {
    margin: 40px auto 0 auto;
    display: flex;
    justify-content: center;
}

.tickets-btn {
    background: #111;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 12px;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 16px 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 16px #0009;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tickets-btn:hover {
    background: #ffd900;
    color: #000;
    border-color: #ffd900;
}

.tickets-count {
    background: #000;
    color: #ffd900;
    padding: 4px 18px;
    border-radius: 8px;
    font-size: 1.2em;
    margin-left: 10px;
    font-family: 'Orbitron', Arial, sans-serif;
    border: 2px solid #ffd900;
}

/* Responsive contenido principal */
@media (max-width: 800px) {
    .hero-section { margin-top: 16px; }
    .hero-image-wrapper { max-width: 99vw; }
    .main-title { font-size: 2rem; }
    .tickets-btn { font-size: 1rem; padding: 12px 16px; }
}
@media (max-width: 500px) {
    .hero-image-wrapper { max-width: 96vw; }
    .main-title { font-size: 1.3rem; }
}
.progreso-bar-wrap {
    width: 100%;
    max-width: 420px;
    margin: 32px auto 0 auto;
    padding: 0 12px;
}
.progreso-bar-title {
    display: flex;
    justify-content: flex-start;
    gap: 9px;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1em;
    margin-bottom: 6px;
}
.progreso-bar-title .progreso-vendidos {
    color: #fff;
    font-weight: bold;
}
.progreso-bar-title .progreso-disponibles {
    color: #ffd900;
    font-weight: bold;
}
.progreso-bar-title .progreso-porcentaje {
    margin-left: 10px;
    color: #ffd900b4;
}
.progreso-bar-bg {
    width: 100%;
    background: #232323;
    border-radius: 9px;
    height: 18px;
    box-shadow: 0 2px 8px #0006;
    overflow: hidden;
}
.progreso-bar-fg {
    background: linear-gradient(90deg,#ffd900 70%,#ffeb3b 100%);
    height: 100%;
    border-radius: 9px 0 0 9px;
    transition: width 0.5s cubic-bezier(.4,1.5,.3,1);
    box-shadow: 0 2px 8px #ffd90066;
}
/* Métodos de pago - Index */
#metodosPagoBox {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    margin-top: 28px;
}

.icono-metodo-pago {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.15s;
}

.icono-metodo-pago img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 9px;
    box-shadow: 0 2px 14px #0006;
    border: 2px solid #ffd90040;
    transition: box-shadow 0.2s, border 0.2s;
}

.icono-metodo-pago:hover img {
    box-shadow: 0 4px 22px #ffd90080;
    border: 2px solid #ffd900;
}

.icono-metodo-pago span {
    color: #ffd900;
    font-size: 1.03em;
    font-family: 'Orbitron', Arial, sans-serif;
    font-weight: 600;
    margin-top: 3px;
}

@media (max-width: 600px) {
    #metodosPagoBox {
        gap: 16px;
    }
    .icono-metodo-pago img {
        width: 46px;
        height: 46px;
        border-radius: 10px;
        padding: 4px;
    }
    .icono-metodo-pago span {
        font-size: 0.93em;
    }
}
#metodosPagoBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.metodos-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.hero-image-slider-wrapper {
    position: relative;
    max-width: 620px;
    margin: 0 auto 24px auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px #0009;
    background: #111;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 320px;
}
.slider-img {
    position: absolute;
    width: 100%;
    height: 320px;
    left: 0; top: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(.5,0,.5,1);
}
.slider-img.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}
.slider-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}
.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: #ffd900ee;
    color: #111;
    border: none;
    border-radius: 50%;
    width: 38px; height: 38px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    opacity: 0.85;
    transition: background .2s, color .2s;
}
.slider-arrow.left { left: 14px; }
.slider-arrow.right { right: 14px; }
.slider-arrow:hover, .slider-arrow:focus {
    background: #fff; color: #ffd900;
}
.slider-dots {
    position: absolute;
    bottom: 18px; left: 0; width: 100%;
    text-align: center;
    z-index: 3;
}
.slider-dot {
    display: inline-block;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #ffd90077;
    margin: 0 4px;
    cursor: pointer;
    border: 2px solid #ffd900cc;
    transition: background .25s;
}
.slider-dot.active { background: #ffd900cc; }
@media (max-width: 700px){
    .slider-container, .slider-img { height: 200px; }
    .hero-image-slider-wrapper { max-width: 98vw; }
}
.numeros-suerte-list {
    margin-top: 18px;
    margin-bottom: 12px;
}
.numeros-suerte-list .premio {
    font-size: 1em;
    color: #fff;
    margin-top: 4px;
}
.top-compradores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.top-comprador-card {
    background: #222;
    border: 2px solid #ffd90055;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    width: 150px; /* tamaño en escritorio */
    box-shadow: 0 2px 8px #0003;
}

.top-comprador-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd90044;
}

.top-comprador-card .nombre {
    color: #fff;
    font-weight: bold;
    margin-top: 8px;
    font-size: 1em;
}

.top-comprador-card .tickets {
    color: #ffd900;
    font-size: 0.9em;
}

/* Móviles */
@media (max-width: 768px) {
    .top-comprador-card {
        width: 45%; /* 2 por fila */
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .top-comprador-card {
        width: 100%; /* 1 por fila */
    }
}
/* ============================= */
/* Estilos Números de la Suerte */
/* ============================= */

.numeros-suerte-list {
    margin-top: 20px;
    text-align: center;
}

.numeros-suerte-list .numeros-suerte-titulo {
    font-weight: bold;
    font-size: 1.3em;
    color: #ffd900;
    margin-bottom: 16px;
    font-family: 'Orbitron', Arial, sans-serif;
}

.numeros-suerte-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.numero-suerte-card {
    background: #222;
    border: 2px solid #ffd90055;
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 10px #0005;
    transition: transform 0.2s, box-shadow 0.2s;
}

.numero-suerte-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px #0007;
}

.numero-suerte-card .numero {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffd900;
    font-family: 'Orbitron', Arial, sans-serif;
}

.numero-suerte-card .premio {
    font-size: 1em;
    margin-top: 6px;
    color: #fff;
}

.numero-suerte-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-top: 10px;
    border: 2px solid #ffd90044;
    object-fit: cover;
}
/* Estilo general de los tickets */
.tickets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.ticket-item {
    background: #222;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0006;
    border: 2px solid #ffd90055;
    min-width: 80px;
    text-align: center;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd900;
    transition: transform 0.15s, box-shadow 0.2s;
}

.ticket-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px #ffd90066;
}

/* Responsive: más columnas en desktop, menos en móvil */
@media (min-width: 768px) {
    .tickets-list {
        max-width: 720px;
        margin: 20px auto;
    }
    .ticket-item {
        flex: 1 1 calc(20% - 12px); /* 5 por fila */
    }
}

@media (max-width: 767px) {
    .ticket-item {
        flex: 1 1 calc(33% - 12px); /* 3 por fila en móviles */
    }
}

@media (max-width: 480px) {
    .ticket-item {
        flex: 1 1 calc(50% - 12px); /* 2 por fila en pantallas muy pequeñas */
    }
}
/* GRID de tickets */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* siempre 4 columnas */
    gap: 12px;
    margin: 20px auto;
    max-width: 800px; /* ancho max */
    justify-items: center;
}

/* Botón de ticket */
.ticket-btn {
    background: #222;
    border: 2px solid #ffd90077;
    border-radius: 10px;
    padding: 14px 0;
    text-align: center;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd900;
    width: 100%;
    max-width: 90px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.ticket-btn:hover {
    background: #ffd90033;
    transform: scale(1.05);
}
.carrito-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    border: 2px solid #ffd900;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 4px 18px #0008;
    width: 260px;
    z-index: 9999;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.carrito-header {
    font-weight: bold;
    color: #ffd900;
    margin-bottom: 8px;
}

.carrito-lista {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.carrito-numero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    border: 1px solid #ffd90055;
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 6px;
}

.carrito-remove {
    background: none;
    border: none;
    color: #f44;
    font-size: 1.1em;
    cursor: pointer;
}

.carrito-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#carritoConfirmar {
    background: #ffd900;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
}

#carrito-flotante {
    position: fixed;
    bottom: 20px;
    left: 50%;                /* Centrado horizontal */
    transform: translateX(-50%);
    width: 280px;
    background: #111;
    border: 2px solid #ffd900;
    border-radius: 12px;
    box-shadow: 0 4px 18px #0009;
    display: none;
    flex-direction: column;
    z-index: 9999;
}

#carrito-flotante.activo {
    display: flex;
}

.carrito-header {
    background: #222;
    color: #ffd900;
    padding: 10px;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
    text-align: center; /* centramos título */
    position: relative;
}

#cerrarCarrito {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #ffd900;
    font-weight: bold;
}

.carrito-lista {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    color: #fff;
    font-size: 0.95em;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    background: #1a1a1a;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ffd90033;
}

.carrito-item .btn-eliminar {
    background: none;
    border: none;
    color: #f44;
    font-size: 1em;
    cursor: pointer;
}

.carrito-footer {
    padding: 10px;
    border-top: 1px solid #ffd90033;
    text-align: center;
}

.btn-pagar {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border: none;
    background: #ffd900;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

/* ----------------------------- */
/*  NUEVOS: METODOS DE PAGO      */
/* ----------------------------- */
.carrito-metodos {
    margin: 10px 0;
    text-align: center;
}

.carrito-metodos .metodos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.carrito-metodos .icono-metodo-pago {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
}

.carrito-metodos .icono-metodo-pago img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    border: 2px solid #ffd90055;
    transition: all 0.2s;
}

.carrito-metodos .icono-metodo-pago img:hover {
    border-color: #ffd900;
    transform: scale(1.1);
}

.carrito-metodos .icono-metodo-pago span {
    font-size: 0.8em;
    color: #ffd900;
    margin-top: 3px;
    font-family: 'Orbitron', sans-serif;
}
.carrito-metodos, .metodos-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

