/* --- ESTILO EL RINCONCITO ARREGLADO --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Arial', sans-serif;
    background-color: #fdf2e9; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header con más presencia */
header {
    background: linear-gradient(180deg, #cc0000 0%, #a30000 100%);
    padding: 20px 10px;
    text-align: center;
    border-bottom: 5px solid #006341;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 { color: #ffffff; font-size: 1.6rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }

.logo-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    background: white;
}

.logo-circle img { width: 100%; height: 100%; object-fit: contain; }

.header-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

#ver-carrito, .btn-contactar-header {
    background-color: #ffffff;
    color: #cc0000;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 0px #ddd;
}

/* Productos */
.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
    flex: 1;
}

.producto {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.producto img { width: 100%; height: 140px; object-fit: cover; }
.producto h3 { font-size: 0.95rem; text-align: center; padding: 10px 5px; color: #006341; }
.producto p { color: #cc0000; font-weight: bold; text-align: center; font-size: 1.2rem; margin-bottom: 10px; }

.producto button {
    background: #006341;
    color: white;
    border: none;
    padding: 12px;
    margin: 0 10px 10px 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Flecha Subir */
#btn-subir {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #006341;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Footer y Tienda */
.info-tienda {
    background: #1a1a1a;
    color: white;
    padding: 30px;
    text-align: center;
    border-top: 5px solid #cc0000;
}

footer { background: #000; color: #888; padding: 20px; text-align: center; font-size: 0.8rem; }

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.contenido-modal {
    background: white;
    width: 90%;
    max-width: 380px;
    padding: 25px;
    border-radius: 20px;
}

.btn-whatsapp-carrito {
    background-color: #25d366;
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 15px;
    cursor: pointer;
}