/* =============================================================
   PUBLIC STYLES - Landing, Results, Checkout
   ============================================================= */

:root {
    --public-bg: #0f1629;
    --public-text: #e8edf5;
    --public-muted: #8892b0;
    --public-accent: #2457d6;
    --public-card-bg: #1a2340;
    --public-card-border: #2a3558;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--public-bg); color: var(--public-text); font-family: Inter, "Segoe UI", Arial, sans-serif; }

.public-page { display: flex; flex-direction: column; min-height: 100vh; }

/* Header */
.public-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.public-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: .75rem 1.5rem; gap: 1rem;
}
.public-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 750; letter-spacing: .06em; text-decoration: none; color: #fff;
}
.public-brand .brand-mark {
    display: grid; width: 36px; height: 36px; place-items: center;
    border: 2px solid rgba(255,255,255,.7); border-radius: 10px; font-size: 12px;
}
.public-header .public-brand {
    color: #111827;
}
.public-header .public-brand .brand-mark {
    border-color: rgba(17, 24, 39, 0.2);
}
.public-nav { display: flex; align-items: center; gap: 1.5rem; }
.public-nav-link { color: #4b5563; text-decoration: none; font-size: .9rem; font-weight: 600; transition: color .2s; }
.public-nav-link:hover, .public-nav-link.active { color: #2457d6; }
.menu-toggle { display: none; background: none; border: 0; color: #111827; font-size: 1.5rem; cursor: pointer; }

/* Main */
.public-main { flex: 1; }

/* LANDING THEME - Fondo blanco */
.landing-light {
    --public-text: #111827;
    --public-muted: #6b7280;
    --public-accent: #2457d6;
    --public-card-bg: #f9fafb;
    --public-card-border: #e5e7eb;
    background: #ffffff;
}

.landing-light .prize-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--public-accent);
    letter-spacing: 0.12em;
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(36, 87, 214, 0.2);
    border-radius: 100px;
    background: rgba(36, 87, 214, 0.05);
    text-transform: uppercase;
    line-height: 1;
    align-self: flex-start;
}

.landing-light .prize-title {
    color: var(--public-text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.landing-light .prize-description {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
}

.landing-light .cards-section h2 {
    color: var(--public-text);
}
.landing-light .cards-section .cards-sub {
    color: var(--public-muted);
}
.landing-light .card-item {
    background: linear-gradient(180deg, rgba(36,87,214,.04) 0%, var(--public-card-bg) 50%);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.landing-light .card-item:hover {
    box-shadow: 0 12px 40px rgba(36,87,214,.12);
}
.landing-light .card-item .card-quantity {
    color: var(--public-text);
    text-shadow: none;
}
.landing-light .card-item .card-price {
    color: #fff;
}
.landing-light .card-item .card-unit-price {
    opacity: .55;
}

.landing-light .rules-section h2 {
    color: var(--public-text);
}
.landing-light .rule-item {
    background: var(--public-card-bg);
    border-color: var(--public-card-border);
}
.landing-light .rule-item:hover {
    box-shadow: 0 6px 20px rgba(36,87,214,.08);
}

.landing-light .custom-buy {
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.landing-light .custom-buy-input-group {
    background: #fff;
}
.landing-light .custom-buy-input-group input {
    color: var(--public-text);
    background: transparent;
}
.landing-light .custom-buy-total {
    background: #fff;
}
.landing-light .custom-buy-btn {
    color: var(--public-text);
}

/* SECTION 1 - Hero interactivo (sorteo + contador + nav) */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hero-sorteo-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin: 0;
    color: var(--public-text);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--public-accent);
    letter-spacing: 0.1em;
    padding: 0.6rem 2rem;
    border: 2px solid var(--public-accent);
    border-radius: 100px;
    background: rgba(36, 87, 214, 0.06);
    display: inline-block;
}

.hero-subtagline {
    color: var(--public-muted);
    font-size: 1.15rem;
    margin: 0;
    white-space: nowrap;
}

.hero-prize-number {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--public-accent);
}

/* SECTION 2 - Showcase del premio */
.prize-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.prize-section-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 2rem; border: 0; border-radius: 12px;
    background: var(--public-accent); color: #fff;
    font: inherit; font-size: 1.05rem; font-weight: 700; text-decoration: none;
    transition: background .2s, transform .2s;
}
.hero-cta:hover { background: #173ca3; transform: translateY(-2px); }

/* Prize Navigation */
.prize-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prize-nav-arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: 1px solid var(--public-card-border);
    background: var(--public-card-bg);
    color: var(--public-text);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1;
}
.prize-nav-arrow:hover {
    border-color: var(--public-accent);
    background: rgba(36, 87, 214, 0.1);
    color: var(--public-accent);
}
.prize-nav-arrow svg {
    display: block;
    pointer-events: none;
}

.prize-nav-dots {
    display: flex;
    gap: 0.5rem;
}

.prize-nav-dot {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: 2px solid var(--public-card-border);
    background: transparent;
    color: var(--public-muted);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    -webkit-font-smoothing: antialiased;
}
.prize-nav-dot:hover {
    border-color: var(--public-accent);
    color: var(--public-text);
    box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.15);
    transform: scale(1.06);
}
.prize-nav-dot.active {
    background: var(--public-accent);
    border-color: var(--public-accent);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.25);
    transform: scale(1.06);
}

/* Prize Display (inside hero-right) */
.prize-display {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    transition: opacity 0.3s ease;
}

.prize-info-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prize-title {
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.prize-description {
    margin: 0;
}

.prize-buy-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.prize-main-image {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--public-card-border);
    background: var(--public-card-bg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(.23,1,.32,1), border-color 0.3s;
}
.prize-main-image:hover {
    transform: translateY(-3px);
    border-color: var(--public-accent);
}
.prize-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prize-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--public-accent);
    font-size: 4rem;
}

