:root {
    --bg:        #202020;
    --bg-dark:   #1a1a1a;
    --bg-card:   #1c1c1c;
    --bg-input:  #2a2a2a;
    --bg-box:    #111;
    --border:    #333;
    --border-2:  #444;
    --text:      #ffffff;
    --muted:     #ccc;
    --muted-2:   #888;
    --accent:    #ffd900;
    --success:   #00ff88;
    --danger:    #ff4444;
    --radius:    15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

/* ====== HEADER (legado, se mantiene por compatibilidad) ====== */
header {
    text-align: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #000, #1c1c1c);
    border-bottom: 2px solid var(--accent);
}

header h1 {
    color: var(--accent);
    font-size: clamp(1.1rem, 4vw, 2rem);
    line-height: 1.2;
}

header p {
    margin-top: 4px;
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    color: var(--muted);
}

/* ====== NAV COMPARTIDO (index / rifa / verificador) ====== */
.topnav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #000, #1c1c1c);
    border-bottom: 2px solid var(--accent);
}

.topnav__inner {
    max-width: 1400px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.topnav__logo {
    color: var(--accent);
    font-weight: bold;
    font-size: clamp(0.95rem, 3vw, 1.3rem);
    text-decoration: none;
}

.topnav__links {
    display: flex;
    gap: 10px;
}

.topnav__link {
    color: var(--muted);
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.82rem, 2.5vw, 0.95rem);
    padding: 8px 18px;
    border-radius: 20px;
    background: #111;
    border: 1px solid var(--border-2);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.topnav__link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.topnav__link.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.topnav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: #111;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.topnav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.topnav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav__toggle.open span:nth-child(2) { opacity: 0; }
.topnav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pwa-banner {
    display: none;
    align-items: center;
    gap: 12px;
    background: #111;
    border-bottom: 2px solid var(--accent);
    padding: 10px 16px;
    position: relative;
    z-index: 60;
}

.pwa-banner.show { display: flex; }

.pwa-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.pwa-banner__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.pwa-banner__text strong {
    font-size: 0.9rem;
    color: #fff;
}

.pwa-banner__text span {
    font-size: 0.78rem;
    color: var(--muted);
}

.pwa-banner__btn {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.pwa-banner__close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

@media (min-width: 601px) {
    .pwa-banner { display: none !important; }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    margin: 18px 0;
    transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ====== HOME: HERO DE BIENVENIDA ====== */
.home-hero {
    padding: clamp(30px, 6vw, 70px) 0 clamp(20px, 4vw, 40px);
}

.home-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: bold;
    font-size: clamp(0.78rem, 2vw, 0.9rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.home-hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 800px;
}

.home-hero p {
    color: var(--muted);
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    max-width: 600px;
    margin-bottom: 26px;
    line-height: 1.6;
}

.home-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: var(--text);
    border: 1px solid var(--border-2);
    padding: 14px 26px;
    border-radius: 25px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 14px 26px;
    border-radius: 25px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-solid:hover { background: var(--success); transform: translateY(-2px); }

/* ====== HOME: LISTADO DE RIFAS ====== */
.rifas-section h2 {
    font-size: clamp(1.3rem, 4vw, 1.9rem);
    margin: 20px 0 22px;
}

.rifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.rifa-card {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.rifa-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.rifa-card__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-box);
}

.rifa-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rifa-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.rifa-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.rifa-card__title {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: bold;
    line-height: 1.3;
}

.rifa-card__desc {
    color: var(--muted-2);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.rifa-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.rifa-card__precio {
    color: var(--accent);
    font-weight: bold;
}

.rifa-card__oportunidades {
    color: var(--muted-2);
    font-size: 0.8rem;
}

.rifa-card .barra {
    height: 18px;
}

.rifa-card .relleno {
    font-size: 0.7rem;
}

.rifa-card__cta {
    margin-top: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #000;
    font-weight: bold;
    padding: 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.rifa-card:hover .rifa-card__cta { background: var(--success); }

.estado-vacio {
    text-align: center;
    color: var(--muted-2);
    padding: 40px 15px;
}

/* ====== VERIFICADOR v2 (resumen + tarjetas de boletos) ====== */
.verif-header {
    text-align: center;
    margin-bottom: 28px;
}

.verif-header__icon {
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 6px;
}

.verif-header h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    letter-spacing: 1px;
}

.verif-header p {
    color: var(--muted);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    max-width: 560px;
    margin: 10px auto 0;
    line-height: 1.6;
}

.verif-search {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.verif-search input,
.verif-search select {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-2);
    background: var(--bg-box);
    color: var(--text);
    font-size: 1rem;
    text-align: center;
    outline: none;
}

.verif-search input:focus,
.verif-search select:focus { border-color: var(--accent); }

.verif-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.verif-search button:hover { background: var(--success); }

.verif-summary {
    max-width: 900px;
    margin: 0 auto 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.verif-summary__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-box);
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.verif-summary__info { flex: 1; min-width: 180px; }

.verif-summary__nombre { font-weight: bold; font-size: 1rem; }

.verif-summary__tel {
    color: var(--muted-2);
    font-size: 0.85rem;
    margin-top: 2px;
}

.verif-summary__count {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
}

.verif-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.verif-card {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.verif-card__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-box);
}

.verif-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.verif-card__codigo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 8px;
}

.verif-card__fecha {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    color: var(--muted);
    font-size: 0.7rem;
    padding: 3px 9px;
    border-radius: 8px;
}

.verif-card__body {
    padding: 14px 16px 16px;
}

.verif-card__estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.verif-card__estado-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
}

