:root {
    --amarillo: #FFC72C;
    --rojo: #E8383A;
    --azul-oscuro: #0B1B33;
    --fondo: #EEF1F6;
    --verde-disponible: #2ECC71;
    --rojo-vendido: #E74C3C;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--fondo);
    color: var(--azul-oscuro);
}

.topbar {
    background: #000;
    padding: 14px 20px;
}
.topbar-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.btn-outline {
    background: var(--rojo);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.container { max-width: 700px; margin: 0 auto; padding: 24px 20px 80px; }

.hero-author-row { display: flex; align-items: center; gap: 10px; }
.hero-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--amarillo); }
.hero-author { color: #3B6FE0; font-weight: 700; letter-spacing: .5px; }
.hero h1 { font-size: 30px; margin: 6px 0 8px; }
.hero-subtitle { color: #555; margin-bottom: 20px; }

.btn-cta {
    background: var(--amarillo);
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,.15);
}

.btn-info {
    background: transparent;
    border: 2px solid var(--azul-oscuro);
    color: var(--azul-oscuro);
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-left: 10px;
}

.banner-card {
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
}
.banner-card img { width: 100%; display: block; }

.secondary-banner {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
}
.secondary-banner img { width: 100%; display: block; }

.progress-section { margin: 28px 0; }
.progress-bar {
    background: #D8DEE9;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-fill {
    background: #3B6FE0;
    height: 100%;
}
.progress-label { text-align: center; font-weight: 700; color: #3B6FE0; }

.destacados-section h3 { margin-bottom: 14px; }
.destacados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.destacado-card {
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
    font-weight: 700;
    background: var(--amarillo);
}
.destacado-card.vendido { background: #FFD97D; opacity: .65; }
.destacado-card.bloqueado { background: #444; color: #fff; opacity: .85; }
.destacado-card.bloqueado .destacado-estado { color: #ccc; }
.destacado-card.ganador { background: #8E44AD; color: #fff; }
.destacado-card.ganador .destacado-estado { color: #EDD; font-size: 10px; }
.destacado-numero { display: block; font-size: 16px; }
.destacado-estado { display: block; font-size: 11px; color: #333; margin-top: 4px; }

.paquetes-section { margin-top: 32px; }
.paquetes-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.paquete-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.paquete-cantidad {
    background: var(--azul-oscuro);
    color: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 800;
    text-align: center;
    min-width: 80px;
}
.paquete-cantidad span { display: block; font-size: 10px; font-weight: 400; }
.paquete-precio { flex: 1; text-align: center; font-weight: 700; }
.paquete-precio span { display: block; font-size: 11px; font-weight: 400; color: #777; }
.btn-comprar {
    background: var(--amarillo);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.paquete-personalizado { border: 2px dashed var(--azul-oscuro); }

.btn-consulta {
    width: 100%;
    background: var(--azul-oscuro);
    color: var(--amarillo);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
}

.float-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.float-btn.whatsapp { background: #25D366; bottom: 80px; }
.float-btn.instagram { background: radial-gradient(circle at 30% 100%, #fdf497, #fd5949, #d6249f, #285AEB); }

/* Modales */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    z-index: 999;
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-box.modal-dark { background: #111; color: #fff; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-close { cursor: pointer; font-size: 22px; }
.modal-box input {
    width: 100%;
    padding: 12px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}
.quick-buttons { display: flex; gap: 10px; margin: 8px 0; }
.quick-buttons button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--azul-oscuro);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}
.btn-confirmar {
    width: 100%;
    background: var(--rojo);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
}
.error-msg { color: var(--rojo); font-weight: 600; margin-top: 8px; }
#totalPreview { font-weight: 700; margin: 6px 0; }

/* Formularios generales (login, admin) */
.container form input,
.container table input,
.container table select {
    width: 100%;
    padding: 12px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.admin-table th { background: var(--azul-oscuro); color: #fff; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; }
.badge.reservado { background: #F39C12; }
.badge.pagado { background: #2ECC71; }
.badge.vencido, .badge.cancelado { background: #999; }
.admin-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-nav a { color: var(--azul-oscuro); font-weight: 600; text-decoration: none; }
.btn-small { padding: 6px 12px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; background: var(--amarillo); }