/* Gallery Slider */
.gallery-section {
    width: 100%;
    margin-top: 0.25rem;
}

.gallery-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.gallery-slider {
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    width: max-content;
    animation: gallery-scroll 35s linear infinite;
}
.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes gallery-scroll {
    to { transform: translateX(calc(-100% / var(--gallery-repeats))); }
}

.gallery-card {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    background: var(--public-card-bg);
    position: relative;
}
.gallery-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--public-accent);
    box-shadow: 0 6px 20px rgba(36, 87, 214, 0.3);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 0;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: background 0.2s;
    z-index: 10;
    line-height: 1;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.15);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 0;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: background 0.2s;
    z-index: 10;
    line-height: 1;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.14);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.lightbox-nav svg,
.lightbox-close svg {
    display: block;
    pointer-events: none;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 88vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: opacity 0.25s ease;
    opacity: 1;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(0,0,0,0.5);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* SECTION 3 - Progress Bar */
.progress-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 2.5rem;
    text-align: center;
}

.progress-inner {
    margin: 0 auto;
}

.progress-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.progress-title .text-accent {
    color: #2457d6;
}

.progress-stats {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.progress-label {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.progress-percent {
    color: #2457d6;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.progress-bar-track {
    width: 100%;
    height: 22px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background-color: #2457d6;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
    position: relative;
    overflow: hidden;
    transition: none;
    animation: progress-stripes 1.2s linear infinite;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.3), 0 0 15px rgba(36, 87, 214, 0.4);
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

.progress-disclaimer {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 1.25rem auto 0;
}

/* SECTION 4 - Premios Relámpago */
.rp-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    text-align: center;
}

.rp-inner {
    margin: 0 auto;
}

.rp-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.rp-sub {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto 2rem;
}

.rp-sub strong {
    color: #111827;
    font-weight: 700;
}

/* Grid for all cards */
.rp-grid {
    display: grid;
    justify-content: center;
    gap: 1.25rem;
    margin: 0 auto;
    width: 100%;
}

.rp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--public-card-border);
    border-radius: 18px;
    transition: transform 0.3s cubic-bezier(.23,1,.32,1), box-shadow 0.3s, border-color 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.rp-card.won {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.rp-card.delivered {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.rp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(36, 87, 214, 0.12);
    border-color: var(--public-accent);
}

.rp-card.won:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.rp-card.delivered:hover {
    border-color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.rp-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.rp-card.won .rp-number,
.rp-card.delivered .rp-number {
    opacity: 0.3;
    text-decoration: line-through;
}

.rp-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--public-text);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* State badges */
.rp-state {
    display: inline-flex;
    padding: 0.3rem 0.9rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 999px;
    text-transform: uppercase;
    color: #fff;
}

.rp-state.won {
    background: #ef4444;
}
.rp-state:empty {
    visibility: hidden;
}

.rp-state.delivered {
    background: #10b981;
}

@keyframes ruleFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reglas del sorteo */
.rules-section {
    max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem;
    text-align: center;
}
.rules-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 900;
    margin: 0 0 2.5rem; letter-spacing: -.03em;
    color: var(--public-text);
}
.rules-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
    text-align: center;
}
.rule-item {
    background: #ffffff;
    border: 1px solid var(--public-card-border);
    border-radius: 24px; padding: 2.5rem 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
    transition: transform 0.4s cubic-bezier(.23,1,.32,1), box-shadow 0.4s, border-color 0.4s;
    animation: ruleFadeIn .5s ease both;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.rule-item:nth-child(1) { animation-delay: .1s; }
.rule-item:nth-child(2) { animation-delay: .25s; }
.rule-item:nth-child(3) { animation-delay: .4s; }
.rule-item:hover {
    border-color: var(--public-accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(36,87,214,.1);
}
.rule-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--public-accent), #1d4ed8); color: #fff;
    font-size: 1.5rem; font-weight: 900; flex-shrink: 0;
    transition: transform .4s cubic-bezier(.23,1,.32,1);
    box-shadow: 0 10px 25px rgba(36,87,214,.3);
}
.rule-item:hover .rule-number {
    transform: scale(1.15) rotate(-5deg);
}
.rule-text {
    margin: 0; font-size: 0.95rem; line-height: 1.7;
    color: var(--public-muted);
}
.rule-content {
    flex: 1;
}
.rule-title {
    margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 800;
    color: var(--public-text);
}

/* Cards de compra */
.cards-section {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem;
}
.cards-section h2 {
    text-align: center; font-size: 2rem; letter-spacing: -.03em; margin: 0 0 .5rem;
    font-weight: 800;
}
.cards-section .cards-sub {
    text-align: center; color: var(--public-muted); margin: 0 0 2.5rem; font-size: 1.05rem;
}

/* Last-numbers banner — últimos números disponibles */
.last-numbers {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border: 2px solid #dc2626;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    text-align: center;
}
.last-numbers-header {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-bottom: .35rem;
}
.last-numbers-header h3 {
    margin: 0; color: #dc2626;
    font-size: 1.35rem; font-weight: 800;
}
.last-numbers-icon { font-size: 1.8rem; line-height: 1; }
.last-numbers-sub {
    color: #991b1b; font-size: .95rem;
    margin: 0 0 1rem;
}

