/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

input,
button,
a {
    box-sizing: border-box;
}

/* ===== FOOTER BAR ===== */
.footer-bar {
    width: 100%;
    height: 80px;
    background: #fab816;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.2);
    flex-shrink: 0; /* evita que se achique */
}

.logo-footer {
    height: 60px;
    width: auto;
}

/* ===== BODY ===== */
body {
    font-family: 'Inter', sans-serif;
    background: url('../img/Bodega.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    height: 100vh;        /* ocupa exactamente la pantalla */
    display: flex;
    flex-direction: column;
}
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 35px;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
    overflow: hidden;
    margin: 0 auto;
}

/* ===== LOGO CLUB ===== */
.club-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; /* ajusta según altura real del topbar */
    margin-bottom: 15px;
}

.club-logo img {
    max-width: 220px;
    width: 80%;
    height: auto;
}

/* ===== TITULOS ===== */
h2 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 22px;
    color: #1F2937;
}

.descripcion {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
}

/* ===== CAMPOS ===== */
.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.campo span {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

/* ===== INPUTS ===== */
input {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    font-size: 16px;
    transition: 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* ===== BOTONES ===== */
button {
    width: 100%;
    padding: 14px;
    margin-top: 5px;
    background: #3986c1;
    border: none;
    color: #FFFFFF;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

button:hover {
    background: #162C6A;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.35);
}

/* ===== MENSAJES ===== */
.error {
    color: #dc3545;
    text-align: center;
    margin-bottom: 15px;
}

.separador {
    height: 1px;
    background: #ddd;
    margin: 25px 0;
}

/* ===== ACCIONES SECUNDARIAS ===== */
.acciones-secundarias {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== BOTONES SECUNDARIOS ===== */
.btn-whatsapp {
    display: block;
    text-align: center;
    padding: 12px;
    background: #1F8F4E;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-whatsapp:hover {
    background: #176C3C;
    transform: translateY(-2px);
}

.btn-amarillo {
    display: block;
    text-align: center;
    padding: 12px;
    background: #fab816;
    color: #FFFFFF;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(233, 185, 73, 0.25);
    margin-top: 5px;
}

.btn-amarillo:hover {
    background: #A07403;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 166, 63, 0.35);
}

.btn-rojo {
    display: block;
    text-align: center;
    padding: 12px;
    background: #d52a1d;
    color: #FFFFFF;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(180, 35, 44, 0.25);
    width: 350px;
    margin: 12px auto;
}

.btn-rojo:hover {
    background: #8F1B22;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(143, 27, 34, 0.35);
}

/* ===== BIENVENIDA ===== */
.bienvenida {
    text-align: center;
    margin-bottom: 25px;
}

.saludo {
    display: block;
    font-size: 14px;
    color: #6B7280;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nombre {
    margin: 5px 0 0 0;
    font-size: 26px;
    font-weight: 800;
    color: #1F2937;
}

/* ===== CARD DE PUNTOS ===== */
.card-puntos {
    background: linear-gradient(135deg, #3986c1, #1E3A8A);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.35);
}

.label-puntos {
    display: block;
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.puntos-grandes {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ===== PREMIOS ===== */
.lista-premios {
    margin-top: 20px;
}

.card-premio {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.card-premio:hover {
    transform: translateY(-3px);
}

.premio-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    text-transform: uppercase;
}

.puntos-premio {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #6B7280;
}

.estado {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
}

.estado.ok {
    color: #1F8F4E;
}

.estado.falta {
    color: #d52a1d;
}

/* ===== LOGO LINK ===== */
.logo-link {
    display: inline-block;
}

.logo-link img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-link:hover img {
    transform: scale(1.05);
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container-promos {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 30px;
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}


/* ===== CONTENEDOR GRID (NUEVO) ===== */
.grid-promos {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 15px;
}
.titulo-categoria {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-left: 12px;
    position: relative;
}

/* línea decorativa tipo app moderna */
.titulo-categoria::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    height: 18px;
    width: 4px;
    background: #fab816;
    border-radius: 4px;
}

/* ===== TARJETA PRODUCTO ===== */
.card-producto {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-producto:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* ===== IMAGEN ===== */
.card-producto img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* ===== TITULO ===== */
.card-producto h3 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    min-height: 36px; /* evita que se deformen las cards */
}

/* ===== PRECIO ===== */
.precio {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 800;
    color: #d52a1d;
}

/* ===== MOVIMIENTOS ===== */
.lista-movimientos {
    margin-top: 20px;
}

.card-movimiento {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.card-movimiento:hover {
    transform: translateY(-3px);
}

.movimiento-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fecha {
    font-size: 14px;
    color: #6B7280;
}

.comprobante {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.puntos-mov {
    font-size: 16px;
    font-weight: 700;
}

.puntos-mov.positivo {
    color: #1F8F4E;
}

.puntos-mov.negativo {
    color: #dc3545;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    body {
        height: 100vh;
        overflow-x: hidden;
    }
    
    .main-content {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .container-promos {
        padding: 20px;
    }
    
    .grid-promos {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .titulo-categoria {
        font-size: 18px;
    }
    
    .btn-rojo {
        width: 310px;
    }

}