/* 1. ESTILOS GENERALES Y RESET */
body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    background: #f0f2f5; 
    margin: 0; 
    padding: 20px; 
    color: #333; 
}

/* 2. ENCABEZADO (Header) */
.header { 
    text-align: center; 
    padding: 40px 20px; 
    background: white; 
    border-radius: 15px; 
    margin-bottom: 30px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}
.header h1 { margin: 0; color: #2c3e50; font-size: 2.5rem; }
.header p { color: #7f8c8d; margin: 10px 0; }
.dolar-box { 
    background: #ff9800; 
    color: white; 
    display: inline-block; 
    padding: 10px 25px; 
    border-radius: 30px; 
    font-weight: bold; 
    margin-top: 15px; 
}

/* 3. MENÚ DE CATEGORÍAS */
.menu-categorias { text-align: center; margin-bottom: 40px; }
.btn-cat { 
    display: inline-block; 
    padding: 10px 22px; 
    margin: 5px; 
    background: white; 
    border-radius: 30px; 
    text-decoration: none; 
    color: #555; 
    font-size: 0.95rem; 
    transition: 0.3s; 
    border: 1px solid #ddd; 
}
.btn-cat:hover, .btn-cat.active { 
    background: #ff9800; 
    color: white; 
    border-color: #ff9800; 
}

/* 4. GRILLA Y CARDS (Lo que ya tenías, mejorado) */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px; 
}

.card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    height: 100%; 
}

.card:hover { transform: translateY(-10px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }

.card-img-container { width: 100%; height: 220px; background: #f8f9fa; }
.card img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.categoria-tag { font-size: 0.7rem; color: #ff9800; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.card h3 { margin: 0 0 12px 0; font-size: 1.25rem; color: #1a1a1a; }
.desc { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 20px; height: 4.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

.price-container { margin-top: auto; }
.precio-ars { font-size: 1.8rem; color: #2e7d32; font-weight: 800; display: block; }
.precio-usd { font-size: 0.9rem; color: #999; }

/* 5. BOTONES DE ACCIÓN */
.card-footer { padding: 20px; background: #fafafa; border-top: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 10px; }
.btn { 
    text-align: center; 
    padding: 12px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: bold; 
    transition: 0.3s; 
}

.btn-wsp { background: #25d366; color: white; border: none; }
.btn-pdf { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* 6. BOTÓN DE DRIVE (Faltante) */
.btn-drive {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}
.btn-drive:hover { background: #1565c0; color: white; }

/* 7. CARRITO FLOTANTE */
.carrito-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #ff9800;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    transition: 0.3s ease;
}
.carrito-flotante:hover { transform: scale(1.1); }

.contador-carrito {
    position: absolute;
    top: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 50%;
    font-weight: bold;
    border: 2px solid white;
}

/* 8. MODAL DEL CARRITO */
.modal-carrito {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none; /* Se activa con JS */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 15px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cerrar-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.item-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.btn-borrar { color: #e74c3c; cursor: pointer; font-size: 1.2rem; margin-left: 10px; }

.controles-qty {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 2px;
}
.controles-qty button {
    background: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.controles-qty span {
    padding: 0 10px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}