/* Consulta publica de numeros */
.ticket-lookup-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.ticket-lookup-card {
    background: #ffffff;
    border: 2px solid var(--public-card-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin: 0 auto;
    box-shadow: 0 10px 35px rgba(36, 87, 214, 0.06);
}
.ticket-lookup-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    margin-bottom: 2rem;
}
.ticket-lookup-icon {
    font-size: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    width: 72px; height: 72px; border-radius: 50%;
    margin-bottom: .25rem;
    box-shadow: 0 8px 20px rgba(36,87,214,.15);
}
.ticket-lookup-kicker {
    color: var(--public-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(36, 87, 214, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}
.ticket-lookup-copy h2 {
    margin: 0;
    color: var(--public-text);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -.03em;
    font-weight: 900;
}
.ticket-lookup-copy p {
    margin: .5rem 0 0;
    color: var(--public-muted);
    line-height: 1.6;
    font-size: 1rem;
}
.ticket-lookup-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 600px;
    margin: 0 auto;
}
.ticket-lookup-form label {
    color: var(--public-text);
    font-weight: 800;
    font-size: .95rem;
    text-align: left;
}
.ticket-lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
}
.ticket-lookup-row input {
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;
    border: 2px solid var(--public-card-border);
    border-radius: 14px;
    padding: 0 1.25rem;
    color: var(--public-text);
    background: #f8fafc;
    font: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}
.ticket-lookup-row input:focus {
    border-color: var(--public-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 87, 214, .1);
}
.ticket-lookup-row button {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    padding: 0 2rem;
    color: #fff;
    background: var(--public-accent);
    font: inherit;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 8px 20px rgba(36, 87, 214, .25);
}
.ticket-lookup-row button:hover {
    background: #1a45b0;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(36, 87, 214, .35);
}
.ticket-lookup-row button:disabled {
    cursor: wait;
    opacity: .75;
    transform: none;
}
.ticket-lookup-form small {
    color: var(--public-muted);
    text-align: left;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}
.ticket-lookup-result {
    margin-top: 1.25rem;
}
.ticket-lookup-alert {
    border-radius: 14px;
    padding: 1rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 700;
}
.ticket-lookup-alert.error {
    color: #991b1b;
    background: #fff1f2;
    border-color: #fecdd3;
}
.ticket-lookup-alert.empty {
    color: #854d0e;
    background: #fffbeb;
    border-color: #fde68a;
}
.ticket-lookup-alert.loading {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.ticket-lookup-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    border: 1px solid rgba(36, 87, 214, .16);
    border-radius: 14px;
    padding: .9rem 1rem;
    background: #f8fbff;
}
.ticket-lookup-summary strong {
    color: var(--public-text);
    font-size: 1rem;
}
.ticket-lookup-summary span {
    color: var(--public-muted);
    font-size: .9rem;
}
.ticket-orders {
    display: grid;
    gap: 1rem;
}
.ticket-order-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.ticket-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #edf0f5;
    background: #f9fafb;
}
.ticket-order-head span {
    display: block;
    color: var(--public-muted);
    font-size: .82rem;
    font-weight: 800;
}
.ticket-order-head strong {
    display: block;
    margin-top: .2rem;
    color: var(--public-text);
    font-size: 1rem;
}
.ticket-order-meta {
    text-align: right;
}
.ticket-order-meta b {
    display: block;
    margin-top: .2rem;
    color: var(--public-accent);
    font-size: .92rem;
}
.ticket-numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: 1rem;
}
.ticket-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #dbe2ee;
    background: #ffffff;
    color: var(--public-text);
    font-family: "Courier New", monospace;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .06em;
}
.ticket-number.instant {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}
.ticket-star {
    margin-right: .25rem;
    color: #f59e0b;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

/* Ultimos resultados en portada */
.latest-results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.latest-results-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.latest-results-kicker {
    display: block;
    margin-bottom: .35rem;
    color: var(--public-accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.latest-results-head h2 {
    margin: 0;
    color: var(--public-text);
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    letter-spacing: -.035em;
}
.latest-results-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.latest-results-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.1rem;
    border-radius: 12px;
    background: var(--public-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(36, 87, 214, .2);
    transition: transform .18s ease, background .18s ease;
}
.latest-results-button:hover {
    background: #1e49b7;
    transform: translateY(-1px);
}
.latest-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.latest-result-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--public-card-border);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.latest-result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 87, 214, .35);
    box-shadow: 0 12px 24px rgba(36, 87, 214, .08);
}
.latest-result-media {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4ff, #f8fafc);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.latest-result-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-result-placeholder {
    font-size: 1.8rem;
}
.latest-result-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.latest-result-body h3 {
    margin: 0 0 0.2rem;
    color: var(--public-text);
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.latest-result-prize {
    margin: 0 0 0.4rem;
    color: var(--public-accent);
    font-size: .85rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.latest-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--public-muted);
    font-size: 0.8rem;
    font-weight: 600;
}
.meta-dot {
    opacity: 0.5;
}
.latest-result-action {
    color: var(--public-muted);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: color .2s ease, transform .2s ease;
}
.latest-result-card:hover .latest-result-action {
    color: var(--public-accent);
    transform: translateX(3px);
}

