/* Gloz Print Bar — public styles */

:root {
    --bg:        #ffffff;
    --band:      #f2f3f2;
    --surface:   #ffffff;
    --ink:       #17181a;
    --muted:     #6b7280;
    --line:      #e2e4e2;
    --accent:    #17181a;
    --accent-ink:#ffffff;
    --radius:    18px;
    --shadow:    0 6px 20px rgba(17, 24, 39, 0.07);
    --shadow-hover: 0 16px 40px rgba(17, 24, 39, 0.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

/* ---------------- HERO ---------------- */
.hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 24px 20px 36px;
    background:
        linear-gradient(rgba(18,18,20,0.55), rgba(18,18,20,0.62)),
        url('../img/hero-bg.jpg') center 30% / cover no-repeat;
}
.hero-logo {
    width: min(230px, 62vw);
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.3));
}
.hero-content {
    margin: auto 0;
    max-width: 620px;
}
.hero h1 {
    font-weight: 800;
    font-size: clamp(2.1rem, 6vw, 3.5rem);
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    line-height: 1.05;
}
.hero p {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    margin: 0 auto;
    max-width: 500px;
    color: rgba(255,255,255,0.92);
}

/* ---------------- SECTIONS ---------------- */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 58px 20px 24px;
}
.section-title {
    text-align: center;
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: -0.02em;
    margin: 0 0 30px;
}

