@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/montserrat.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/playfair.woff2') format('woff2'); }

:root {
    --text-main: #111;
    --text-muted: #555;
    --accent-color: #d97736;
    --white: #ffffff;
    --border-highlight: #e0e0e0;
}

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

.offline-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1500;
    padding: 7px 14px;
    text-align: center;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: #7a4a12; background: #ffedd6;
    border-bottom: 1px solid #e0a561;
}

/* Language toggle — fixed so it stays reachable in both the home and product views.
   Sits below the modal overlay so it can't be tapped while a product is open. */
.lang-toggle {
    position: fixed;
    top: 14px; right: 14px;
    z-index: 900;
    min-width: 44px;
    padding: 7px 11px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 20px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}
.lang-toggle:hover { background: var(--accent-color); border-color: var(--accent-color); }
.lang-toggle:active { transform: scale(0.94); }

/* Contact links — Instagram / WhatsApp / Maps. Wraps to one per line on narrow phones. */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 30px auto 0;
    padding: 0 20px;
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border-highlight);
    border-radius: 24px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact-link svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.contact-link:hover { color: var(--accent-color); border-color: var(--accent-color); transform: translateY(-2px); }
.contact-link:active { transform: scale(0.96); }

/* Tags — icons on the card (scan-friendly), icon + label in the modal (unambiguous) */
.tag-icons {
    position: absolute; left: 10px; bottom: 10px;
    display: flex; gap: 4px;
    padding: 5px 8px;
    background: rgba(255,255,255,0.92);
    border-radius: 14px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.tag-icon { font-size: 15px; line-height: 1; }

.tag-chips {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 6px;
    margin: 0 0 12px;
}
.tag-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px 4px 8px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--text-muted);
    background: #f6f6f6;
    border: 1px solid var(--border-highlight);
    border-radius: 14px;
}
.tag-chip-icon { font-size: 13px; line-height: 1; }

/* Scale fields (amargor) — filled hop cones out of max, mirroring the can label. */
.scale-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.scale-label {
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted);
}
.scale-word {
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--accent-color);
}
.scale-hops { display: inline-flex; align-items: center; gap: 3px; }
.scale-hops .hop {
    width: 15px; height: 15px;
    fill: #ddd;
    transition: fill 0.2s ease;
}
.scale-hops .hop.on { fill: var(--accent-color); }

/* Size prices — modal only. A price of 0 renders as a loud "pending" row so it is
   obvious at a glance which ones still need a real number. */
.size-prices {
    margin: 0 0 16px;
    border: 1px solid var(--border-highlight);
    border-radius: 10px;
    overflow: hidden;
}
.size-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-highlight);
}
.size-price:last-child { border-bottom: none; }

.size-glasses { display: inline-flex; gap: 6px; flex-shrink: 0; }

.glass-back {
    position: absolute; top: 14px; left: 14px; z-index: 5;
    padding: 6px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--white); background: rgba(0,0,0,0.6);
    border: none; border-radius: 16px; cursor: pointer;
}
.size-glass {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-highlight);
    background: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.size-glass:hover { transform: scale(1.06); border-color: var(--accent-color); }

/* Empty state. The Foto Pendiente SVG is 400x400 with 18px text — at thumbnail
   size the text is ~3px and unreadable, so an empty size gets its own mark. */
.size-glass-empty {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    border: 1px dashed #d8c0a4;
    background: #fffaf4;
    font-size: 22px;
    opacity: 0.55;
}

.size-label {
    flex: 1;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted);
}
.size-value {
    font-size: 17px; font-weight: 700;
    color: var(--accent-color);
}

/* Pending state — amber wash + dashed pill, deliberately hard to miss. */
.size-pending-row { background: #fff8ef; }
.size-pending {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: #b26a1f;
    background: #ffedd6;
    border: 1px dashed #e0a561;
    border-radius: 12px;
    padding: 3px 10px;
    white-space: nowrap;
}

.contact-address {
    max-width: 600px;
    margin: 14px auto 0;
    padding: 0 24px;
    text-align: center;
    font-size: 12px; line-height: 1.5;
    color: var(--text-muted);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    transition: background 0.4s ease;
    position: relative;
    min-height: 100vh;
}

.pasion-bg {
    position: fixed;
    bottom: -30px; right: -30px;
    width: 450px; height: 450px;
    background-image: url('img/banner-pasion-por-la-cerveza-v1.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.10;
    transform: rotate(-20deg);
    z-index: 0;
    pointer-events: none;
}

.bg-overlay {
    background-color: rgba(255, 255, 255, 0.85);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: background-color 0.4s ease;
}

header {
    text-align: center;
    padding: 12px 20px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-highlight);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-img { max-width: 120px; height: auto; }

.category-header-row {
    display: flex;
    align-items: center;
    margin: 0 0 35px;
}
.category-header-row::after {
    content: '';
    min-width: 70px;
    flex-shrink: 0;
}

.back-btn {
    min-width: 70px; flex-shrink: 0;
    background: none; border: none;
    font-size: 13px; font-weight: 700;
    color: var(--accent-color); cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
    transition: opacity 0.2s;
    padding: 0; text-align: left;
}
.back-btn:hover { opacity: 0.7; }

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
    width: 100%;
}

.category-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.square-banner {
    position: relative;
    width: 100%; height: 220px;
    background-color: #222;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid var(--border-highlight);
}

.banner-bg-img {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease; z-index: 1;
}

.square-banner:hover .banner-bg-img { transform: scale(1.08); }

.banner-sub {
    display: block;
    margin-top: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.banner-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.15);
    display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2;
}

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px; font-weight: 700;
    letter-spacing: 4px; text-transform: uppercase;
    color: #ffffff; text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    text-align: center; padding: 0 15px;
}