/* Countdown card & out of stock cards */
.custom-buy.sold-out-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.lottery-countdown-card.custom-buy {
    max-width: 1200px;
    padding: 2.5rem 2rem;
    border-color: var(--public-accent);
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
}
.lottery-countdown-card .countdown-num {
    font-size: 3.5rem;
}
.countdown-header {
    font-size: 1.1rem; font-weight: 700;
    color: var(--public-accent);
    margin-bottom: 1.25rem;
}
.countdown-timer {
    display: flex; align-items: center; justify-content: center;
    gap: .25rem; margin-bottom: 1rem;
    flex-wrap: wrap;
}
.countdown-block {
    display: flex; flex-direction: column; align-items: center;
    min-width: 80px;
}
.countdown-num {
    font-size: 3rem; font-weight: 900;
    font-family: 'Courier New', monospace;
    color: var(--public-accent);
    line-height: 1.2;
}
.countdown-label {
    font-size: .75rem; font-weight: 600;
    color: var(--public-muted); text-transform: uppercase;
    letter-spacing: .05em;
}
.countdown-sep {
    font-size: 2.5rem; font-weight: 300;
    color: var(--public-muted);
    margin-top: -1.5rem;
}
.countdown-footer {
    margin: 0; font-size: .85rem;
    color: var(--public-muted);
}

@media (max-width: 600px) {
    .lottery-countdown-card.custom-buy {
        padding: 1.5rem 1rem;
    }
    .countdown-timer {
        gap: .15rem;
    }
    .countdown-block {
        min-width: 50px;
    }
    .countdown-num, .lottery-countdown-card .countdown-num {
        font-size: 2rem;
    }
    .countdown-sep {
        font-size: 1.5rem;
        margin-top: -1rem;
    }
    .countdown-header {
        font-size: 0.95rem;
    }
}

.cards-grid {
    display: grid; gap: 1.75rem; justify-content: center;
    grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto;
}
.card-item {
    position: relative; overflow: hidden;
    min-height: 230px;
    padding: 2.5rem 1.5rem 2rem;
    border: 2px solid var(--public-card-border);
    border-top: 3px solid var(--public-accent);
    border-radius: 20px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--public-accent) 8%, transparent) 0%, var(--public-card-bg) 50%);
    text-align: center; text-decoration: none; color: inherit;
    transition: all .3s ease; display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.card-item:hover {
    border-color: var(--public-accent); transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(36,87,214,.2);
}
.card-item .card-quantity {
    font-size: 3.5rem; font-weight: 900; color: #fff; line-height: 1;
    margin-top: .25rem;
    text-shadow: 0 2px 20px rgba(255,255,255,.08);
}
.card-item .card-label {
    font-size: .95rem; color: var(--public-muted); margin-top: .15rem; font-weight: 500;
}
.card-item .card-unit-price {
    font-size: .8rem; color: var(--public-muted); margin-top: .15rem; opacity: .7;
}
.card-item .card-price {
    display: inline-block;
    font-size: 1.25rem; font-weight: 700;
    color: #fff;
    background: var(--public-accent);
    padding: 6px 20px; border-radius: 999px;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(36,87,214,.3);
    transition: transform .2s, box-shadow .2s;
}
.card-item:hover .card-price {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(36,87,214,.45);
}
.card-item .card-badge {
    position: absolute; z-index: 3;
    top: 25px; right: -44px;
    width: 180px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 70%, #dc2626 100%);
    color: #fff; font-size: .66rem; line-height: 1; font-weight: 800;
    transform: rotate(45deg);
    transform-origin: center;
    text-transform: uppercase; letter-spacing: .035em;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(239,68,68,.28);
}
.card-item.card-disabled {
    cursor: not-allowed; pointer-events: none;
    filter: grayscale(.7);
    opacity: .55;
}
.card-item.card-disabled .card-label {
    color: var(--danger); font-weight: 600;
}
.card-item.card-disabled .card-quantity {
    opacity: .3;
}
.card-item.card-disabled::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.2); border-radius: 18px;
}
.card-item.card-disabled::before {
    content: 'AGOTADO';
    position: absolute; z-index: 2;
    top: 18px; right: -32px;
    background: var(--danger);
    color: #fff; font-size: .7rem; font-weight: 700;
    padding: 3px 40px;
    transform: rotate(45deg);
    letter-spacing: .08em;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.custom-buy {
    text-align: left; margin-top: 2.5rem;
    border: 2px solid var(--public-card-border); border-radius: 20px;
    max-width: 1200px; margin-left: auto; margin-right: auto;
    padding: 1.5rem 2.5rem;
    background: #ffffff;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    box-shadow: 0 4px 15px rgba(0,0,0,.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .custom-buy { flex-direction: column; text-align: center; padding: 2rem 1.25rem; gap: 1.5rem; }
    .custom-buy-header { flex-direction: column; text-align: center; justify-content: center; gap: 0.75rem; min-width: 100%; }
    .custom-buy-form { width: 100%; flex-direction: column; justify-content: center; align-items: center; gap: 1.25rem; }
    .custom-buy-input-row { flex-direction: row; flex-wrap: wrap; width: 100%; justify-content: center; gap: 1rem; }
    .custom-buy-submit { width: 100%; max-width: 300px; margin: 0 auto; }
}
.custom-buy:hover {
    border-color: var(--public-accent);
    box-shadow: 0 10px 30px rgba(36,87,214,.1);
    transform: translateY(-4px);
}
.custom-buy-header {
    margin-bottom: 0; display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 280px;
}
.custom-buy-icon {
    font-size: 2.2rem; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    width: 60px; height: 60px; border-radius: 16px; margin: 0;
    box-shadow: 0 4px 10px rgba(36,87,214,.1);
}
.custom-buy-header-text h3 {
    margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 800; color: var(--public-text);
}
.custom-buy-header-text p {
    margin: 0; color: var(--public-muted); font-size: 0.95rem; font-weight: 500;
}
.custom-buy-form {
    display: flex; flex-direction: row; gap: 1.5rem; align-items: center; flex: 1; justify-content: flex-end; flex-wrap: wrap;
}
.custom-buy-input-row {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    flex-wrap: wrap;
}
.custom-buy-input-group {
    display: inline-flex; align-items: center;
    border: 2px solid var(--public-card-border);
    border-radius: 14px; overflow: hidden;
    background: #fff;
    transition: border-color .2s;
    height: 52px;
}
.custom-buy-input-group:focus-within {
    border-color: var(--public-accent);
}
.custom-buy-btn {
    width: 44px; height: 100%; border: none;
    background: transparent; color: var(--public-text);
    font-size: 1.3rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    user-select: none;
}
.custom-buy-btn:hover {
    background: var(--public-accent); color: #fff;
}
.custom-buy-input-group input {
    width: 76px; height: 100%; border: none;
    background: transparent; color: var(--public-text);
    font: inherit; font-size: 1.25rem; font-weight: 800; text-align: center;
    outline: none; -moz-appearance: textfield;
}
.custom-buy-input-group input::-webkit-inner-spin-button,
.custom-buy-input-group input::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}
.custom-buy-total {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe); padding: 0 1.25rem;
    border-radius: 14px; min-width: 100px;
    border: 1px solid rgba(36,87,214,.1);
    height: 52px;
}
.custom-buy-total-label {
    font-size: .65rem; color: var(--public-accent); text-transform: uppercase;
    letter-spacing: .08em; font-weight: 700; opacity: 0.8; margin-bottom: -2px;
}
.custom-buy-total-value {
    font-size: 1.35rem; font-weight: 900; color: var(--public-accent); line-height: 1;
}
.custom-buy-submit {
    min-width: 180px; padding: 0 1.5rem; height: 52px; font-size: 1.05rem; font-weight: 800;
    border: none; border-radius: 14px;
    background: var(--public-accent); color: #fff; cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    letter-spacing: .02em;
}
.custom-buy-submit:hover {
    background: #1a45b0; transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(36,87,214,.35);
}
.custom-buy-footer {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: 1rem; font-size: .8rem; color: var(--public-muted);
}
.custom-buy-footer .dot {
    opacity: .4;
}
.custom-buy .soldout-msg {
    color: var(--danger); font-weight: 600; font-size: .9rem; margin-top: .75rem;
}

