/* Spinner de loading para categorías */
.loading-spinner {
    display: inline-block;
    width: 2.2rem;
    height: 2.2rem;
    border: 4px solid #ffd84d;
    border-top: 4px solid #ff8a00;
    border-radius: 50%;
    animation: spinLoading 0.8s linear infinite;
}

/* Product cards: responsive, equal-height per row.
   Layout: image area with fixed aspect ratio (16:9), content flexible.
*/
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* stretch to the grid row height */
    background: var(--white);
    border-radius: 8px;
    padding: 0.28rem; /* aún más compacto */
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3; /* menos alto para compactar verticalmente */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-color);
    flex: 0 0 auto;
    margin-bottom: 0.35rem;
}

.product-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.45rem 0.6rem; /* reducir padding */
    box-sizing: border-box;
    min-height: 0; /* allow inner scrolling if needed */
    gap: 0.25rem;
}

/* Títulos y descripciones: truncado responsivo
   - móvil: 1 línea
   - >=768px: permitir hasta 2 líneas para mayor legibilidad */
.product-title {
    font-size: 0.96rem;
    line-height: 1.15;
    margin: 0 0 0.15rem 0;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    white-space: normal; /* allow wrapping */
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
}
.product-desc {
    font-size: 0.82rem;
    color: #555;
    margin: 0.15rem 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    /* On larger screens allow title and desc to wrap naturally */
    /* No clamping: permitir que la descripción muestre todo el texto */
    .product-desc {
        -webkit-line-clamp: unset;
        display: block;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .product-info {
        padding: 0.6rem 0.7rem; /* un poco más de espacio en desktop */
    }
}


@keyframes spinLoading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.header-title span {
    display: inline-block;
    animation: waveText 2.2s infinite linear;
}
.header-title span:nth-child(1) { animation-delay: 0s; }
.header-title span:nth-child(2) { animation-delay: 0.08s; }
.header-title span:nth-child(3) { animation-delay: 0.16s; }
.header-title span:nth-child(4) { animation-delay: 0.24s; }
.header-title span:nth-child(5) { animation-delay: 0.32s; }
.header-title span:nth-child(6) { animation-delay: 0.40s; }
.header-title span:nth-child(7) { animation-delay: 0.48s; }
.header-title span:nth-child(8) { animation-delay: 0.56s; }
.header-title span:nth-child(9) { animation-delay: 0.64s; }
.header-title span:nth-child(10) { animation-delay: 0.72s; }
.header-title span:nth-child(11) { animation-delay: 0.80s; }
.header-title span:nth-child(12) { animation-delay: 0.88s; }
.header-title span:nth-child(13) { animation-delay: 0.96s; }
.header-title span:nth-child(14) { animation-delay: 1.04s; }
.header-title span:nth-child(15) { animation-delay: 1.12s; }
.header-title span:nth-child(16) { animation-delay: 1.20s; }
.header-title span:nth-child(17) { animation-delay: 1.28s; }
.header-title span:nth-child(18) { animation-delay: 1.36s; }
.header-title span:nth-child(19) { animation-delay: 1.44s; }
.header-title span:nth-child(20) { animation-delay: 1.52s; }
.header-title {
    /* ...existing code... */
}

.header-title span {
    display: inline-block;
    animation: waveText 2.2s infinite linear;
}

@keyframes waveText {
    0% { transform: translateY(0); }
    10% { transform: translateY(-6px); }
    20% { transform: translateY(-12px); }
    30% { transform: translateY(-6px); }
    40% { transform: translateY(0); }
    100% { transform: translateY(0); }
}
/* Fondo animado con gradiente en movimiento */
body {
    background-color: var(--bg-color);
.hero {
    text-align: center;
    padding: 2.2rem 0.5rem 1.2rem 0.5rem;
    background: none;
    min-height: 0;
    -webkit-line-clamp: 1;
}

.hero-horarios-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 0.7rem;
    -webkit-line-clamp: 1;
}
}