.special-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--accent-color); color: #fff;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px; z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.category-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px; text-align: center; margin: 0;
    text-transform: uppercase; letter-spacing: 3px;
    flex: 1;
}

.product-card-large {
    background: var(--white);
    margin-bottom: 35px;
    cursor: pointer; border: 1px solid var(--border-highlight);
    border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    overflow: hidden; padding-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease; text-align: left;
}
.product-card-large:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.12); }

.product-image-large {
    width: 100%; height: 380px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-highlight);
    background-color: #fff;
}

.img-food { object-fit: cover; padding: 0; }
.img-beer { object-fit: contain; padding: 20px; background-color: #ffffff; }

.product-info-large { padding: 0 20px; }

.product-name-large {
    font-family: 'Playfair Display', serif; font-size: 22px;
    font-weight: 700; margin-bottom: 6px; line-height: 1.2;
}
.product-price-large {
    font-size: 19px; font-weight: 600;
    color: var(--accent-color); margin-bottom: 10px;
}
.product-desc-large {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.5; margin-bottom: 15px;
}
.click-hint { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.price-original { text-decoration: line-through; color: #aaa; font-size: 15px; font-weight: 400; margin-right: 6px; }
.price-special { color: var(--accent-color); font-size: 19px; font-weight: 700; }

.unavailable-card { opacity: 0.6; }
/* Top-LEFT on purpose: "Especial" occupies top-right wherever the two could ever meet,
   and "No Disponible" is a band across the bottom, so all three can coexist. */
.new-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent-color); color: #fff;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px; z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.unavailable-badge {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.65);
    color: #fff; text-align: center;
    font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 8px 0; z-index: 2;
}

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center; align-items: center; z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--white); width: 100%; max-width: 600px;
    border-radius: 20px; padding: 40px 25px 30px;
    position: relative; max-height: 90vh; overflow-y: auto; text-align: center;
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 30px; cursor: pointer; width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    background: #f4f4f4; border-radius: 50%; color: #333;
    transition: background 0.2s;
}
.close-modal:hover { background: #e0e0e0; }

.modal-img {
    width: 100%; height: 350px; border-radius: 15px;
    margin-bottom: 20px; border: 1px solid var(--border-highlight);
    background-color: #fff;
}

.modal-title { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 10px; line-height: 1.2; }

.beer-specs { display: flex; justify-content: center; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.spec-badge {
    background-color: #f4f4f4; border: 1px solid #ddd;
    padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #444;
}

.modal-maridaje {
    background-color: #fdf5ef; padding: 15px; border-radius: 12px;
    font-size: 14px; color: var(--accent-color); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-top: 15px;
    border: 1px solid #fbe3d2;
}

.legal-footer {
    text-align: center; padding: 25px; font-size: 11px;
    color: #888; border-top: 1px solid var(--border-highlight);
    margin-top: 30px; background-color: rgba(255, 255, 255, 0.95);
}
.legal-footer p { margin-bottom: 5px; font-weight: 600; letter-spacing: 0.5px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.4s ease; }

.carousel {
    position: absolute; inset: 0;
    overflow: hidden; z-index: 0;
}

.carousel-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-size: cover; background-position: center;
    cursor: pointer;
}

.carousel-slide.active { opacity: 1; }
.carousel-slide:not(.active) { pointer-events: none; }

.carousel-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 40px 20px 32px;
    display: flex; flex-direction: column; gap: 4px;
}

.carousel-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700;
    color: #fff; line-height: 1.2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.carousel-price {
    font-size: 17px; font-weight: 700;
    color: var(--accent-color);
}

.carousel-price-original {
    text-decoration: line-through;
    color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 400;
    margin-right: 6px;
}

.carousel-new-badge {
    background: var(--accent-color); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 3px 8px;
    border-radius: 10px; align-self: flex-start;
    margin-bottom: 4px;
}

.carousel-dots {
    position: absolute; bottom: 12px; left: 0; right: 0;
    display: flex; justify-content: center; gap: clamp(12px, 3.5vw, 22px);
    z-index: 1; pointer-events: none;
}

.carousel-dot {
    width: clamp(13px, 4vw, 22px); height: clamp(13px, 4vw, 22px);
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: background 0.3s;
    pointer-events: auto; cursor: pointer;
}

.carousel-dot.active { background: #fff; }