@media (max-width: 600px) {
    .custom-buy { padding: 1.5rem 1.25rem; }
    .custom-buy-input-row { flex-direction: column; gap: .75rem; }
    .custom-buy-total { flex-direction: row; gap: .5rem; min-width: 0; padding: .4rem 1rem; }
    .custom-buy-total-label { font-size: .8rem; text-transform: none; letter-spacing: 0; }
}
@media (max-width: 480px) {
    .custom-buy { padding: 1.25rem 1rem; margin-top: 1.5rem; }
    .custom-buy-header h3 { font-size: 1.05rem; }
    .custom-buy-btn { width: 40px; height: 44px; font-size: 1.1rem; }
    .custom-buy-input-group input { width: 60px; height: 44px; font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .card-item { min-height: 190px; padding: 1.75rem 1rem; }
    .card-item .card-quantity { font-size: 2.4rem; }
    .card-item .card-price { font-size: 1.1rem; padding: 5px 16px; }
    .card-item .card-badge { top: 21px; right: -43px; width: 166px; height: 24px; font-size: .54rem; }
    .card-item.card-disabled::before { font-size: .6rem; padding: 2px 32px; top: 16px; right: -28px; }
}
@media (max-width: 480px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .card-item { min-height: 155px; padding: 1.25rem .75rem; }
    .card-item .card-quantity { font-size: 1.8rem; }
    .card-item .card-price { font-size: 1rem; padding: 4px 14px; }
    .card-item .card-badge { top: 18px; right: -41px; width: 150px; height: 22px; font-size: .46rem; letter-spacing: .015em; }
    .card-item.card-disabled::before { font-size: .55rem; padding: 2px 28px; top: 14px; right: -24px; }
}

/* Footer */
.public-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 4rem 1.5rem 2rem;
    color: #475569;
}
.public-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-brand-col {
    max-width: 400px;
}
.footer-brand-col .public-brand {
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
}
.footer-desc {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: #64748b;
}
.footer-social-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-heading {
    margin: 0;
    font-size: .9rem;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.footer-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    transition: all .2s ease;
}
.footer-social-links a:hover {
    background: var(--public-accent);
    color: #ffffff;
    transform: translateY(-2px);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
.public-footer-copy {
    margin: 0;
    font-size: .85rem;
    color: #94a3b8;
}
.public-footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.public-footer-links a {
    color: #64748b;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.public-footer-links a:hover {
    color: var(--public-accent);
}

@media (max-width: 768px) {
    .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 2.5rem; }
    .footer-brand-col .public-brand { justify-content: center; }
    .footer-social-col { align-items: center; }
    .footer-social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 1rem; }
    .public-footer-links { justify-content: center; }
}

/* Results page */
.results-page { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.results-page h1 { font-size: 2rem; margin: 0 0 2rem; }
.results-grid { display: grid; gap: 1.5rem; }
.result-card {
    padding: 1.5rem; border: 1px solid var(--public-card-border);
    border-radius: 14px; background: var(--public-card-bg);
}
.result-card h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.result-card .result-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--public-muted); font-size: .85rem; margin-bottom: .75rem; }

/* Payphone Cajita container */
#pp-button {
    min-height: 48px;
    display: flex;
    justify-content: center;
}
#pp-button payphone-payment-box {
    width: 100% !important;
    max-width: 400px;
}

