/* ==========================================================
   La Leyenda — estilo público
   Paleta inspirada en la cartelería: negro + amarillo señalético
   ========================================================== */

:root {
    --ll-bg:        #0d0d0d;
    --ll-bg-2:      #131313;
    --ll-card:      #1a1a1a;
    --ll-card-2:    #222;
    --ll-border:    #2c2c2c;
    --ll-text:      #f7f3e6;
    --ll-muted:     #b3ad9d;
    --ll-yellow:    #ffcb05;   /* amarillo del menú */
    --ll-yellow-h:  #ffd633;
    --ll-yellow-d:  #cf9f00;
    --ll-red:       #d62828;
    --ll-white:     #ffffff;
    --ll-shadow:    0 12px 36px rgba(0,0,0,.5);
    --ll-radius:    14px;
    --ll-radius-sm: 8px;
    --font-title:   'Bebas Neue', 'Anton', 'Rubik', sans-serif;
    --font-script:  'Dancing Script', cursive;
    --font-body:    'Rubik', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ll-bg);
    color: var(--ll-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }

a {
    color: var(--ll-yellow);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--ll-yellow-h); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- TOPBAR ---------- */
.topbar {
    background: #000;
    font-size: 13px;
    color: #cdc6b3;
    border-bottom: 1px solid #000;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.topbar a { color: var(--ll-yellow); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-sep { opacity: .3; }

/* ---------- HEADER / NAV ---------- */
.site-header {
    background-color: rgba(13,13,13,.92);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ll-yellow);
    box-shadow: 0 2px 0 #000;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-header .logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-header .logo-wrap img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.site-header .brand {
    font-family: var(--font-title);
    font-size: 28px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ll-yellow);
    line-height: 1;
}
.site-header .brand small {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: .3em;
    color: #cdc6b3;
    margin-top: 4px;
    text-transform: uppercase;
}
.nav {
    display: flex;
    gap: 26px;
    align-items: center;
}
.nav a {
    color: var(--ll-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--ll-yellow);
    transition: width .25s ease;
}
.nav a:hover { color: var(--ll-yellow); }
.nav a:hover::after { width: 100%; }
.btn-reserva {
    background: var(--ll-yellow);
    color: #000 !important;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: .12em;
    transition: background .2s ease, transform .2s ease;
}
.btn-reserva::after { display: none !important; }
.btn-reserva:hover { background: var(--ll-yellow-h); transform: translateY(-1px); color:#000 !important; }
.nav-toggle {
    display: none;
    background: none; border: 0; color: var(--ll-yellow);
    font-size: 28px; cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 86vh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,203,5,.18), transparent 55%),
        linear-gradient(180deg, #0d0d0d 0%, #000 100%);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(135deg, rgba(255,203,5,.05) 0 2px, transparent 2px 24px);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero img.hero-logo {
    width: 240px;
    max-width: 60vw;
    margin: 0 auto 24px;
    filter: drop-shadow(0 10px 40px rgba(255,203,5,.25));
}
.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1;
    letter-spacing: .04em;
    margin: 0 0 14px;
    text-transform: uppercase;
    color: var(--ll-text);
}
.hero h1 .accent {
    color: var(--ll-yellow);
    text-shadow: 0 4px 30px rgba(255,203,5,.4);
}
.hero p.lead {
    font-size: 18px;
    color: var(--ll-muted);
    margin: 0 auto 28px;
    max-width: 620px;
}
.hero .cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}
.btn-primary { background: var(--ll-yellow); color: #000; }
.btn-primary:hover { background: var(--ll-yellow-h); color: #000; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ll-yellow); border-color: var(--ll-yellow); }
.btn-ghost:hover { background: var(--ll-yellow); color: #000; }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* ---------- SECTION BASE ---------- */
section.section {
    padding: 90px 0;
    position: relative;
}
.section.dark   { background: var(--ll-bg); }
.section.darker { background: #060606; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow {
    display: inline-block;
    font-family: var(--font-script);
    color: var(--ll-yellow);
    font-size: 30px;
    margin-bottom: 4px;
}
.section-head h2 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: .06em;
    margin: 0;
    line-height: 1.05;
}
.section-head h2 .accent { color: var(--ll-yellow); }
.section-head p {
    max-width: 640px;
    margin: 16px auto 0;
    color: var(--ll-muted);
}

/* ---------- CATEGORÍAS (tabs) ---------- */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.cat-tab {
    background: var(--ll-card);
    color: var(--ll-text);
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    border: 1px solid var(--ll-border);
    transition: all .2s ease;
    user-select: none;
}
.cat-tab:hover { border-color: var(--ll-yellow); color: var(--ll-yellow); }
.cat-tab.active {
    background: var(--ll-yellow);
    color: #000;
    border-color: var(--ll-yellow);
}
.cat-tab .ico { margin-right: 6px; }

/* ---------- MENÚ (cards estilo cartel) ---------- */
.menu-category {
    margin-bottom: 70px;
    scroll-margin-top: 110px;
}
.menu-category-head {
    text-align: center;
    margin-bottom: 28px;
}
.menu-category-head h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 38px;
    letter-spacing: .08em;
    margin: 0;
    color: var(--ll-yellow);
}
.menu-category-head h3 .ico {
    font-size: 30px;
    margin-right: 8px;
    filter: saturate(1.1);
}
.menu-category-head p {
    color: var(--ll-muted);
    margin: 8px 0 0;
    font-size: 14px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dish-card {
    background: var(--ll-yellow);
    color: #111;
    border: 2px solid #000;
    border-radius: var(--ll-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 4px 4px 0 #000;
}
.dish-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}
.dish-card.featured {
    background: #fff36b;
    box-shadow: 4px 4px 0 var(--ll-red);
}
.dish-card.featured:hover {
    box-shadow: 6px 6px 0 var(--ll-red);
}
.dish-photo {
    position: relative;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 2px solid #000;
}
.dish-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.dish-card:hover .dish-photo img { transform: scale(1.05); }
.dish-photo .placeholder {
    font-size: 64px;
    opacity: .9;
}
.dish-photo .featured-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--ll-red);
    color: #fff;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
}

