/* ==============================
   SISTEMA DE DISEÑO
================================ */
:root {
    --brand: #1f6f54;
    --brand-dark: #185a44;
    --brand-soft: #e9f5f1;

    --text-main: #1f2937;
    --text-soft: #6b7280;

    --bg-main: #f3f4f6;
    --bg-card: #ffffff;

    --border: #e5e7eb;

    --success: #16a34a;
    --warning: #facc15;
    --danger: #dc2626;

    --radius: 12px;
}

/* ==============================
   BASE
================================ */
body {
    background: var(--bg-main);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
}

.container {
    max-width: 1100px;
}

/* ====== HEADER RIFA ====== */
.rifa-header {
    background: white;
    border-radius: var(--radius);
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.rifa-header-main h2 {
    font-weight: 700;
    margin-bottom: 6px;
}

.rifa-header-main p {
    color: #666;
    margin-bottom: 18px;
}

.rifa-header-meta {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.meta-label {
    color: #999;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .5px;
}

.meta-value {
    font-weight: 600;
    color: #222;
}

.meta-value.price {
    color: var(--primary);
    font-size: 15px;
}


/* ==============================
   PROGRESO UX
================================ */
.proceso {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 15px;
}

.proceso-step {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: var(--text-soft);
}

.proceso-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ==============================
   BOLETOS
================================ */
.boletos-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,.05);
}

.boletos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 8px;
    margin-top: 20px;
}

/* BOLETO */
.boleto {
    height: 40px;
    line-height: 38px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all .15s ease;
    background: white;
}

.boleto:hover {
    transform: translateY(-2px);
}

/* ESTADOS */
.boleto-disponible {
    color: var(--text-main);
}

.boleto-seleccionado {
    background: var(--brand);
    color: white;
    box-shadow: 0 10px 20px rgba(31,111,84,.35);
}

.boleto-apartado {
    background: var(--warning);
    color: #78350f;
    cursor: not-allowed;
}

.boleto-pagado {
    background: var(--danger);
    color: white;
    cursor: not-allowed;
}

/* ==============================
   RESUMEN FIJO
================================ */
.resumen-compra {
    position: sticky;
    bottom: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 25px rgba(0,0,0,.08);
}

.resumen-compra strong {
    font-size: 18px;
}

.resumen-compra span {
    color: var(--brand);
}

/* ==============================
   BOTONES
================================ */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 18px;
}

.btn-success {
    background: var(--brand);
    border: none;
}

.btn-success:hover {
    background: var(--brand-dark);
}

.btn-primary {
    background: var(--text-main);
    border: none;
}

.btn-primary:hover {
    background: black;
}

/* ==============================
   FORMULARIOS
================================ */
.form-control {
    border-radius: 10px;
    padding: 12px;
}

/* ==============================
   VERIFICADOR
================================ */
.verificador-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,.05);
}

.boleto-box {
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    margin-bottom: 6px;
}

.boleto-box.apartado {
    background: var(--warning);
}

.boleto-box.pagado {
    background: var(--success);
    color: white;
}

/* ==============================
   ALERTAS
================================ */
.alert {
    border-radius: 10px;
    font-size: 1
}




/* ====== ACCESO VERIFICADOR ====== */
.verificador-directo {
    margin-top: 35px;
}

.verificador-box {
    background: white;
    border-radius: var(--radius);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.verificador-box p {
    font-size: 14px;
    color: #666;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}



.boletos-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.tool-box {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.tool-box label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #444;
}


.chip-boleto {
    background: #198754;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip-boleto span {
    cursor: pointer;
    font-weight: bold;
}