/* Payphone confirmation page */
.payphone-confirm-status {
    text-align: center;
    padding: 3rem 0;
}
.payphone-confirm-status .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Checkout page */
.checkout-page {
    max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem;
    background: #ffffff;
    --public-text: #111827;
    --public-muted: #6b7280;
    --public-accent: #2457d6;
    --public-card-bg: #ffffff;
    --public-card-border: #e5e7eb;
    color: var(--public-text);
}
.checkout-page h1 { font-size: 2rem; margin: 0 0 .5rem; color: var(--public-text); }
.checkout-page .checkout-sub { color: var(--public-muted); margin: 0 0 2rem; }

.checkout-page .checkout-form .field { margin-bottom: 1.25rem; }
.checkout-page .checkout-form .field label {
    display: block; margin-bottom: .4rem; font-size: .85rem;
    font-weight: 600; color: var(--public-text);
}
.checkout-page .checkout-form .field input,
.checkout-page .checkout-form .field select,
.checkout-page .checkout-form .field textarea {
    width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--public-card-border);
    border-radius: 10px; background: var(--public-card-bg); color: var(--public-text);
    font: inherit; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.checkout-page .checkout-form .field input:focus,
.checkout-page .checkout-form .field select:focus,
.checkout-page .checkout-form .field textarea:focus {
    border-color: var(--public-accent); outline: none;
    box-shadow: 0 0 0 3px rgba(36,87,214,.1);
}
.checkout-page .checkout-form .field-error input { border-color: #e74c3c; }
.checkout-page .checkout-form .field-error input:focus {
    border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231, 76, 60, .15);
}
.checkout-page .checkout-form .field .alert {
    margin-top: .5rem;
}
.checkout-page .checkout-form .field small {
    color: var(--public-muted);
}
.checkout-page .checkout-form .checkout-checkboxes label {
    font-size: .9rem; color: var(--public-text);
}

.checkout-page .checkout-summary {
    padding: 1.5rem; border: 1.5px solid var(--public-card-border);
    border-radius: 14px; background: var(--public-card-bg); margin-bottom: 2rem;
}
.checkout-page .checkout-summary .summary-row {
    display: flex; justify-content: space-between; padding: .5rem 0;
    font-size: .95rem; color: var(--public-text);
}
.checkout-page .checkout-summary .summary-total {
    font-size: 1.3rem; font-weight: 700; border-top: 1.5px solid var(--public-card-border);
    padding-top: .75rem; margin-top: .5rem; color: var(--public-text);
}
.checkout-page .checkout-summary h3 {
    color: var(--public-text);
}
.checkout-page .checkout-summary p {
    color: var(--public-muted);
}

/* Payment method cards */
.checkout-page .payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: .5rem;
}
.checkout-page .payment-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.25rem;
    border: 2px solid var(--public-card-border);
    border-radius: 14px;
    background: var(--public-card-bg);
    cursor: pointer;
    transition: border-color .25s, box-shadow .25s, transform .2s;
}
.checkout-page .payment-card:hover {
    border-color: var(--public-accent);
    transform: translateY(-2px);
}
.checkout-page .payment-card.selected {
    border-color: var(--public-accent);
    box-shadow: 0 0 0 3px rgba(36, 87, 214, .2);
}
.checkout-page .payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.checkout-page .payment-card-inner { flex: 1; }
.checkout-page .payment-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(36, 87, 214, .1);
    flex-shrink: 0;
}
.checkout-page .payment-icon svg {
    width: 26px; height: 26px;
    color: var(--public-accent);
}
.checkout-page .payment-name {
    font-size: 1rem; font-weight: 700;
    color: var(--public-text); margin-bottom: .25rem;
}
.checkout-page .payment-desc {
    font-size: .8rem; color: var(--public-muted); line-height: 1.4;
}
.checkout-page .payment-check {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--public-card-border);
    display: grid; place-items: center;
    font-size: .7rem; font-weight: 700;
    color: transparent; flex-shrink: 0;
    margin-top: 2px; transition: all .25s;
}
.checkout-page .payment-card.selected .payment-check {
    background: var(--public-accent);
    border-color: var(--public-accent);
    color: #fff;
}
/* Upload section */
.upload-zone {
    padding: 2.5rem 1.5rem; border: 2px dashed var(--public-card-border);
    border-radius: 14px; text-align: center; cursor: pointer;
    transition: border-color .25s, background .25s; margin-bottom: 1rem;
}
.upload-zone:hover,
.upload-zone-hover {
    border-color: var(--public-accent);
    background: rgba(36, 87, 214, .05);
}
.upload-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.upload-text { margin: 0 0 .3rem; color: var(--public-text); font-weight: 600; font-size: 1rem; }
.upload-hint { margin: 0; color: var(--public-muted); font-size: .8rem; }
.upload-preview {
    position: relative; display: inline-block; width: 100%;
    margin-bottom: 1rem; border-radius: 12px; overflow: hidden;
}
.upload-preview img {
    width: 100%; max-height: 300px; object-fit: contain;
    background: var(--public-card-bg); border-radius: 12px;
    border: 1px solid var(--public-card-border);
}
.upload-preview-remove {
    position: absolute; top: .5rem; right: .5rem;
    width: 32px; height: 32px; border-radius: 50%;
    border: 0; background: rgba(0,0,0,.6); color: #fff;
    font-size: 1rem; cursor: pointer; display: grid; place-items: center;
}
.upload-preview-remove:hover { background: rgba(0,0,0,.8); }
.upload-status {
    padding: 1.25rem; border-radius: 14px; text-align: center;
    font-size: .95rem; line-height: 1.6; margin-bottom: 1rem;
}
.upload-status strong { display: block; margin-bottom: .3rem; font-size: 1.1rem; }
.upload-status p { margin: 0; color: inherit; }
.upload-success {
    background: rgba(19, 138, 98, .12);
    border: 1px solid rgba(19, 138, 98, .3);
    color: #5cd6a0;
}
.upload-error {
    background: rgba(201, 54, 78, .12);
    border: 1px solid rgba(201, 54, 78, .3);
    color: #f08090;
}
.upload-expired {
    background: rgba(201, 170, 54, .1);
    border: 1px solid rgba(201, 170, 54, .25);
    color: #d4c060;
}
.upload-status-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* Required asterisk */
.required {
    color: #e74c3c;
}