.verif-card__estado-dot.en_revision { background: var(--accent); }
.verif-card__estado-dot.available   { background: var(--muted-2); }

.verif-card__titulo {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.verif-card__numeros-label {
    font-size: 0.72rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.verif-card__chip {
    display: inline-block;
    background: var(--bg-box);
    border: 1px solid var(--border-2);
    color: var(--accent);
    font-family: monospace;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.verif-card__propietario {
    font-size: 0.78rem;
    color: var(--muted-2);
}

/* ====== CONTENEDOR GENERAL ====== */
.main-container {
    max-width: 1400px;
    margin: auto;
    padding: 20px 15px;
}

/* ====== HERO ====== */
.hero {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    background: var(--bg-dark);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.imagen {
    flex: 1;
    min-width: 260px;
    max-width: 500px;
}

.imagen img {
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    display: block;
}

.info {
    flex: 1;
    min-width: 260px;
    max-width: 500px;
    text-align: center;
}

.info h2 {
    color: var(--accent);
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    margin-bottom: 10px;
}

.info p {
    color: var(--muted);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.5;
}

.precio {
    margin: 15px 0;
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: var(--success);
    font-weight: bold;
}

.contador {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--accent);
    background: #000;
    padding: 8px 20px;
    border-radius: 8px;
    display: inline-block;
    font-family: monospace;
    border: 1px solid var(--border-2);
    letter-spacing: 2px;
}

/* ====== BARRA DE PROGRESO ====== */
.progreso-rifa {
    width: 100%;
    margin: 0 0 30px 0;
}

.barra {
    width: 100%;
    height: 28px;
    background: #333;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-2);
}

.relleno {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--success), #00cc6a);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #000;
    font-size: 0.85rem;
    transition: width 0.8s ease;
    min-width: 50px;
}

#texto-progreso {
    text-align: center;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 0.85rem;
}

/* ====== TARJETA DE COMPRA ====== */
.checkout-card {
    background: var(--bg-card);
    max-width: 600px;
    margin: 0 auto 40px auto;
    padding: 30px 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.checkout-card h3 {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--text);
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 1px;
}

.sub-label {
    font-size: clamp(0.78rem, 2vw, 0.85rem);
    color: var(--muted-2);
    text-align: center;
    margin-bottom: 15px;
}

.divider {
    border: 0;
    border-top: 1px solid #2e2e2e;
    margin: 25px 0;
}

/* ====== CONTROL DE BOLETOS ====== */
.control-boletos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 10px;
}

#btn-restar,
#btn-sumar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    background-color: var(--accent);
    color: #000;
    font-weight: bold;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
    touch-action: manipulation;
}

#btn-restar:hover,
#btn-sumar:hover {
    background-color: var(--success);
    transform: scale(1.08);
}

#btn-restar:active,
#btn-sumar:active {
    transform: scale(0.95);
}

#cantidad {
    font-size: clamp(2rem, 6vw, 2.6rem);
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    color: var(--text);
}

.label-cantidad {
    font-size: 11px;
    text-align: center;
    margin-top: 5px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-badge {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: bold;
    color: var(--success);
    margin-top: 15px;
    text-align: center;
}

/* ====== FORMULARIO ====== */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: clamp(0.82rem, 2.5vw, 0.9rem);
    color: #bbb;
    margin-bottom: 6px;
}

.formulario input[type="text"],
.formulario input[type="tel"],
.formulario input[type="email"] {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    color: var(--text);
    font-size: clamp(0.95rem, 3vw, 1rem);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.formulario input:focus {
    border-color: var(--accent);
}

.formulario input.campo-error {
    border-color: var(--danger) !important;
}

.phone-block {
    display: flex;
    gap: 10px;
}

/* ====== MÉTODOS DE PAGO ====== */
.metodos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.metodo-item {
    background: var(--bg-input);
    border: 2px solid var(--border-2);
    padding: 13px 5px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(0.78rem, 2.5vw, 0.9rem);
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    touch-action: manipulation;
}

.metodo-item:hover {
    border-color: var(--accent);
}

.metodo-item.active {
    border-color: var(--accent);
    background: rgba(255, 217, 0, 0.1);
    color: var(--accent);
}

/* ====== CAJAS DE BANCO ====== */
.detalles-banco-box {
    background: var(--bg-box);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: opacity 0.3s;
}

.detalles-banco-box.oculto {
    display: none;
}

.banco-name {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--text);
}

.banco-cuenta {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--success);
    margin-bottom: 4px;
}

