/* ============================================================
   1. VARIABLES Y ESTILOS BASE
   ============================================================ */
:root {
    --terracota: #a04000;
    --naranja-claro: #e67e22;
    --crema-fondo: #fdf5e6;
    --marron-texto: #4a2c2a;
    --verde-exito: #27ae60;
    --verde-whatsapp: #25d366;
    --blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    background-color: var(--crema-fondo);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: var(--marron-texto);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   2. HEADER (Estilo Clásico Centrado)
   ============================================================ */
.main-header { 
    background-color: var(--terracota);
    padding: 20px; 
    border-bottom: 5px solid var(--naranja-claro); 
    display: flex;
    flex-direction: column; /* Apila todo de arriba hacia abajo */
    align-items: center; /* Centra todo horizontalmente */
    text-align: center;
    gap: 10px; /* Da un pequeño respiro entre cada elemento */
}

.logo-container {
    display: flex;
    justify-content: center;
}

.logo-principal { 
    width: 120px; /* Tamaño ajustado para verse bien centrado */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blanco);
}

.tagline-header { 
    font-size: 0.95rem; 
    color: #ffdcae; 
    margin: 5px 0; 
}

#ver-carrito { 
    background-color: var(--verde-exito);
    color: white; 
    border: none; 
    padding: 12px 40px; /* Un poco más ancho, como en tu imagen */
    border-radius: 8px; /* Bordes ligeramente redondeados (no tan circulares) */
    font-weight: bold; 
    text-transform: uppercase; /* Todo en mayúsculas como "CARRITO ( 0 )" */
    cursor: pointer; 
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#ver-carrito:hover {
    background-color: #1e8449;
}
/* ============================================================
   3. CATEGORÍAS / FILTROS
   ============================================================ */
.filtros { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 12px; 
    padding: 20px;
    background: #fcf1de;
    margin-bottom: 20px;
}

.btn-filtro { 
    background: var(--blanco); 
    color: var(--marron-texto); 
    border: 1px solid #ddd;
    padding: 10px 20px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 600;
    transition: 0.3s;
}

.btn-filtro.activo { 
    background: var(--naranja-claro); 
    color: white; 
    border-color: var(--naranja-claro);
}

/* ============================================================
   4. TARJETAS DE PRODUCTO
   ============================================================ */
main { flex: 1; } /* Empuja el footer hacia abajo */

.contenedor-productos, .contenedor-combos { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    padding: 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.producto-card, .combo-card { 
    background: var(--blanco); 
    border-radius: 20px; 
    padding: 20px; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
}

.producto-card img, .combo-card img { 
    width: 100%; 
    height: 180px; 
    object-fit: contain; 
    background-color: #fafafa; 
    border-radius: 15px; 
    margin-bottom: 15px; 
}

.precio-txt { 
    color: var(--naranja-claro); 
    font-weight: bold; 
    font-size: 1.4rem; 
    margin-bottom: 15px; 
}

.producto-card button, .combo-card button, #btn-confirmar-agregado {
    background: var(--naranja-claro); 
    color: white; 
    border: none; 
    width: 100%; 
    padding: 15px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: bold; 
    text-transform: uppercase; 
}

/* ============================================================
   5. MODAL Y CARRITO
   ============================================================ */
.modal { 
    display: none; 
    position: fixed; 
    top:0; left:0; 
    width:100%; 
    height:100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 2000; 
    justify-content: center; 
    align-items: center; 
}

.modal-content { 
    background: var(--blanco); 
    padding: 30px; 
    border-radius: 25px; 
    width: 90%; 
    max-width: 420px; 
}

#btn-enviar {
    background-color: var(--verde-whatsapp);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ============================================================
   6. FOOTER Y BOTÓN FLOTANTE (CORREGIDO)
   ============================================================ */
.main-footer { 
    background-color: var(--marron-texto); 
    color: white; 
    padding: 40px 20px; 
    margin-top: 50px; 
    border-top: 6px solid var(--naranja-claro);
    text-align: center;
    width: 100%;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.footer-section h4 { 
    color: var(--naranja-claro); 
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* --- LA FLECHA AHORA ES FLOTANTE --- */
#btn-subir { 
    position: fixed;    /* Se queda fija en la pantalla */
    bottom: 20px;       /* Distancia desde abajo */
    right: 20px;        /* Distancia desde la derecha */
    background-color: var(--naranja-claro); 
    color: white; 
    border: none;
    width: 50px; 
    height: 50px; 
    border-radius: 50%; /* Redondita */
    cursor: pointer;
    z-index: 3000;      /* Para que siempre esté encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
    font-size: 1.5rem;
}

#btn-subir:hover {
    background-color: var(--terracota);
    transform: scale(1.1);
}