/* =========================================================
   CERNUNNOS – COCTELERÍA · bar.css
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--bar-white);
    background: var(--bar-bg);
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── Reveal ───────────────────────────────────────────────── */
.bar-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}
.bar-reveal.is-visible { opacity: 1; transform: none; }
.bar-reveal.d1 { transition-delay: 0.12s; }
.bar-reveal.d2 { transition-delay: 0.24s; }
.bar-reveal.d3 { transition-delay: 0.36s; }
.bar-reveal.d4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    .bar-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Shared ───────────────────────────────────────────────── */
.bar-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.bar-section { padding: 96px 0; }

.bar-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bar-violet);
    margin-bottom: 18px;
}

.bar-display {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--bar-white);
}

.bar-display em {
    font-style: normal;
    color: var(--bar-violet);
}

.bar-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
    color: var(--bar-white);
}

.bar-lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--bar-muted);
    max-width: 54ch;
}

.bar-rule {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--bar-violet);
    margin: 24px 0;
    box-shadow: 0 0 8px var(--bar-violet-glow);
}

/* Botones */
.bar-btn {
    display: inline-block;
    padding: 13px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--bar-violet);
    color: var(--bar-white);
    background: transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--ease-expo);
}
.bar-btn:hover {
    background: var(--bar-violet);
    color: var(--bar-bg);
    box-shadow: 0 0 28px var(--bar-violet-glow);
    transform: translateY(-2px);
}
.bar-btn-solid {
    background: var(--bar-violet);
    color: var(--bar-bg);
}
.bar-btn-solid:hover {
    background: #a849d8;
    border-color: #a849d8;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.bar-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.bar-nav--solid {
    background: rgba(5,5,10,0.92);
    backdrop-filter: blur(12px);
    border-color: var(--bar-border);
}

.bar-nav-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bar-nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}

.bar-wordmark {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: var(--bar-white);
    letter-spacing: 0.04em;
}

.bar-wordmark span { color: var(--bar-violet); }

.bar-tagline-nav {
    font-family: var(--font-heading);
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bar-muted);
}

.bar-nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    list-style: none;
}

.bar-nav-links a {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bar-muted);
    transition: color 0.2s ease;
}

.bar-nav-links a:hover { color: var(--bar-white); }

.bar-nav-links .bar-btn {
    padding: 8px 20px;
    font-size: 11px;
}

.bar-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 4px;
}

.bar-nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--bar-white);
    transition: var(--transition);
}

/* ── HERO ─────────────────────────────────────────────────── */
.bar-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.bar-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    z-index: 0;
}

.bar-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(5,5,10,0.85) 0%,
        rgba(5,5,10,0.55) 55%,
        rgba(5,5,10,0.75) 100%
    );
}

.bar-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 28px;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

.bar-hero-content .bar-display {
    font-size: clamp(3.8rem, 9vw, 7.5rem);
    max-width: 10ch;
    line-height: 0.92;
    margin-bottom: 28px;
}

.bar-hero-content .bar-lead {
    margin-bottom: 40px;
    max-width: 42ch;
}

.bar-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.bar-hero-scroll {
    position: absolute;
    bottom: 36px;
    right: 48px;
    z-index: 1;
    writing-mode: vertical-rl;
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bar-muted-2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-hero-scroll::before {
    content: '';
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--bar-violet-dim));
}

/* ── MANIFIESTO ───────────────────────────────────────────── */
.bar-manifiesto {
    background: var(--bar-bg);
    text-align: center;
    padding: 112px 28px;
    position: relative;
}

.bar-manifiesto::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 1px;
    height: 72px;
    background: linear-gradient(to bottom, transparent, var(--bar-violet));
}

.bar-manifiesto .bar-display {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    max-width: 16ch;
    margin: 0 auto 28px;
}

.bar-manifiesto .bar-lead {
    font-size: 17px;
    max-width: 58ch;
    margin: 0 auto;
    color: var(--bar-muted);
    line-height: 1.9;
}

/* ── CARTA ────────────────────────────────────────────────── */
.bar-carta { background: var(--bar-surface); }

.bar-carta-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.bar-carta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
}

.bar-cocktail-card {
    position: relative;
    overflow: hidden;
    background: var(--bar-bg);
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

.bar-cocktail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) saturate(0.9);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.bar-cocktail-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bar-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    filter: brightness(0.5);
}

.bar-cocktail-card:hover img { filter: brightness(0.85) saturate(1.1); transform: scale(1.04); }