.banco-titular {
    font-size: clamp(0.78rem, 2vw, 0.85rem);
    color: var(--muted-2);
    margin-top: 2px;
}

.resumen-flotante {
    display: inline-block;
    background: var(--bg-input);
    color: var(--accent);
    padding: 6px 15px;
    border-radius: 15px;
    font-size: clamp(0.8rem, 2.5vw, 0.88rem);
    margin-top: 12px;
    font-weight: bold;
    border: 1px solid var(--border-2);
}

/* ====== COMPROBANTE ====== */
.upload-zone {
    border: 2px dashed #555;
    background: #222;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover {
    border-color: var(--success);
    background: #1a2a1a;
}

.upload-zone.archivo-ok {
    border-color: var(--success);
    background: #0d1a0d;
}

.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.upload-icon {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
}

/* ====== TÉRMINOS ====== */
.terminos-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: var(--muted);
    flex-wrap: wrap;
    text-align: center;
}

.terminos-container input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* ====== BOTÓN CONFIRMAR ====== */
.btn-confirmar {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 25px;
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 1px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-confirmar:hover {
    background: var(--success);
    transform: translateY(-2px);
}

.btn-confirmar:active {
    transform: translateY(0);
}

.btn-confirmar:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* ====== MENSAJE DE ESTADO ====== */
.mensaje-form {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    font-weight: bold;
    white-space: pre-line;
    line-height: 1.6;
}

.mensaje-form.oculto { display: none; }

.mensaje-form.error {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #ff6666;
}

.mensaje-form.exito {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid var(--success);
    color: var(--success);
}

/* ====== FAQ ====== */
.faq-section { margin-top: 10px; }

.faq-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: clamp(1.2rem, 4vw, 1.7rem);
}

.faq {
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.faq-item strong {
    color: var(--text);
    font-size: clamp(0.88rem, 2.5vw, 0.98rem);
}

.faq-item p {
    margin-top: 6px;
    color: #aaa;
    font-size: clamp(0.85rem, 2.5vw, 0.92rem);
    line-height: 1.5;
}

/* ====== FOOTER ====== */
footer {
    background: #000;
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
    border-top: 1px solid #222;
}

footer h3 {
    color: var(--accent);
    font-size: clamp(1rem, 3vw, 1.3rem);
}

footer p {
    color: #aaa;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    margin-top: 6px;
}

/* ============================================================
   RESPONSIVE — MÓVIL PEQUEÑO (hasta 400px)
   ============================================================ */
@media (max-width: 600px) {
    .topnav__inner { position: relative; }

    .topnav__toggle { display: flex; }

    .topnav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 8px;
        background: #111;
        padding: 12px 20px 18px;
        border-bottom: 2px solid var(--accent);
    }

    .topnav__links.open { display: flex; }

    .topnav__link { text-align: center; }
}

@media (max-width: 400px) {
    .main-container { padding: 12px 10px; }

    .hero { padding: 14px; gap: 16px; }

    .checkout-card { padding: 18px 12px; }

    .metodos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .metodo-item {
        font-size: 0.72rem;
        padding: 10px 3px;
    }

    #btn-restar, #btn-sumar {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .control-boletos { gap: 18px; }
}

/* ============================================================
   RESPONSIVE — MÓVIL (401px – 600px)
   ============================================================ */
@media (min-width: 401px) and (max-width: 600px) {
    .checkout-card { padding: 22px 16px; }

    .metodos-grid { gap: 8px; }

    .hero { padding: 18px; gap: 20px; }
}

/* ============================================================
   RESPONSIVE — TABLET (601px – 900px)
   ============================================================ */
@media (min-width: 601px) and (max-width: 900px) {
    .main-container { padding: 20px 20px; }

    .hero {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }

    .imagen { max-width: 320px; }

    .checkout-card {
        max-width: 520px;
        padding: 28px 22px;
    }

    .metodos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE — DESKTOP (901px – 1400px)
   ============================================================ */
@media (min-width: 901px) and (max-width: 1400px) {
    .main-container { padding: 28px 30px; }

    .hero { gap: 40px; padding: 35px; }

    .imagen { max-width: 480px; }

    .checkout-card {
        max-width: 580px;
        padding: 35px 30px;
    }
}

/* ============================================================
   RESPONSIVE — TV / PANTALLA GRANDE (1401px+)
   ============================================================ */
@media (min-width: 1401px) {
    .main-container {
        max-width: 1600px;
        padding: 40px 60px;
    }

    .hero {
        gap: 60px;
        padding: 50px;
    }

    .imagen { max-width: 600px; }

    .info { max-width: 600px; }

    .checkout-card {
        max-width: 700px;
        padding: 45px 40px;
    }

    header h1 { font-size: 2.5rem; }
    header p  { font-size: 1.1rem; }

    .info h2  { font-size: 3rem; }
    .precio   { font-size: 2.4rem; }

    .faq { max-width: 900px; }
    .faq-item strong { font-size: 1.1rem; }
    .faq-item p      { font-size: 1rem; }

    #btn-restar, #btn-sumar {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .btn-confirmar { font-size: 1.3rem; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
