/* --- CONFIGURACIONES GENERALES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #00bfff; /* Azul vibrante estilo El Desvío */
    font-family: 'Nunito', sans-serif;
    color: #111;
    padding: 15px;
    padding-bottom: 50px;
}

/* --- ENCABEZADO Y LOGO --- */
header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.titulo-principal {
    background-color: #5ce1e6;
    border: 3px solid #111;
    border-radius: 30px;
    display: inline-block;
    padding: 10px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    color: #111;
    box-shadow: 4px 4px 0 #111;
    letter-spacing: 2px;
}

/* --- NUEVO ESTILO DE CATEGORÍAS DESPLEGABLES --- */
details.categoria-desplegable {
    margin-bottom: 20px;
}

/* Ocultar flechas por defecto de los navegadores */
details.categoria-desplegable summary {
    cursor: pointer;
    list-style: none;
    outline: none;
    -webkit-tap-highlight-color: transparent; 
}
details.categoria-desplegable summary::-webkit-details-marker {
    display: none;
}

/* El diseño del "botón" de la categoría */
.categoria-titulo {
    background-color: #111;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    padding: 12px 25px;
    border-radius: 30px;
    border: 3px solid white;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

/* Pequeño efecto de hundimiento al tocar la pantalla */
.categoria-titulo:active {
    transform: scale(0.98);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* Indicador visual de la flecha */
.categoria-titulo::after {
    content: "▼";
    font-size: 16px;
    background-color: #ffcc00;
    color: #111;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
    transition: transform 0.3s ease; 
}

/* Cuando el menú está abierto, la flecha gira */
details[open] .categoria-titulo::after {
    transform: rotate(-180deg);
}

/* --- ANIMACIÓN Y CONTENEDOR DE PRODUCTOS --- */
.productos-lista {
    padding-top: 15px;
    animation: deslizarAbajo 0.3s ease-in-out;
}

@keyframes deslizarAbajo {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ESTILO DE LOS PRODUCTOS DISPONIBLES --- */
.producto {
    background-color: white;
    border: 3px solid #111;
    border-radius: 40px;
    padding: 10px 15px 10px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 3px 3px 0 #111;
}

.info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 10px;
}

.nombre {
    font-size: 18px;
    font-weight: 700;
}

.desc {
    font-size: 11px;
    color: #555;
    margin-top: 2px;
    line-height: 1.2;
}

.precio {
    background-color: #ffcc00;
    border: 3px solid #111;
    border-radius: 30px;
    padding: 8px 15px;
    font-weight: 800;
    font-size: 17px;
    white-space: nowrap;
}

/* --- ESTILOS PARA PRODUCTOS AGOTADOS --- */
.producto.agotado {
    background-color: #f5f5f5;
    border-color: #999;
    box-shadow: 3px 3px 0 #999;
    opacity: 0.7;
}

.producto.agotado .nombre, 
.producto.agotado .desc {
    color: #666;
    text-decoration: line-through; 
}

.producto.agotado .precio {
    background-color: #555; 
    border-color: #333;
    color: white;
    font-size: 14px; 
}

/* --- LOADER --- */
.loader {
    text-align: center;
    color: white;
    font-size: 20px;
    margin-top: 50px;
}

/* --- FOOTER Y REDES SOCIALES --- */
footer {
    text-align: center;
    margin-top: 60px;
    color: white;
}

.logo-footer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    text-shadow: 2px 2px 0 #006bb3;
    margin-top: 10px;
}

.redes-contacto {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.telefono {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.btn-instagram {
    background-color: #E1306C;
    color: white;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid #111;
    box-shadow: 3px 3px 0 #111;
    display: inline-block;
    transition: transform 0.1s;
}

.btn-instagram:active {
    transform: scale(0.95);
    box-shadow: 1px 1px 0 #111;
}

/* --- FIRMA DEL CREADOR --- */
.creditos-creador {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    color: #e0f7fa;
    opacity: 0.9;
}

.creditos-creador a {
    color: #e0f7fa;
    text-decoration: none;
    font-weight: bold;
}

.creditos-creador a:hover {
    text-decoration: underline;
}
