/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F5ECD7; /* Color crema de fondo */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #26160A;
}

/* --- CABECERA Y LOGO APOLÍNEO --- */
.main-header {
    background-color: #32140E; /* Café oscuro */
    padding: 40px 15px;
    text-align: center;
}

.logo-composite {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-top {
    color: #FFFFFF !important;
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: -25px;
    z-index: 2;
    position: relative;
}

.logo-busto {
    width: 285px;
    height: auto;
    z-index: 1;
}

.logo-bottom {
    color: #FFFFFF !important;
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-top: -28px;
    z-index: 2;
    position: relative;
}

.tagline-header {
    color: #E6CCB2;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* --- BOTONES DEL HEADER --- */
.header-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

#ver-carrito, .btn-whatsapp-header {
    background: #E6CCB2;
    color: #32140E;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

#ver-carrito:hover, .btn-whatsapp-header:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

/* --- BANNER PRINCIPAL --- */
.banner-bienvenida {
    padding: 40px 20px;
    text-align: center;
}

.btn-ordenar {
    background: #32140E;
    color: #F5ECD7 !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-ordenar:hover {
    background: #4d261e;
    transform: scale(1.05);
}

/* --- FILTROS DE CATEGORÍAS --- */
.filtros {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px;
    margin-bottom: 10px;
}

.btn-filtro {
    background: white;
    border: 1px solid #32140E;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.btn-filtro.activo {
    background: #32140E;
    color: white;
}

/* --- SECCIÓN DE PRODUCTOS --- */
.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.producto-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
}

.producto-card h3 {
    margin: 15px 0 5px;
    color: #32140E;
    font-size: 1.3rem;
}

.producto-card p {
    font-weight: bold;
    color: #6d4c41;
    font-size: 1.1rem;
}

/* --- BOTÓN AÑADIR (MODERNO) --- */
.producto-card button {
    background-color: #32140E;
    color: #F5ECD7;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.producto-card button:hover {
    background-color: #4d261e;
}

.btn-success {
    background-color: #27ae60 !important;
    color: white !important;
}

/* --- PIE DE PÁGINA (FOOTER) --- */
.footer-info {
    background: #32140E;
    color: #F5ECD7;
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
}

.footer-info h3 {
    margin-bottom: 15px;
    color: #E6CCB2;
}

/* --- BOTÓN SUBIR (CORREGIDO PARA VISIBILIDAD) --- */
#btn-subir {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    border: none;
    
    /* Colores invertidos para que resalte en el footer oscuro */
    background-color: #F5ECD7; /* Crema claro */
    color: #32140E;            /* Flecha café oscuro */
    
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: 0.3s;
}

#btn-subir:hover {
    background-color: #FFFFFF;
    transform: scale(1.1);
}

/* --- MODAL DEL CARRITO --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
}

#btn-enviar {
    background: #25d366; /* Verde WhatsApp */
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
}

#btn-cerrar {
    background: #eee;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
}