/* Custom checkboxes */
.checkbox-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    font-size: .9rem;
    color: var(--public-text);
    position: relative;
    width: 100%;
}
.checkbox-custom input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.checkbox-custom .checkmark {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--public-card-border);
    border-radius: 5px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    position: relative;
}
.checkbox-custom .checkmark::after {
    content: '✓';
    font-size: .7rem;
    font-weight: 800;
    color: transparent;
    transition: color .2s;
}
.checkbox-custom input:checked + .checkmark {
    background: var(--public-accent);
    border-color: var(--public-accent);
}
.checkbox-custom input:checked + .checkmark::after {
    color: #fff;
}
.checkbox-custom input:focus-visible + .checkmark {
    box-shadow: 0 0 0 3px rgba(36,87,214,.15);
}
.checkbox-custom.checkbox-error .checkmark {
    border-color: #e74c3c;
    animation: shake .3s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* PayPhone confirmation page */
.payphone-header {
    text-align: center;
    padding: 2rem 0;
}
.payphone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.payphone-header h1 {
    margin: 0 0 .5rem;
}
.payphone-header p {
    color: var(--public-muted);
}
.payphone-footer {
    text-align: center;
    margin-top: 1.5rem;
}
.payphone-pending {
    text-align: center;
    color: var(--public-muted);
    margin-top: 1rem;
}

/* Urgency countdown section */
.urgency-section {
    text-align: center;
    padding: 1.75rem 1.5rem;
    border: 1.5px solid var(--public-card-border);
    border-radius: 14px;
    background: var(--public-card-bg);
    margin-bottom: 1.5rem;
}
.urgency-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem;
    line-height: 1;
}
.urgency-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--public-text);
    margin: 0 0 1.25rem;
    line-height: 1.4;
}
.urgency-countdown {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: var(--public-accent);
    letter-spacing: .08em;
    line-height: 1;
    margin-bottom: 1rem;
}
.urgency-hint {
    font-size: .85rem;
    color: var(--public-muted);
    margin: 0;
    line-height: 1.4;
}
.urgency-expired .urgency-countdown {
    display: none;
}
.urgency-expired .urgency-text {
    color: #d4c060;
    margin-bottom: .5rem;
}
.urgency-expired {
    border-color: rgba(201, 170, 54, .25);
}

/* Contact WhatsApp section */
.contact-section {
    text-align: center;
    padding: 1.25rem;
    border: 1.5px solid var(--public-card-border);
    border-radius: 14px;
    background: var(--public-card-bg);
    margin-bottom: 1.5rem;
}
.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 1.5rem;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s;
}
.contact-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

