/* Reset simple */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #FFFFFF; /* siempre blanco */
    color: #333;
    line-height: 1.4;
    box-sizing: border-box; /* aplicar box-sizing global */
}

/* Reduce margen entre título y la siguiente sección */
.section.single-col h1 {
    margin-bottom: 16px; /* antes podría estar en 40px implícito */
}


/* Contenedor */
.container {
    width: 92%;
    max-width: 900px;
    margin: auto;
}

/* Header (solo 1 columna) */
.header {
    padding: 20px 0;
    text-align: center;
}

.logo img {
    max-width: 100%;
    height: auto; /* permite escalado proporcional */
    display: block;
}

/* Secciones */
.section {
    margin: 40px 0;
    text-align: center;
}

/* Imágenes de sección */
.section img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-top: 16px;
    display: block;
}

/* Secciones con 2 columnas (móvil por defecto) */
.section-row,
.section-bg-naranja,
.section.single-col {
    padding: 20px 16px; /* top/bottom reducido de 40px a 20px */
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    border-radius: 12px;
    box-sizing: border-box;
}


.text-col, .text-col40 {
    width: 60%;
}

.image-col, .image-col60 {
    width: 40%;
}

.image-col img,
.image-col60 img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* Sección con fondo naranja */
.section-bg-naranja {
    background: #f0e4dc;
}

/* Productos */
.products h2 {
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
    display: block;
}

.product-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.product-quantity button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background-color: #ddd;
    font-weight: bold;
    cursor: pointer;
}

.product-quantity input {
    width: 50px;
    text-align: center;
    font-size: 16px;
    padding: 4px;
}

.product-price {
    font-weight: bold;
    margin-top: 8px;
}

/* Opciones Delivery */
.delivery-options {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.delivery-options input {
    margin-right: 6px;
}

/* Resumen pedido */
#pedido {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    min-height: 60px;
    font-weight: bold;
    white-space: pre-line; /* mantiene saltos de línea */
    user-select: text;      /* permite copiar, pero no editar */
}


/* Botón WhatsApp compacto */

#whatsapp-button.disabled {
    opacity: 0.5;
    pointer-events: none; /* no se puede hacer clic */
    cursor: not-allowed;
}


#whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    margin: 20px auto 40px auto;
    font-size: 16px;
    gap: 8px;
    max-width: 300px; /* limita el ancho del botón */
    box-sizing: border-box;
}

#whatsapp-button img {
    height: 24px;
    width: auto;
    display: block;
}

/* Texto aclaratorio debajo de delivery */
.delivery-aclaracion {
    text-align: center;
    font-size: 14px;
    margin-top: 6px;
    font-style: italic;
    color: #555;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 14px;
}

/* Listas dentro de secciones */
.section ul {
    padding-left: 24px;
    margin: 12px 0;
}

/* Media Queries */

/* Móvil muy pequeño */
@media (max-width: 480px) {
    .section-row,
    .section-bg-naranja {
        flex-direction: column;
        text-align: center;
    }
    .text-col, .image-col, .text-col40, .image-col60 {
        width: 100%;
        text-align: left;
    }
}

/* Desktop */
@media (min-width: 900px) {
    .section-row,
    .section-bg-naranja {
        flex-direction: row;
        gap: 40px;
        padding: 50px 0;
    }
    .text-col, .text-col40 {
        width: 60%;
    }
    .image-col, .image-col60 {
        width: 40%;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