.dish-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dish-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.dish-title h4 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 22px;
    letter-spacing: .04em;
    margin: 0;
    color: #000;
    line-height: 1.05;
}
.dish-price {
    font-family: var(--font-title);
    color: #000;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: .03em;
    white-space: nowrap;
}
.dish-desc {
    color: #2a2a1a;
    font-size: 13px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.35;
}
.dish-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #2a2a1a;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #000;
}
.price-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.price-tag .label {
    font-size: 10px;
    letter-spacing: .15em;
    color: #555;
    text-transform: uppercase;
}
.price-tag .val {
    color: #000;
    font-family: var(--font-title);
    font-size: 18px;
}

/* ---------- EVENTOS ---------- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.event-card {
    background: var(--ll-card);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, border-color .25s ease;
}
.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--ll-yellow);
}
.event-photo {
    position: relative;
    aspect-ratio: 16/10;
    background: #000;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.event-photo img {
    width:100%; height:100%; object-fit: cover;
}
.event-photo .placeholder {
    font-size: 72px;
    opacity: .35;
}
.event-date {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--ll-yellow);
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    line-height: 1;
    font-weight: 800;
    box-shadow: 2px 2px 0 #000;
}
.event-date strong {
    display: block;
    font-family: var(--font-title);
    font-size: 26px;
    letter-spacing: 0;
}
.event-date span {
    display: block;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 10px;
    margin-top: 2px;
}
.event-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.event-body h4 {
    margin: 0;
    color: var(--ll-yellow);
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 24px;
}
.event-when {
    margin: 0;
    font-size: 13px;
    color: var(--ll-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}
.event-desc {
    margin: 4px 0 8px;
    color: #d8d3c7;
    font-size: 14px;
}
.event-body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- UBICACIÓN ---------- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.location-info {
    background: var(--ll-card);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius);
    padding: 34px;
}
.location-info h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 26px;
    margin: 0 0 18px;
    color: #fff;
}
.location-info h3 .accent { color: var(--ll-yellow); }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--ll-border); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico {
    width: 38px; height: 38px;
    background: rgba(255,203,5,.15);
    color: var(--ll-yellow);
    display: grid; place-items: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 18px;
}
.info-row .body { font-size: 15px; color: #d8d3c7; }
.info-row .body strong { display: block; color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.map-wrap {
    position: relative;
    border-radius: var(--ll-radius);
    overflow: hidden;
    min-height: 380px;
    border: 1px solid var(--ll-border);
    background: #000;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }

/* ---------- CONTACTO ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.contact-card {
    background: var(--ll-card);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius);
    padding: 28px 22px;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--ll-yellow); }
.contact-card .ico-big {
    width: 58px; height: 58px; margin: 0 auto 14px;
    background: var(--ll-yellow); color: #000;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 24px;
}
.contact-card h4 {
    font-family: var(--font-title); text-transform: uppercase; letter-spacing: .08em;
    font-size: 18px; margin: 0 0 8px; color: #fff;
}
.contact-card a { color: var(--ll-yellow); font-weight: 700; }

/* ---------- FOOTER ---------- */
footer.site-footer {
    background: #000;
    border-top: 3px solid var(--ll-yellow);
    padding: 50px 0 30px;
    text-align: center;
    color: var(--ll-muted);
    font-size: 14px;
}
footer .foot-logo { width: 90px; margin: 0 auto 14px; }
footer .foot-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 12px 0 18px; }
footer .foot-links a { color: var(--ll-text); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
footer .foot-links a:hover { color: var(--ll-yellow); }
footer .copyright { font-size: 12px; opacity: .7; }

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed;
    bottom: 22px; right: 22px;
    background: #25d366;
    color: #fff !important;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,.55);
    z-index: 100;
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- BANNER POPUP ---------- */
.ll-popup {
    position: fixed; inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.85);
    display: grid; place-items: center;
    padding: 20px;
    animation: ll-fade-in .3s ease;
}
.ll-popup[hidden]{ display:none !important; }
.ll-popup-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--ll-yellow);
    color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    border: 3px solid #000;
    transform: translateY(0);
    animation: ll-pop-in .4s cubic-bezier(.16,1,.3,1);
}
.ll-popup-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #000;
}
.ll-popup-body {
    padding: 26px 26px 30px;
    text-align: center;
}
.ll-popup-eyebrow {
    display: block;
    font-family: var(--font-script);
    font-size: 22px;
    color: #5b4500;
    margin-bottom: 4px;
}
.ll-popup-body h3 {
    margin: 0 0 10px;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 36px;
    letter-spacing: .04em;
    line-height: 1;
    color: #000;
}
.ll-popup-body p {
    color: #222;
    margin: 0 0 16px;
}
.ll-popup-body .btn-primary {
    background: #000;
    color: var(--ll-yellow);
    border-color: #000;
}
.ll-popup-body .btn-primary:hover {
    background: #1a1a1a;
    color: var(--ll-yellow);
}
.ll-popup-close {
    position: absolute;
    top: 8px; right: 8px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.85);
    color: var(--ll-yellow);
    font-size: 22px;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
    z-index: 2;
    transition: background .2s ease;
}
.ll-popup-close:hover { background: #000; }

@keyframes ll-fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes ll-pop-in {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- GALERÍA EVENTOS PASADOS ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.gallery-item {
    background: var(--ll-card);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius-sm);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--ll-yellow); }