/* Bank cards (transferencia) */
.bank-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.bank-card {
    border: 1.5px solid var(--public-card-border);
    border-radius: 14px;
    background: var(--public-card-bg);
    overflow: hidden;
}
.bank-card-header {
    padding: .75rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    background: var(--public-accent);
    color: #fff;
}
.bank-card-body {
    padding: 1rem 1.25rem;
}
.bank-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .4rem 0;
    font-size: .9rem;
    gap: .5rem;
}
.bank-card-row + .bank-card-row {
    border-top: 1px solid var(--public-card-border);
    padding-top: .6rem;
    margin-top: .4rem;
}
.bank-card-label {
    color: var(--public-muted);
    font-size: .8rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.bank-card-value {
    color: var(--public-text);
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.bank-card-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: .05em;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .bank-cards { grid-template-columns: 1fr; }
}

/* Gracias page — fondo blanco */
body.gracias-page {
    background: #ffffff;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .7rem;
    background: var(--public-accent, #2457d6);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    line-height: 1.4;
}
.btn-copy:hover {
    background: #1a3fa0;
}
.btn-copy.copied {
    background: #15803d;
}

/* Responsive - Gracias page */
@media (max-width: 900px) {
    body.gracias-page .checkout-page {
        padding: 2.5rem 1.25rem;
    }
}
@media (max-width: 600px) {
    body.gracias-page .checkout-page {
        padding: 2rem 1rem;
    }
    body.gracias-page .checkout-page .bank-card-header {
        font-size: .9rem;
        padding: .65rem 1rem;
    }
    body.gracias-page .checkout-page .bank-card-body {
        padding: .75rem 1rem;
    }
    body.gracias-page .checkout-page .bank-card-row {
        font-size: .82rem;
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
    }
    body.gracias-page .checkout-page .bank-card-value {
        text-align: left;
        justify-content: flex-start;
    }
    body.gracias-page .checkout-page .bank-card-number {
        font-size: .9rem;
    }
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cookie-consent.is-hiding {
    opacity: 0;
    transition: opacity .18s ease;
}

.cookie-consent-card {
    pointer-events: auto;
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    background: #fff;
    color: #111827;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.05);
    animation: cookieSlideUp .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(253, 230, 138, 0.5);
}

.cookie-consent-copy h2 {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.cookie-consent-copy p {
    margin: 0;
    color: #475569;
    font-size: .9rem;
    line-height: 1.5;
}

.cookie-consent-details {
    margin-top: .75rem;
    color: #334155;
    font-size: .86rem;
}

.cookie-consent-details summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--public-accent);
    user-select: none;
    transition: color 0.2s;
}

.cookie-consent-details summary:hover {
    color: #1d4ed8;
}

.cookie-consent-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .85rem;
}

.cookie-option-box {
    padding: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.cookie-option-header strong {
    font-weight: 800;
    color: #0f172a;
}

.cookie-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.cookie-option-box span:not(.cookie-badge) {
    display: block;
    color: #64748b;
    line-height: 1.4;
    font-size: 0.82rem;
}

.cookie-consent-link {
    display: inline-block;
    margin-top: .75rem;
    color: var(--public-accent);
    font-weight: 800;
    font-size: .86rem;
    text-decoration: none;
}

.cookie-consent-link:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: .65rem;
    align-items: center;
}

.cookie-btn {
    min-height: 44px;
    border-radius: 10px;
    padding: .72rem 1rem;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.cookie-btn:active {
    transform: scale(.98);
}

.cookie-btn-primary {
    background: #2457d6;
    color: #fff;
    box-shadow: 0 10px 24px rgba(36, 87, 214, .22);
}

.cookie-btn-primary:hover {
    background: #1d4ed8;
}

.cookie-btn-secondary {
    background: #f8fafc;
    color: #111827;
    border-color: #dbe3ef;
}

.cookie-btn-secondary:hover {
    border-color: #2457d6;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 3rem 1.5rem 1.5rem; }
    .hero-tagline { font-size: 1.05rem; padding: 0.45rem 1.25rem; letter-spacing: 0.08em; }
    .hero-subtagline { font-size: 1rem; white-space: normal; }
    .hero-prize-number { font-size: 1.2rem; }
    .prize-nav-dot { width: 34px; height: 34px; font-size: 0.8rem; }
    .prize-nav-arrow { width: 34px; height: 34px; font-size: 1.1rem; }
    .hero-cta { justify-content: center; }
    .prize-section { padding: 1rem 1.5rem 3rem; }
    .prize-display { flex-direction: column; align-items: center; text-align: center; }
    .prize-info-side { width: 100%; align-items: center; }
    .prize-buy-btn { align-self: center; }
    .prize-title { font-size: 1.2rem; }
    .prize-main-image { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 360px; }
    .gallery-card { width: 110px; height: 110px; }
    .progress-section { padding: 0.5rem 1.5rem 1.5rem; }
    .progress-title { font-size: 1.6rem; }
    .progress-percent { font-size: 1.3rem; }
    .progress-bar-track { height: 16px; }
    .progress-disclaimer { font-size: 0.82rem; }
    .rp-section { padding: 0.5rem 1.5rem 2rem; }
    .rp-title { font-size: 1.5rem; }
    .rp-sub { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .rp-grid { gap: 0.6rem; grid-template-columns: repeat(2, 1fr) !important; }
    .rp-card { width: auto; padding: 0.85rem 0.6rem; }
    .rp-number { font-size: 1.2rem; }
    .rules-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .rules-section { padding: 0.5rem 1.5rem 2rem; }
    .rules-section h2 { font-size: 1.5rem; }
    .ticket-lookup-section { padding: 0 1.5rem 3rem; }
    .ticket-lookup-card { padding: 1.25rem; }
    .latest-results-section { padding: 0 1.5rem 3rem; }
    .latest-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 0.5rem 1.5rem 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 15px 30px rgba(0,0,0,.08);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }
    .public-nav.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .public-nav .public-nav-link {
        font-size: 1.05rem;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
    }
    .public-nav .public-buy-link {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
        padding: 0.85rem;
        font-size: 1rem;
    }
    .menu-toggle { display: block; }
}

@media (max-width: 600px) {
    .cookie-consent {
        padding: 1rem;
        align-items: center;
    }
    .cookie-consent-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
        text-align: center;
        border-radius: 16px;
    }
    .cookie-consent-icon {
        margin: 0 auto;
    }
    .cookie-consent-options {
        grid-template-columns: 1fr;
    }
    .cookie-consent-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .cookie-btn {
        width: 100%;
    }
    .checkout-page .payment-methods { grid-template-columns: 1fr; }
    .gallery-card { width: 90px; height: 90px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-prev { left: 0.75rem; }
    .lightbox-next { right: 0.75rem; }
    .progress-section { padding: 1rem 1rem 2rem; }
    .progress-title { font-size: 1.35rem; }
    .progress-percent { font-size: 1.1rem; }
    .progress-bar-track { height: 14px; }
    .progress-disclaimer { font-size: 0.78rem; }
    .rp-section { padding: 0.5rem 1rem 1.5rem; }
    .rp-title { font-size: 1.25rem; }
    .rp-sub { font-size: 0.82rem; }
    .rp-grid { gap: 0.5rem; grid-template-columns: 1fr !important; justify-items: center; }
    .rp-card { width: auto; padding: 1rem 1rem; max-width: 280px; }
    .rp-number { font-size: 1.6rem; }
    .rules-grid { grid-template-columns: 1fr; }
    .rules-section { padding: 0.5rem 1rem 2rem; }
    .rules-section h2 { font-size: 1.35rem; }
    .rule-item { padding: 1.25rem 1rem; }
    .ticket-lookup-section { padding: 0 1rem 2.5rem; }
    .ticket-lookup-row { grid-template-columns: 1fr; }
    .ticket-lookup-row button { width: 100%; }
    .ticket-order-head { flex-direction: column; }
    .ticket-order-meta { text-align: left; }
    .ticket-number { min-width: 66px; min-height: 40px; font-size: .95rem; }
    .latest-results-section { padding: 0 1rem 2.5rem; }
    .latest-results-button { width: 100%; box-sizing: border-box; }
    .latest-results-grid { grid-template-columns: 1fr; }
}
