/* ==========================================================
   Candilejas by Kokomo — estilo público
   Inspirado en el logo: gris oscuro + rojo + dorado
   ========================================================== */

:root {
    --cj-bg:        #1a1a1c;
    --cj-bg-2:      #222226;
    --cj-card:      #2a2a2f;
    --cj-border:    #3a3a40;
    --cj-text:      #f4f1ea;
    --cj-muted:     #a9a59d;
    --cj-red:       #d1322c;
    --cj-red-hover: #ee4a43;
    --cj-gold:      #e6a23c;
    --cj-white:     #ffffff;
    --cj-shadow:    0 10px 30px rgba(0,0,0,.35);
    --cj-radius:    14px;
    --cj-radius-sm: 8px;
    --font-title:   '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(--cj-bg);
    color: var(--cj-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(--cj-gold);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--cj-red-hover); }

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

/* ---------- TOPBAR ---------- */
.topbar {
    background: #111;
    font-size: 13px;
    color: #bdb8ae;
    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: #f4f1ea; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-sep { opacity: .3; }

/* ---------- HEADER / NAV ---------- */
.site-header {
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0));
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(26,26,28,.88);
    border-bottom: 1px solid var(--cj-border);
}
.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: 22px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}
.site-header .brand small {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--cj-gold);
    margin-top: 4px;
}
.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav a {
    color: var(--cj-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(--cj-red);
    transition: width .25s ease;
}
.nav a:hover { color: var(--cj-white); }
.nav a:hover::after { width: 100%; }
.btn-reserva {
    background: var(--cj-red);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .1em;
    transition: background .2s ease, transform .2s ease;
}
.btn-reserva:hover { background: var(--cj-red-hover); transform: translateY(-1px); }
.nav-toggle {
    display: none;
    background: none; border: 0; color: #fff;
    font-size: 28px; cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 84vh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(209,50,44,.28), transparent 55%),
        linear-gradient(180deg, #1a1a1c 0%, #111 100%);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(135deg, rgba(230,162,60,.04) 0 2px, transparent 2px 22px);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero img.hero-logo {
    width: 260px;
    max-width: 60vw;
    margin: 0 auto 24px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.55));
}
.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1;
    letter-spacing: .04em;
    margin: 0 0 12px;
    text-transform: uppercase;
}
.hero h1 .accent {
    color: var(--cj-red);
    font-family: var(--font-script);
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}
.hero p.lead {
    font-size: 18px;
    color: var(--cj-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 26px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
}
.btn-primary { background: var(--cj-red); color: #fff; }
.btn-primary:hover { background: var(--cj-red-hover); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--cj-gold); }
.btn-ghost:hover { background: var(--cj-gold); color: #111; }

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

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

/* ---------- MENÚ (cards) ---------- */
.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: 32px;
    letter-spacing: .08em;
    margin: 0;
    color: #fff;
}
.menu-category-head h3 .ico {
    font-size: 28px;
    margin-right: 8px;
    filter: saturate(1.1);
}
.menu-category-head p {
    color: var(--cj-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: linear-gradient(180deg, var(--cj-card) 0%, #25252a 100%);
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.dish-card:hover {
    transform: translateY(-4px);
    border-color: var(--cj-gold);
    box-shadow: var(--cj-shadow);
}
.dish-card.featured {
    border-color: var(--cj-red);
    box-shadow: 0 0 0 1px rgba(209,50,44,.25), var(--cj-shadow);
}
.dish-photo {
    position: relative;
    aspect-ratio: 4/3;
    background: #1a1a1c;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.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: .35;
    filter: grayscale(.2);
}
.dish-photo .featured-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--cj-red);
    color: #fff;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.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: 18px;
    letter-spacing: .05em;
    margin: 0;
    color: #fff;
}
.dish-price {
    font-family: var(--font-title);
    color: var(--cj-gold);
    font-size: 20px;
    letter-spacing: .03em;
    white-space: nowrap;
}
.dish-desc {
    color: var(--cj-muted);
    font-size: 14px;
    margin: 0;
}
.dish-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: var(--cj-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--cj-border);
}
.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: var(--cj-muted);
    text-transform: uppercase;
}
.price-tag .val {
    color: var(--cj-gold);
    font-family: var(--font-title);
    font-size: 16px;
}

/* ---------- UBICACIÓN ---------- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.location-info {
    background: var(--cj-card);
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    padding: 34px;
}
.location-info h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 22px;
    margin: 0 0 18px;
}
.location-info h3 .accent { color: var(--cj-red); }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--cj-border); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico {
    width: 38px; height: 38px;
    background: rgba(209,50,44,.15);
    color: var(--cj-red);
    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(--cj-radius);
    overflow: hidden;
    min-height: 380px;
    border: 1px solid var(--cj-border);
}
.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(--cj-card);
    border: 1px solid var(--cj-border);
    border-radius: var(--cj-radius);
    padding: 28px 22px;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--cj-gold); }
.contact-card .ico-big {
    width: 58px; height: 58px; margin: 0 auto 14px;
    background: var(--cj-red); color: #fff;
    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: 16px; margin: 0 0 8px; color: #fff;
}
.contact-card a { color: var(--cj-gold); font-weight: 600; }

/* ---------- FOOTER ---------- */
footer.site-footer {
    background: #0d0d0f;
    border-top: 2px solid var(--cj-red);
    padding: 50px 0 30px;
    text-align: center;
    color: var(--cj-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(--cj-text); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
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,.35);
    z-index: 100;
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- 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(--cj-bg-2);
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        border-bottom: 1px solid var(--cj-border);
    }
    .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: 15px; }
    .dish-price { font-size: 16px; }
    .dish-desc { font-size: 12px; }
}