@keyframes shimmerThumb {
.product-meta {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
    flex-direction: column; /* precio encima del botón en todas las pantallas */
    justify-content: flex-start;
    margin-top: 0.35rem;
}
    100% { box-shadow: 0 2px 8px #ffd84d22; }
}
/* Animación glow pulsante en el header */
header {
.btn-add {
    flex: 0 0 auto;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-size: 0.97rem;
}
    60% { box-shadow: 0 2px 24px rgba(0,0,0,0.13), 0 0 18px #ffd84d88; }
    100% { box-shadow: 0 2px 16px rgba(0,0,0,0.10), 0 0 0px #ffd84d00; }
}

/* Carrito con movimiento sutil */
.cart-icon {
    animation: cartFloat 2.5s infinite alternate cubic-bezier(.4,0,.2,1);
}

@keyframes cartFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.04); }
    100% { transform: translateY(0) scale(1); }
}

/* Título principal shimmer */
#cart-count.added {
    animation: badgePop 0.5s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 16px #ffd84d99, 0 2px 8px #d9000033;
    filter: brightness(1.15) drop-shadow(0 0 8px #ffd84dcc);
}
.cart-icon.added {
    animation: cartPop 0.5s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 32px #ffd84d99, 0 2px 12px #d9000055;
    border: 2px solid #ff8a00;
    filter: brightness(1.15) drop-shadow(0 0 12px #ffd84dcc);
}

@keyframes cartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.25) rotate(-8deg); }
    60% { transform: scale(1.18) rotate(8deg); }
    100% { transform: scale(1); }
}
header {
    background: linear-gradient(90deg, #d90000 80%, #ff8a00 100%);
    padding: 0.7rem 4% 0.7rem 4%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    border-bottom: 3px solid #ffd84d;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}

header.scrolled {
    background: linear-gradient(90deg, #d90000ee 80%, #ff8a00cc 100%);
    box-shadow: 0 6px 32px rgba(0,0,0,0.18);
    border-bottom: 3px solid #ffd84d;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
}

.header-title {
    flex: 1 1 auto;
    text-align: center;
}

.header-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px #d90000, 0 1px 0 #ffd84d;
    margin-left: 0.2rem;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.2rem;
    background: linear-gradient(135deg, #fff7ec 60%, #ffd84d 100%);
    border-radius: 50%;
    box-shadow: 0 2px 12px #ffd84d55, 0 1px 8px #d9000033;
    border: 2px solid #ffd84d;
    padding: 0.38rem 0.7rem;
    transition: box-shadow 0.2s, border 0.2s;
}
.cart-icon:hover {
    box-shadow: 0 6px 24px #ffd84d99, 0 2px 12px #d9000055;
    border: 2px solid #ff8a00;
    transform: scale(1.12);
    filter: brightness(1.08) drop-shadow(0 0 6px #ffd84d88);
}
.header-title {
    font-size: 2.1rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ffd84d 0%, #ff8a00 60%, #fff7ec 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.07em;
    text-align: center;
    margin-bottom: 0;
    text-shadow: 0 2px 12px #d90000, 0 1px 0 #ffd84d, 0 0 18px #ff8a0099;
    filter: drop-shadow(0 0 8px #ffd84d88);
    padding: 0.3rem 0.2rem;
    animation: fiestaGlow 1.2s cubic-bezier(.4,0,.2,1);
}

@keyframes fiestaGlow {
    0% { opacity: 0; transform: scale(0.8) translateY(-20px); filter: blur(2px); }
    60% { opacity: 1; transform: scale(1.08) translateY(0); filter: blur(0px) drop-shadow(0 0 18px #ffd84d88); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: none; }
}
}
/* ====== HERO IMPACTANTE ====== */
.hero {
    position: relative;
    overflow: visible;
    background: linear-gradient(180deg, #fff7ec 70%, #ffd84d22 100%);
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
}
.hero-logo {
    box-shadow: 0 8px 32px #ff8a0033, 0 0 32px #ffd84d88;
    border: 2.5px solid #ffd84d;
    background: linear-gradient(135deg, #fff7ec 80%, #ffd84d22 100%);
    animation: heroFadeZoom 1.2s cubic-bezier(.4,0,.2,1);
}
/* Horarios mejorados */
.hero-horarios-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.hero-horarios-titulo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px #fff8f2, 0 1px 0 #ffd84d;
    background: none;
    text-align: center;
}

.hero-horarios {
    background: #fff7ecdd;
    border-radius: 1.2rem;
    padding: 0.7rem 1.5rem;
    box-shadow: 0 2px 12px #ffd84d44;
    display: inline-block;
    font-size: 1.18rem;
    color: #ff8a00;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px #fff8f2, 0 1px 0 #ffd84d;
    text-align: center;
    margin: 0;
    border: 1px solid #ffd84d33;
    backdrop-filter: blur(2px);
    animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1);
}

@media (max-width: 600px) {
    .hero-horarios {
        font-size: 1rem;
        padding: 0.5rem 0.7rem;
    }
    .hero-horarios-titulo {
        font-size: 1.1rem;
    }
}
}
.btn-add:hover, .btn-add:focus {
    background: linear-gradient(90deg, #ffd84d 60%, #ff8a00 100%);
    color: #d90000;
    transform: scale(1.08);
    box-shadow: 0 4px 16px #ffd84d55;
}
.btn-add.clicked {
    animation: pulse 0.3s;
}

.category-thumb {
    background: linear-gradient(135deg, #fff7ec 80%, #ffd84d22 100%);
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px #ffd84d33;
    border: 1.5px solid #ffd84d33;
    transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}
.category-thumb:hover, .category-thumb.active {
    box-shadow: 0 8px 32px #ff8a0033;
    border-color: #ffd84d;
    transform: scale(1.04);
}

.review-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px #ffd84d33;
    border: 1.5px solid #ffd84d33;
    transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}
.review-card:hover {
    box-shadow: 0 8px 32px #ff8a0033;
    border-color: #ffd84d;
    transform: scale(1.03);
}

.hero-logo {
    box-shadow: 0 8px 32px #ff8a0033;
    border: 2.5px solid #ffd84d;
    background: linear-gradient(135deg, #fff7ec 80%, #ffd84d22 100%);
}
.hero-logo:hover {
    box-shadow: 0 16px 48px #ff8a0033;
    border-color: #ff8a00;
    transform: scale(1.04);
}

.hero-horarios {
    background: #fff7ecdd;
    border-radius: 1.2rem;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 2px 8px #ffd84d33;
    display: inline-block;
    font-weight: 600;
}

footer {
    background: linear-gradient(180deg, #121212 60%, #ffd84d 100%);
    color: #ffd84d;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
}
.footer-content a {
    color: #ffd84d;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom 0.2s;
}
.footer-content a:hover {
    color: #ff8a00;
    border-bottom: 2px solid #ff8a00;
}
/* ====== ANIMACIONES Y EFECTOS MODERNOS ====== */
* {
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* Header sticky animado */
header {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: background 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
header.scrolled {
    background: #d90000ee;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

/* Animación de entrada fade-in-up */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

/* Hover en cards y botones */
.product-card, .review-card, .category-thumb {
    transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover, .review-card:hover, .category-thumb:hover {
    box-shadow: 0 8px 32px rgba(255,138,0,0.13);
    transform: translateY(-6px) scale(1.03);
}
.btn-add:hover, .btn-add:focus {
    background: #ffd84d;
    color: #d90000;
    transform: scale(1.06);
    box-shadow: 0 2px 12px #ffd84d55;
}

/* Micro-interacción pulse */
@keyframes pulse {
    0% { transform: scale(1);}
    50% { transform: scale(1.12);}
    100% { transform: scale(1);}
}
.btn-add.clicked {
    animation: pulse 0.3s;
}

/* Sombra y escala en imagen hero */
.hero-logo {
    transition: box-shadow 0.3s, transform 0.3s;
}
.hero-logo:hover {
    box-shadow: 0 8px 32px #ff8a0033;
    transform: scale(1.04);
}

/* Footer animado */
footer {
    transition: box-shadow 0.3s, background 0.3s;
}
footer.visible {
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
    background: #121212ee;
}

/* Links animados */
a, .footer-content a {
    transition: color 0.2s, border-bottom 0.2s;
}
a:hover, .footer-content a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
/* Carrito Sidebar */
@media (max-width: 768px) {
    .cart-sidebar {
    width: 100vw;
    right: -100vw;
    max-width: 100vw;
        min-width: 0;
    }
}
@media (max-width: 600px) {
    .cart-sidebar {
        padding: 0.5rem 0.2rem;
    }
    .cart-header, .cart-footer {
        padding: 0.7rem 0.2rem;
    }
    .cart-items {
        padding: 0.7rem 0.2rem;
    }
    .btn-primary {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
}
.checkout-container {
    max-width: 600px;
    margin: 1.2rem auto;
    padding: 1.2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    align-items: stretch;
    grid-auto-rows: 1fr; /* make rows equal height so cards match */
}
@media (max-width: 600px) {
    .checkout-container {
        padding: 0.7rem 0.2rem;
        margin: 0.7rem 0;
    }
}
/* Contenedor de horarios debajo de la imagen en hero */
/* Contenedor de horarios debajo de la imagen en hero */
.hero-horarios-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0.7rem;
    margin-bottom: 0.5rem;
}
/* Horarios destacado en hero */
.hero-horarios {
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    color: #ff8a00;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px #fff8f2, 0 1px 0 #ffd84d;
    text-align: center;
}
/* Contenedor horizontal para header */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
/* Título destacado en el header */
.header-title {
    text-align: center;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0;
    text-shadow: 0 2px 8px #a80000, 0 1px 0 #ffd84d;
}
/* Logo en la sección hero */
.hero-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.2rem;
    max-width: 700px;
    width: 100vw;
    height: auto;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 32px #ff8a0033, 0 0 32px #ffd84d88;
    background: radial-gradient(circle, #fff7ec 80%, #ffd84d22 100%);
    padding: 0;
    border: none;
}
/* --- Título de sección productos --- */
h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.1rem;
    font-weight: 800;
    margin: 2.2rem 0 1.2rem 0;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px #fff8f2, 0 1px 0 #ffd84d;
}
/* Miniaturas de categorías con imagen y nombre */
.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem 2.2rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 1.5rem 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    .category-thumbs {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem 0.7rem;
        max-width: 320px;
    }
}

/* Desktop: show category logos in a single row of 4 */
@media (min-width: 992px) {
    .category-thumbs {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.6rem 1.6rem !important;
        max-width: 1100px !important;
        padding: 0 2.5% !important;
        margin: 2.5rem auto 1.5rem auto;
        justify-items: center;
    }
    .category-thumb-img {
        width: 140px !important;
        height: 140px !important;
    }
}
.category-thumb {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        border: none;
        background: none;
        outline: none;
        transition: transform 0.15s, box-shadow 0.15s;
        border-radius: 1.2rem;
        padding: 0.2rem 0.2rem 0.5rem 0.2rem;
}
.category-thumb.active, .category-thumb:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: none;
    background: none;
    outline: none !important;
    border: none !important;
    padding: 0;
}
.category-thumb-img {
    border: none !important;
    outline: none !important;
}
.category-thumb-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    background: transparent;
    margin-bottom: 0.4rem;
    border: none !important;
    outline: none !important;
    border-top-width: initial !important;
    border-right-width: initial !important;
    border-bottom-width: initial !important;
    border-left-width: initial !important;
    border-top-style: none !important;
    border-right-style: none !important;
    border-bottom-style: none !important;
    border-left-style: none !important;
    border-top-color: initial !important;
    border-right-color: initial !important;
    border-bottom-color: initial !important;
    border-left-color: initial !important;
    border-image-source: initial !important;
    border-image-slice: initial !important;
    border-image-width: initial !important;
    border-image-outset: initial !important;
    border-image-repeat: initial !important;
    outline-color: initial !important;
    outline-style: none !important;
    outline-width: initial !important;
    transition: border 0.2s;
}
.category-thumb.active .category-thumb-img, .category-thumb:hover .category-thumb-img {
    border: none !important;
}
.category-thumb-label {
        font-size: 1rem;
        color: #444;
        margin-top: 0.1rem;
        letter-spacing: 0.01em;
        font-weight: 500;
        opacity: 0.85;
        text-align: center;
        text-shadow: 0 1px 2px #fff8f2;
}
@media (max-width: 600px) {
    .category-thumbs {
        gap: 0.7rem;
    }
    .category-thumb-img {
        width: 90px;
        height: 90px;
    }
    .category-thumb-label {
        font-size: 0.97rem;
    }
}
/* Imagen destacada de categoría */
.category-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.7rem;
    min-height: 120px;
}
.category-image-container img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #fff;
    object-fit: contain;
    padding: 0.5rem;
}
@media (max-width: 600px) {
    .product-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .product-categories::-webkit-scrollbar {
        display: none;
    }
    .category-tab {
        flex: 0 0 auto;
        font-size: 0.95rem;
        padding: 0.5rem 0.9rem;
        min-width: 120px;
    }
}
/* Tabs de categorías de productos */
/* Menú de categorías tipo chips, responsivo y con salto de línea */
.product-categories {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.7rem;
        margin: 2rem 0 1.5rem 0;
        padding: 0.5rem 0.2rem;
}
.category-tab {
        background: var(--white);
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        padding: 0.5rem 1.1rem;
        border-radius: 2rem;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 8px rgba(255,138,0,0.07);
        margin-bottom: 0.2rem;
        margin-top: 0.2rem;
        min-width: 120px;
        text-align: center;
        white-space: nowrap;
}
.category-tab.active, .category-tab:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
        box-shadow: 0 4px 16px rgba(255,138,0,0.13);
}
@media (max-width: 600px) {
    .product-categories {
        gap: 0.5rem;
        padding: 0.3rem 0.1rem;
    }
    .category-tab {
        font-size: 0.97rem;
        padding: 0.45rem 0.7rem;
        min-width: 100px;
    }
}
:root {
    --primary-color: #ff8a00; /* naranja principal del logo */
    --secondary-color: #121212; /* contorno oscuro del logo */
    --accent-color: #ffd84d; /* amarillo de contraste */
    --bg-color: #fff7ec; /* fondo cálido */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.12);
}
* {

    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

main {
    padding: 0 1rem; /* padding con respecto a la web */
}

header {
    background: #d90000;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

@media (max-width: 600px) {
    header {
        padding: 0.5rem 2%;
    }
    .header-title {
        font-size: 1.1rem;
        padding: 0.2rem 0;
    }
    nav {
        gap: 0.5rem;
    }
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
    color: var(--secondary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
}

.logo-img {
    height: 46px;
    width: auto;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent-color), 0 6px 12px rgba(0,0,0,0.15);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    outline: none;
    margin-right: 0.5rem;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    border-radius: 50%;
}
.cart-icon:focus, .cart-icon:hover {
    color: var(--primary-color);
    background: #fff7ec;
    outline: none;
    transform: scale(1.08);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    padding: 1.5px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 2;
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: none;
    min-height: 0;
    color: white;
}

.hero-modal {
    background: none;
    border: none;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: none;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 600px) {
    .hero-modal {
        margin-top: 2rem;
    }
    .hero-logo {
        max-width: 260px;
        width: 96vw;
        margin-bottom: 1.2rem;
    }
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.hero p {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

@media (min-width: 992px) {
    .hero {
        background: linear-gradient(rgba(18,18,18,0.65), rgba(18,18,18,0.65)), url('img/hero-ituzcombos-desktop.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: 480px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-modal {
        padding: 2rem 2.5rem;
        border-radius: 14px;
    }
}

/* Desktop: colocar logo a la izquierda y horarios a la derecha */
@media (min-width: 992px) {
    .hero {
        padding: 2.5rem 0; /* keep full-bleed background but reduce internal padding */
    }
    .hero-inner {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between; /* ensure left logo and right horarios have space-between */
        gap: 1rem;
        padding: 0 4%;
        box-sizing: border-box;
    }
    .hero-modal {
        margin: 0;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .hero-horarios-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: right;
        gap: 0.2rem;
        margin: 0;
        flex: 0 0 auto;
    }
    .hero-horarios-titulo, .hero-horarios {
        text-align: right;
    }
}

/* Desktop: reducir tamaño del logo para ocupar menos espacio */
@media (min-width: 992px) {
    .hero-logo {
        max-width: 260px !important;
        width: auto !important;
        height: auto !important;
    }
}

.products-more {
    padding: 0 5% 3rem 5%;
    text-align: center;
}

.btn-toggle {
    max-width: 260px;
    margin: 0 auto 1.5rem auto;
    display: inline-block;
}

.products {
    /* Mobile-first: compacto por defecto (2 columnas en móviles grandes) */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    row-gap: 0.9rem; /* espacio vertical entre filas (mobile-first) */
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.18s;
    max-width: 1200px; /* limit width and center */
    margin: 0.8rem auto 1.6rem auto;
    justify-content: center;
}

@media (max-width: 420px) {
    .products {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        row-gap: 0.9rem;
        padding: 0.4rem;
    }
}

@media (min-width: 700px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
        row-gap: 1.1rem;
        padding: 0.8rem 2%;
    }
}

@media (min-width: 1024px) {
    .products {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
        row-gap: 1.4rem;
        padding: 0.8rem 3%;
    }
}

/* Desktop breakpoint: ensure 4 columns layout at common desktop width (>=992px) */
@media (min-width: 992px) {
    .products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.1rem !important;
        row-gap: 1.2rem !important;
        padding: 0.8rem 2.5% !important;
    }
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3; /* más compacto: 4:3 por defecto */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-color);
    flex: 0 0 auto;
    margin-bottom: 0.55rem; /* separador entre imagen y texto */
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 700px) {
    .product-img-wrap { aspect-ratio: 16 / 9; }
}

.product-img-placeholder {
    height: 200px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    text-align: center;
    padding: 1rem;
}

.product-info {
    padding: 0.75rem 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.45rem;
}

/* Product title: allow wrapping and full visibility (consolidated) */
.product-title {
    font-size: 0.94rem;
    line-height: 1.12;
    margin: 0;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.product-desc {
    font-size: 0.82rem;
    color: #666;
    margin-top: 0.12rem;
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Modal de imagen ampliada */
#image-modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
#image-modal .modal-content {
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    background: transparent !important;
    background-image: none !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6) !important;
    padding: 0.6rem !important;
}
#image-modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
#image-modal img { object-fit: contain; }
#image-modal .modal-caption {
    color: #fff;
    font-weight: 600;
    text-align: center;
}
#image-modal .close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #fff;
    background: rgba(0,0,0,0.25);
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}
/* When modal is open remove underlying hero glow / radial highlight */
.modal-open .hero-logo {
    box-shadow: none !important;
    background: transparent !important;
}

/* Slightly stronger overlay to better hide page glows */
#image-modal {
    background: rgba(0,0,0,0.85);
}
.product-meta {
    display: flex;
    gap: 0.3rem;
    align-items: stretch;
    flex-direction: column; /* precio encima del botón */
    justify-content: flex-start;
    margin-top: 0.22rem;
}
.product-meta .price {
    font-size: 0.95rem;
    font-weight: 900;
    margin: 0;
    color: var(--primary-color);
}
.btn-add {
    flex: 0 0 auto;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-top: 0.08rem;
}

@media (max-width: 420px) {
    .product-meta { flex-direction: column; align-items: stretch; }
    .product-meta .price { text-align: left; }
    .btn-add { width: 100%; }
}

@media (min-width: 700px) {
    /* mantener precio encima del botón, pequeños ajustes en desktop */
    .product-meta { gap: 0.35rem; margin-top: 0.28rem; }
    .product-meta .price { margin-bottom: 0.12rem; }
    .btn-add { width: 100%; min-width: 0; padding: 0.5rem 0.7rem; }
}

.btn-add {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.12s, transform 0.12s;
    margin-top: 0.08rem;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.045);
}
.btn-add:hover, .btn-add:active, .btn-add:focus {
    background: #e67300;
    transform: scale(1.02);
    outline: 2px solid #ffd84d;
    outline-offset: 2px;
}

.form-group input, .form-group select, .form-group textarea {
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 2px #ffd84d44;
}

@media (max-width: 600px) {
    .btn-add { font-size: 1rem; padding: 0.8rem; }
    .form-group input, .form-group select, .form-group textarea { font-size: 1rem; padding: 0.6rem; }
    .form-group label { font-size: 0.95rem; }
}

/* Carrito Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: var(--white);
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;

/* FIX: Forzar que los títulos de producto no se trunquen con puntos suspensivos.
   Hay reglas previas en este archivo que aplican -webkit-line-clamp y
   text-overflow: ellipsis; las siguientes reglas las sobreescriben para
   garantizar legibilidad en móvil y desktop. */
.product-title {
    display: block !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    line-height: 1.15 !important;
}

    padding-bottom: 1rem;
    border-bottom: 1px solid #f9f9f9;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--accent-color);
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid var(--accent-color);
}

/* Reseñas */
.reviews {
    padding: 2.2rem 2%;
    background: #eee;
    text-align: center;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    margin-top: 1.2rem;
}

@media (max-width: 600px) {
    .reviews {
        padding: 1.2rem 0.2rem;
    }
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stars {
    color: #f1c40f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.review-card span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 540px;
    width: 98vw;
    height: auto;
    border-radius: 50%;
    background: radial-gradient(circle, #fff7ec 80%, #ffd84d22 100%);
    box-shadow: 0 8px 32px #ff8a0033, 0 0 32px #ffd84d88;
    position: relative;
    z-index: 2;
    animation: heroFadeZoom 1.2s cubic-bezier(.4,0,.2,1);
    transition: box-shadow 0.3s, transform 0.3s;
}
.hero-logo:hover, .hero-logo:active {
    box-shadow: 0 16px 48px #ff8a0033, 0 0 64px #ffd84d;
    transform: scale(1.04);
}
@keyframes heroFadeZoom {
    0% { opacity: 0; transform: scale(0.85); filter: blur(4px); }
    60% { opacity: 1; transform: scale(1.05); filter: blur(0); }
    100% { opacity: 1; transform: scale(1); filter: none; }
}
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.placeholder-img {
    height: 300px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
}

/* Checkout Form */
.checkout-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 7px;
    font-weight: 600;
    font-size: 1.08rem;
}

.radio-group input[type="radio"] {
    accent-color: var(--primary-color);
}

.hidden {
    display: none;
}

/* Toast */
.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 3000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--secondary-color), #000000);
    color: var(--accent-color);
    padding: 3rem 5%;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.btn-system {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, background-color 0.3s;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 138, 0, 0.65);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 138, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 138, 0, 0);
    }
}

.btn-system:hover {
    background-color: #ff9f1a;
    color: var(--secondary-color);
    transform: scale(1.08);
    animation: none;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
