/* ===================== RESET ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================== FONDO GENERAL ===================== */
body {
    background-color: #05F4FF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===================== HEADER (LOGO SUPERIOR) ===================== */
.header-menu {
    background-color: #ffffff;
    padding: 14px 0;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.logo-top {
    max-width: 200px;
    height: auto;
}

/* ===================== MENÚ PRINCIPAL ===================== */
.menu-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 por fila */
    gap: 16px;
    padding: 0 16px 30px;
}

.menu-card {
    display: block;
    text-decoration: none;
    color: #000;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card img{
    width: 100%;
    border-radius: 16px;
    margin-bottom: 10px;
}

.menu-card p {
    font-size: 14px;
    font-weight: 600;
}

.menu-card:active {
    transform: scale(0.97);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ===================== SUBMENÚ PRODUCTOS ===================== */
.productos{
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* SIEMPRE 2 POR FILA */
    gap: 16px;
    padding: 0 16px 30px;
}

/* ===================== CARD PRODUCTO ===================== */
.producto-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.producto-card:active {
    transform: scale(0.97);
}

.producto-card img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 10px;
}

.producto-card h2 {
    font-size: 16px;
    margin-bottom: 6px;
}

.producto-card p {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.precio {
    font-size: 15px;
    font-weight: bold;
    color: #0a8f8a;
}

/* ===================== MODAL PRODUCTO ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.modal-overlay.activo {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #ffffff;
    border-radius: 22px;
    padding: 16px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    transform: scale(0.85);
    transition: transform 0.3s ease;
}

.modal-overlay.activo .modal-card {
    transform: scale(1);
}

.modal-card img {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 12px;
}

.modal-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.modal-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.modal-card span {
    font-size: 16px;
    font-weight: bold;
    color: #0a8f8a;
}

/* ===================== FOOTER ===================== */
.footer {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer img {
    max-width: 75%;
    opacity: 0.9;
}

/* ===================== PANTALLAS GRANDES ===================== */
@media (min-width: 768px) {
    .menu-container,
    .productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================== BOTÓN REGRESAR MODAL ===================== */
.btn-regresar {
    margin-top: 14px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 14px;
    background-color: #05F4FF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}
/* ===================== Botón Regresar ===================== */
.btn-regresar:hover {
    background-color: #00dbe6;
}

.btn-regresar:active {
    transform: scale(0.97);
}

/* ===================== BANNER VIDEO ===================== */
.video-banner {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
    flex-shrink: 0;
} 

.menu-card img,
.video-banner {
    width: 100%;
}
/* ===================== BotonWhatsapp ===================== */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Recuadro amarillo suave */
.whatsapp-note {
    background-color: #FFF3CD;
    color: #664D03;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-align: center;
    max-width: 80px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Botón WhatsApp flotante */
.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.9);
}

/* ===================== BotonWhatsapp ===================== */
/* Estado normal */
.whatsapp-container {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

/* Estado oculto cuando el modal está activo */
.whatsapp-container.oculto {
    opacity: 0;
    pointer-events: none; /* evita clicks mientras está oculto */
}