/* Filters + search */
.controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.search-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 42px; flex: 0 0 auto;
    border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
    border-radius: 999px; cursor: pointer; transition: all .16s ease;
}
.search-btn:hover { background: #f0f0f0; }
.search-btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-btn svg { width: 18px; height: 18px; }
.search-bar { display: flex; justify-content: center; margin-top: 16px; }
.search-bar[hidden] { display: none; }
.search-bar input {
    width: min(420px, 100%);
    border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
    padding: 11px 20px; font-family: inherit; font-size: 0.95rem; outline: none;
    transition: border-color .16s ease;
}
.search-bar input:focus { border-color: var(--ink); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.pagination button {
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    border-radius: 10px; font-family: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
    transition: all .15s ease;
}
.pagination button:hover:not(:disabled) { border-color: var(--ink); }
.pagination button.is-current { background: var(--accent); color: #fff; border-color: var(--accent); cursor: default; }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination .dots { border: none; background: none; cursor: default; }
.grid.is-loading { opacity: .5; transition: opacity .15s ease; }
.chip {
    border: 1.5px solid var(--ink);
    background: var(--surface);
    color: var(--ink);
    padding: 9px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .16s ease;
}
.chip:hover { background: #f0f0f0; }
.chip.is-active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

/* ---------------- GRID BAND ---------------- */
.grid-band {
    background: var(--bg);
    padding: 30px 20px 56px;
    margin-top: 4px;
}
.grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.thumb { position: relative; aspect-ratio: 1 / 1; background: #eceeec; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.img-front { opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .6s ease; }
.card.has-front:hover .img-front { opacity: 1; transform: scale(1); }
.card.has-front:hover .img-design { opacity: 0; transition: opacity .45s ease; }

.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.card-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.card-cat { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.empty, .no-results { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 1.05rem; }
.empty a { color: var(--accent); }

/* ---------------- EVENT SECTION ---------------- */
.event { background: var(--band); padding: 70px 20px 40px; }
.event-inner { max-width: 1080px; margin: 0 auto; }
.event-title {
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    font-size: clamp(1.5rem, 3.6vw, 2.2rem);
    letter-spacing: -0.01em;
    margin: 0 0 44px;
}
.event-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
}
.event-text { text-align: right; }
.event-text p { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.6; }
.event-tagline { font-weight: 700; font-size: 1.1rem !important; }
.event-img img { width: 100%; height: auto; border-radius: 6px; display: block; box-shadow: var(--shadow); }

.btn-quote {
    display: inline-block;
    margin-top: 8px;
    border: 2px solid var(--ink);
    color: var(--ink);
    background: transparent;
    padding: 12px 26px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: all .16s ease;
}
.btn-quote:hover { background: var(--ink); color: #fff; }

/* ---------------- FOOTER ---------------- */
.site-footer { text-align: center; padding: 28px 20px; background: var(--band); color: var(--muted); font-size: 0.82rem; }

/* ---------------- QUOTE MODAL ---------------- */
.modal {
    position: fixed; inset: 0;
    background: rgba(18, 18, 20, 0.6);
    display: flex; align-items: flex-start; justify-content: center;
    z-index: 1100; padding: 24px 16px; overflow-y: auto;
    animation: fade .2s ease;
}
.modal[hidden] { display: none; }
.modal-card {
    position: relative;
    background: #fff; color: var(--ink);
    width: 100%; max-width: 560px;
    border-radius: 16px; padding: 34px 30px 30px;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    margin: auto;
}
.modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 2rem; line-height: 1;
    color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-title { font-size: 1.7rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.modal-sub { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }

.q-section { border: none; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 4px; }
.q-section legend { font-weight: 700; font-size: 1.02rem; padding: 0 8px 0 0; }
.q-field { display: block; margin-bottom: 14px; font-size: 0.88rem; font-weight: 500; color: #374151; }
.q-label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 500; color: #374151; }
.req { color: #dc2626; }
.q-row { display: flex; gap: 14px; flex-wrap: wrap; }
.q-row .q-field { flex: 1; min-width: 180px; }
.q-field input, .q-field select {
    display: block; width: 100%; margin-top: 6px;
    padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
.q-field input:focus, .q-field select:focus { outline: none; border-color: var(--ink); }
.q-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.q-checks label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem; font-weight: 500; cursor: pointer; }
.q-checks input { width: 16px; height: 16px; }
.q-submit { margin-top: 12px; width: 100%; cursor: pointer; }
.q-error { color: #b91c1c; background: #fef2f2; border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; margin: 4px 0 0; }
.q-error[hidden] { display: none; }

/* Honeypot (hidden from humans) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.quote-thanks { text-align: center; padding: 20px 6px 8px; }
.quote-thanks p { color: #374151; margin: 8px 0; }
.quote-thanks .thanks-sign { font-weight: 700; color: var(--ink); margin: 16px 0 22px; font-size: 1.05rem; }
.quote-thanks .btn-quote { cursor: pointer; }

/* ---------------- LIGHTBOX ---------------- */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(15, 18, 16, 0.92);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px; animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.lb-stage img { max-width: min(92vw, 900px); max-height: 78vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .85; }
.lb-close:hover { opacity: 1; }
.lb-bar { display: flex; align-items: center; gap: 18px; padding: 16px 0 4px; color: #fff; }
.lb-title { font-weight: 600; font-size: 1.1rem; }
.lb-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lb-toggle[hidden] { display: none; }
.lb-toggle button { background: transparent; color: #fff; border: none; padding: 7px 16px; font-family: inherit; font-size: 0.85rem; cursor: pointer; }
.lb-toggle button[hidden] { display: none; }
.lb-toggle button.is-active { background: #fff; color: #111; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 760px) {
    .event-cols { grid-template-columns: 1fr; gap: 28px; }
    .event-text { text-align: center; order: 2; }
    .event-img { order: 1; }
    .section { padding: 40px 18px 18px; }
}

/* ---- Mobile-first polish (catálogo pensado para el celular) ---- */
@media (max-width: 520px) {
    .hero { min-height: 30vh; padding: 16px 18px 20px; }
    .hero-logo { width: 130px; }
    .hero h1 { font-size: 1.5rem; margin-bottom: 8px; line-height: 1.12; }
    .hero p { font-size: 0.85rem; max-width: 300px; }

    .section { padding: 28px 14px 12px; }
    .section-title { font-size: 1.4rem; margin-bottom: 18px; }

    /* Filtros en una sola línea (scroll horizontal) + icono de búsqueda al lado */
    .controls { flex-wrap: nowrap; gap: 8px; align-items: center; }
    .filters {
        flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .filters::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; padding: 7px 13px; font-size: 0.8rem; }
    .search-btn { width: 38px; height: 36px; }
    .search-btn svg { width: 16px; height: 16px; }
    .search-bar input { padding: 10px 16px; }

    .grid-band { padding: 20px 14px 40px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-body { padding: 12px 12px 14px; }
    .card-title { font-size: 0.95rem; }
    .card-cat { font-size: 0.68rem; }

    .event { padding: 42px 18px 26px; }
    .event-title { font-size: 1.35rem; margin-bottom: 26px; }
    .pagination { margin-top: 30px; }
}

/* ---------------- SITE MENU (links to Gloz Design) — 2026-11-04 ---------------- */
.site-nav {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: -8px auto 18px;
    text-align: left;
}
.nav-brand {
    display: inline-flex; align-items: center; gap: 9px;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 2px; }
.nav-links {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px;
}
.nav-links a {
    color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.9rem; font-weight: 500;
    padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; border-bottom-color: rgba(255,255,255,0.7); }
.nav-links a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom-color: #fff; }
.nav-toggle {
    display: none;
    width: 42px; height: 40px; padding: 0 10px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); border-radius: 10px;
    cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* H1 with the keyword, slogan keeps the big look */
.hero .hero-kicker {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.4;
    margin: 0 0 12px;
    color: rgba(255,255,255,0.9);
}
.hero .hero-slogan {
    font-weight: 800;
    font-size: clamp(2.1rem, 6vw, 3.5rem);
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    line-height: 1.05;
    max-width: none;
    color: #fff;
}

/* Footer links */
.site-footer .footer-about { max-width: 560px; margin: 0 auto 12px; font-size: 0.9rem; color: var(--ink); }
.site-footer a { color: var(--ink); }
.footer-links {
    list-style: none; margin: 0 0 14px; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 0.86rem;
}
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .site-nav { justify-content: flex-end; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute; top: calc(100% + 8px); right: 0;
        width: min(280px, calc(100vw - 32px));
        flex-direction: column; gap: 0;
        background: #fff; border-radius: 14px; padding: 8px;
        box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a {
        display: block; color: var(--ink); padding: 11px 14px; border-radius: 9px; border-bottom: none;
        font-size: 0.95rem;
    }
    .nav-links a:hover, .nav-links a:focus-visible { background: var(--band); color: var(--ink); }
    .nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }
}
@media (max-width: 520px) {
    .site-nav { margin: -4px auto 12px; }
    .nav-brand { font-size: 0.85rem; }
    .nav-brand img { width: 26px; height: 26px; }
    .nav-toggle { width: 38px; height: 36px; }
    .hero .hero-kicker { font-size: 0.68rem; letter-spacing: 0.1em; margin-bottom: 8px; }
    .hero .hero-slogan { font-size: 1.5rem; margin-bottom: 8px; line-height: 1.12; }
}