.bar-cocktail-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 24px 24px;
    background: linear-gradient(to top, rgba(5,5,10,0.95) 0%, transparent 100%);
    transform: translateY(8px);
    transition: transform 0.35s var(--ease-expo);
}

.bar-cocktail-card:hover .bar-cocktail-info { transform: none; }

.bar-cocktail-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 26px;
    color: var(--bar-white);
    line-height: 1.1;
    margin-bottom: 6px;
}

.bar-cocktail-bases {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bar-violet-dim);
    margin-bottom: 10px;
}

.bar-cocktail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bar-cocktail-price {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--bar-white);
}

.bar-cocktail-tag {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bar-bg);
    background: var(--bar-violet);
    padding: 3px 10px;
    border-radius: 2px;
}

.bar-carta-placeholder {
    grid-column: 1 / -1;
    padding: 48px;
    border: 1px dashed var(--bar-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--bar-muted-2);
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── EL ESPACIO ───────────────────────────────────────────── */
.bar-espacio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}

.bar-espacio-img {
    position: relative;
    overflow: hidden;
}

.bar-espacio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) saturate(0.85);
    transition: filter 0.5s ease;
}

.bar-espacio-img:hover img { filter: brightness(0.9) saturate(1); }

.bar-espacio-text {
    background: var(--bar-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px;
    position: relative;
}

.bar-espacio-text::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--bar-border);
}

.bar-espacio-text .bar-lead { color: var(--bar-muted); }

.bar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--bar-border);
}

.bar-stat-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 40px;
    font-weight: 600;
    color: var(--bar-violet);
    line-height: 1;
}

.bar-stat-label {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bar-muted);
    margin-top: 4px;
}

/* ── RESERVAS ─────────────────────────────────────────────── */
.bar-reservas {
    background: var(--bar-bg);
    text-align: center;
    padding: 112px 28px;
    position: relative;
    overflow: hidden;
}

.bar-reservas::before,
.bar-reservas::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--bar-violet-glow);
    filter: blur(100px);
    pointer-events: none;
}

.bar-reservas::before { width: 500px; height: 500px; top: -200px; left: -100px; }
.bar-reservas::after  { width: 400px; height: 400px; bottom: -150px; right: -80px; }

.bar-reservas-inner { position: relative; z-index: 1; }

.bar-reservas .bar-display {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 18px;
}

.bar-reservas .bar-lead {
    margin: 0 auto 40px;
    max-width: 46ch;
}

.bar-reservas-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.bar-tel {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 28px;
    color: var(--bar-violet);
    display: block;
    margin-top: 32px;
    transition: color 0.2s ease;
}

.bar-tel:hover { color: var(--bar-white); }

/* ── FOOTER ──────────────────────────────────────────────── */
.bar-footer {
    background: var(--bar-surface);
    border-top: 1px solid var(--bar-border);
    padding: 56px 0 28px;
}

.bar-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.bar-footer-about .bar-wordmark { font-size: 28px; margin-bottom: 14px; }

.bar-footer-about p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--bar-muted);
    max-width: 28ch;
}

.bar-footer h4 {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bar-violet);
    margin-bottom: 18px;
}

.bar-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.bar-footer ul li {
    font-size: 14px;
    color: var(--bar-muted);
    line-height: 1.4;
}

.bar-footer ul li strong { color: rgba(255,255,255,0.7); font-weight: 600; }

.bar-footer-bottom {
    border-top: 1px solid var(--bar-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.bar-footer-bottom p { font-size: 12px; color: var(--bar-muted-2); }
.bar-footer-bottom a { font-size: 12px; color: var(--bar-violet); transition: color 0.2s ease; }
.bar-footer-bottom a:hover { color: var(--bar-white); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .bar-espacio { grid-template-columns: 1fr; }
    .bar-espacio-img { aspect-ratio: 16 / 9; }
    .bar-espacio-text { padding: 48px 32px; }
    .bar-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .bar-section { padding: 64px 0; }
    .bar-nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(5,5,10,0.97); backdrop-filter: blur(12px); padding: 20px 28px 28px; gap: 20px; border-bottom: 1px solid var(--bar-border); }
    .bar-nav-links.is-open { display: flex; }
    .bar-nav-toggle { display: flex; }
    .bar-carta-grid { grid-template-columns: 1fr; }
    .bar-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .bar-footer-bottom { flex-direction: column; text-align: center; }
    .bar-hero-scroll { display: none; }
    .bar-stats { grid-template-columns: 1fr 1fr; }
}