.gallery-item .photo {
    aspect-ratio: 4/3;
    background: #000;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.gallery-item .photo img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.gallery-item:hover .photo img { transform: scale(1.04); }
.gallery-item .photo .placeholder { font-size: 60px; opacity: .35; }
.gallery-item .body {
    padding: 14px 16px 18px;
}
.gallery-item h4 {
    margin: 0 0 4px;
    font-family: var(--font-title);
    color: var(--ll-yellow);
    font-size: 22px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.gallery-item .when {
    color: var(--ll-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.gallery-item .desc {
    color: #d8d3c7;
    font-size: 14px;
    margin: 8px 0 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .location-grid { grid-template-columns: 1fr; }
    .map-wrap { min-height: 320px; }
    .nav-toggle { display: inline-block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--ll-bg-2);
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        border-bottom: 1px solid var(--ll-yellow);
    }
    .nav.open { display: flex; }
    .site-header { position: relative; }
}
@media (max-width: 560px) {
    .section { padding: 60px 0; }
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dish-body { padding: 12px; }
    .dish-title h4 { font-size: 17px; }
    .dish-price { font-size: 19px; }
    .dish-desc { font-size: 11px; }
}

/* ==========================================================
   Teaser de carta en home: chips de categoría + título sección
   ========================================================== */
.cat-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 50px;
}
.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px;
    background: var(--ll-card);
    border: 1px solid var(--ll-border);
    border-radius: 10px;
    color: var(--ll-text) !important;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
    text-align: center;
}
.cat-chip:hover {
    transform: translateY(-3px);
    border-color: var(--ll-yellow);
    background: #1f1f1f;
    color: var(--ll-yellow) !important;
}
.cat-chip .ico {
    font-size: 28px;
    line-height: 1;
}
.cat-chip span:last-child {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 14px;
}
.teaser-title {
    text-align: center;
    margin: 10px 0 26px;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ll-yellow);
    font-size: 26px;
}
