/* ============================================================
   El Jardín del Virrey — Styles
   Paleta: Marfil cálido · Beige · Bronce · Terraza con encanto
   ============================================================ */

:root {
  --black:       #F8F2E2;
  --dark:        #E7D4A6;
  --dark-gray:   #F1E7CE;
  --gold:        #A9713C;
  --gold-light:  #D3A468;
  --gold-dark:   #7C4E22;
  --cream:       #EFEDE0;
  --white:       #ffffff;
  --off-white:   #FBF9F2;
  --paper:       #F6F2E7;
  --text-dark:   #2A2117;
  --text-gray:   #6E5F4C;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Raleway', system-ui, sans-serif;
  --header-height: 80px;
  --max-w: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--black); overflow-x: hidden; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); }

/* ── LOADING ────────────────────────────────────────────── */
#loading-screen { position: fixed; inset: 0; z-index: 9999; background: var(--black); display: flex; align-items: center; justify-content: center; transition: opacity .8s ease, visibility .8s ease; }
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; }
.loader-logo { width: 240px; height: auto; object-fit: contain; opacity: 0; filter: drop-shadow(0 0 26px rgba(169,113,60,.35)); animation: logoIn 0.7s var(--ease-out) .1s forwards; position: relative; z-index: 2; }
.loader-ring { position: absolute; top: 50%; left: 50%; width: 280px; height: 150px; border-radius: 50%; border: 1.5px solid rgba(169,113,60,.18); border-top-color: var(--gold); transform: translate(-50%,-50%); animation: spin 1.1s linear infinite; }
.loader-ring-outer { position: absolute; top: 50%; left: 50%; width: 320px; height: 170px; border-radius: 50%; border: 1px solid rgba(169,113,60,.08); border-bottom-color: rgba(169,113,60,.25); transform: translate(-50%,-50%); animation: spin 1.8s linear infinite reverse; }
.loader-bar { width: 180px; height: 1.5px; background: rgba(169,113,60,.16); margin: 32px auto 14px; border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)); animation: barFill 1.3s ease forwards; width: 0; }
.loader-text { color: var(--gold-dark); font-weight: 300; font-size: .7rem; letter-spacing: .55em; text-transform: uppercase; opacity: 0; animation: fadeUp .3s ease .6s forwards; }

@keyframes logoIn { 0% { opacity:0; transform:scale(.8); } 70% { opacity:1; transform:scale(1.03); } 100% { opacity:1; transform:scale(1); } }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes barFill { 0% { width:0; } 100% { width:100%; } }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* ── HEADER ─────────────────────────────────────────────── */
#main-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-height); transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease; }
#main-header.scrolled { background: rgba(248,242,226,.97); backdrop-filter: blur(24px); box-shadow: 0 1px 0 rgba(169,113,60,.22), 0 6px 24px rgba(42,33,23,.06); }
.nav-container { max-width: var(--max-w); margin: 0 auto; padding: 0 44px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border: none; background: none; color: rgba(253,247,235,.94); font-family: var(--font-body); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: color .2s ease; text-shadow: 0 1px 8px rgba(30,20,10,.7); }
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
#main-header.scrolled .nav-link { color: var(--text-dark); text-shadow: none; }
#main-header.scrolled .nav-link:hover, #main-header.scrolled .nav-link.active { color: var(--gold-dark); }
.dropdown-arrow { font-size: .65rem; transition: transform .2s ease; line-height: 1; }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: calc(100% + 10px); left: 50%; background: var(--white); border: 1px solid rgba(169,113,60,.22); border-radius: 10px; min-width: 200px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; overflow: hidden; z-index: 100; box-shadow: 0 16px 40px rgba(42,33,23,.14); }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: var(--text-gray); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; transition: color .15s ease, background .15s ease; }
.dropdown li a:hover { color: var(--gold-dark); background: rgba(169,113,60,.08); }
.dropdown li + li { border-top: 1px solid rgba(42,33,23,.07); }
.lang-dropdown { min-width: 155px; }
.flag-icon { display: inline-block; width: 22px; height: 15px; object-fit: cover; border-radius: 2px; vertical-align: middle; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-logo { margin-left: 12px; }
.logo-img { height: 50px; width: auto; max-width: 150px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(169,113,60,.3)); transition: transform .25s ease, filter .25s ease; }
.logo-img:hover { transform: scale(1.05); }
/* El logo es un monograma claro pensado para fondo oscuro: al oscurecerlo se ve sobre los fondos claros del sitio */
#main-header.scrolled .logo-img { filter: brightness(.42) contrast(1.35) drop-shadow(0 1px 2px rgba(42,33,23,.15)); }
.nav-social { display: flex; align-items: center; gap: 12px; }
.nav-social img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; display: block; transition: transform .2s ease, opacity .2s ease; }
.nav-social a:hover img { transform: translateY(-2px); opacity: .82; }
.hamburger { display: none; }

/* ── HERO ───────────────────────────────────────────────── */
#hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video-wrapper { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.12) translate(-1%,-2%); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,19,10,.38) 0%, rgba(32,22,12,.52) 45%, rgba(24,16,8,.82) 100%); }
#hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px; background: linear-gradient(to bottom, rgba(20,13,7,.6) 0%, transparent 100%); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.hero-title-wrapper { margin-bottom: 52px; }
.hero-subtitle-top { font-family: var(--font-body); font-weight: 600; letter-spacing: .35em; font-size: 2.1rem; color: var(--gold-light); text-transform: uppercase; margin-bottom: 14px; opacity: 0; animation: fadeUp .9s var(--ease-out) .6s forwards; }
.hero-title { font-family: var(--font-display); font-size: clamp(3.2rem, 11vw, 8.4rem); font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -.01em; text-shadow: 0 4px 60px rgba(20,13,7,.55); opacity: 0; animation: heroIn 1.3s var(--ease-out) .9s forwards; }
.hero-subtitle-bottom { font-family: var(--font-body); font-weight: 300; letter-spacing: .85em; font-size: .82rem; color: rgba(253,247,235,.7); text-transform: uppercase; margin-top: 12px; opacity: 0; animation: fadeUp .9s var(--ease-out) 1.2s forwards; }
.hero-tagline { font-family: var(--font-body); font-weight: 300; letter-spacing: .4em; font-size: .72rem; color: var(--gold-light); text-transform: uppercase; margin-top: 8px; opacity: 0; animation: fadeUp .9s var(--ease-out) 1.1s forwards; }
@keyframes heroIn { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:none; } }

.reservar-btn { display: inline-block; padding: 18px 62px; border-radius: 60px; border: 1.5px solid var(--gold-light); color: var(--white); font-weight: 600; font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; cursor: pointer; background: transparent; position: relative; overflow: hidden; transition: color .35s ease; opacity: 0; animation: fadeUp .9s var(--ease-out) 1.5s forwards; }
.reservar-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: -1; }
.reservar-btn:hover { color: var(--white); }
.reservar-btn:hover::before { transform: scaleX(1); }

/* ── MODAL ──────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(28,19,10,.55); z-index: 1990; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.92); z-index: 2000; background: var(--white); border: 1px solid rgba(169,113,60,.28); border-radius: 18px; padding: 52px 48px; max-width: 460px; width: 90%; text-align: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease, transform .3s var(--ease-out); box-shadow: 0 30px 80px rgba(42,33,23,.25); }
.modal.open { opacity:1; visibility:visible; transform:translate(-50%,-50%) scale(1); }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: rgba(42,33,23,.4); font-size: 1.6rem; cursor: pointer; line-height: 1; transition: color .15s ease; }
.modal-close:hover { color: var(--gold-dark); }
.modal h2 { font-family: var(--font-display); color: var(--text-dark); font-size: 1.9rem; margin-bottom: 10px; }
.modal > p { color: var(--text-gray); margin-bottom: 28px; font-size: .92rem; }
.modal-contact { display: flex; flex-direction: column; gap: 14px; }
.modal-phone, .modal-email { display: block; padding: 14px 28px; border: 1px solid rgba(169,113,60,.4); border-radius: 10px; color: var(--gold-dark); font-size: .95rem; font-weight: 500; transition: background .2s ease, color .2s ease; }
.modal-phone:hover, .modal-email:hover { background: var(--gold-dark); color: var(--white); }
.modal-or { font-size: .78rem; color: rgba(42,33,23,.42); margin: 0; }
.modal-note { margin-top: 24px; font-size: .78rem; color: rgba(42,33,23,.45); border-top: 1px solid rgba(42,33,23,.1); padding-top: 18px; }

.admin-login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.admin-login-input { padding: 13px 16px; border: 1px solid rgba(42,33,23,.2); border-radius: 10px; font-size: .95rem; font-family: var(--font-body); }
.admin-login-error { color: #B5453D; font-size: .82rem; margin: 0; min-height: 1em; }
.admin-login-submit { padding: 13px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--white); font-weight: 700; font-size: .92rem; cursor: pointer; }
.admin-login-submit:hover { filter: brightness(1.06); }
.admin-login-submit:disabled { opacity: .6; cursor: wait; }

/* ── SECTIONS ───────────────────────────────────────────── */
.section-dark { background: var(--dark-gray); }
.section-light { background: var(--paper); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 100px 44px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.9rem); text-align: center; margin-bottom: 16px; }
.section-title.gold { color: var(--gold-dark); }
.section-title.dark { color: var(--text-dark); }
.section-title::after { content:''; display:block; width:52px; height:2px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); margin: 18px auto 0; }
.section-subtitle { text-align: center; color: var(--text-gray); font-size: .95rem; letter-spacing: .1em; margin-bottom: 64px; font-style: italic; }

/* ── GALERÍA FOTOS ──────────────────────────────────────── */
#galeria { background: var(--cream); }
.galeria-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; gap: 12px; margin-top: 52px; }
.galeria-item { overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; }
.galeria-item.tall { grid-row: span 2; aspect-ratio: unset; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease-out), filter .65s ease; filter: brightness(.97); }
.galeria-item:hover img { transform: scale(1.07); filter: brightness(1); }

/* ── HORARIOS ───────────────────────────────────────────── */
#horarios { background: var(--cream); }
.horarios-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 64px; }
.horarios-card { background: var(--white); border: 1px solid rgba(169,113,60,.2); border-radius: 18px; padding: 44px 36px; text-align: center; box-shadow: 0 4px 20px rgba(42,33,23,.05); transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.horarios-card:hover { border-color: rgba(169,113,60,.5); transform: translateY(-5px); box-shadow: 0 16px 36px rgba(42,33,23,.1); }
.card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.horarios-card h3 { font-family: var(--font-display); color: var(--gold-dark); font-size: 1.25rem; margin-bottom: 28px; }
.horarios-table { width: 100%; border-collapse: collapse; text-align: left; }
.horarios-table td { padding: 9px 4px; color: var(--text-dark); font-size: .86rem; border-bottom: 1px solid rgba(42,33,23,.07); }
.horarios-table td:first-child { font-weight: 600; color: var(--text-gray); width: 42%; }
.horarios-table tr.closed td, .horarios-table tr.closed td:first-child { color: rgba(42,33,23,.35); }
.direccion-text { color: var(--text-gray); font-size: 1rem; line-height: 1.85; margin-bottom: 22px; }
.mini-map { border: 1px solid rgba(169,113,60,.22); border-radius: 12px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(42,33,23,.06); }
.mini-map iframe { display: block; width: 100%; height: 170px; border: 0; }
.maps-btn { display: inline-block; padding: 10px 26px; border: 1px solid var(--gold-dark); border-radius: 50px; color: var(--gold-dark); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; transition: all .2s ease; margin-bottom: 24px; }
.maps-btn:hover { background: var(--gold-dark); color: var(--white); border-color: var(--gold-dark); }
.contacto-info { margin-top: 18px; }
.contacto-info p { color: var(--text-gray); font-size: .88rem; padding: 6px 0; }
.contacto-info a { color: var(--gold-dark); transition: opacity .15s ease; }
.contacto-info a:hover { opacity: .75; }

/* ── CARTA ──────────────────────────────────────────────── */
.carta-tabs { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 52px; flex-wrap: wrap; }
.carta-tab { padding: 10px 30px; border: 1.5px solid rgba(42,33,23,.18); border-radius: 50px; background: transparent; color: var(--text-gray); font-size: .78rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; transition: all .2s ease; }
.carta-tab:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.carta-tab.active { background: rgba(169,113,60,.14); border-color: var(--gold-dark); color: var(--gold-dark); }
.carta-section { display: none; }
.carta-section.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.menu-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.menu-card { background: var(--off-white); border: 1px solid rgba(42,33,23,.06); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(42,33,23,.08); transition: transform .35s var(--ease-out), box-shadow .35s ease; }
.menu-card:hover { transform: translateY(-7px); box-shadow: 0 16px 40px rgba(42,33,23,.14); }
.menu-card.featured { border: 2px solid var(--gold-dark); }
.menu-card-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.menu-card-img img { width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.menu-card:hover .menu-card-img img { transform: scale(1.06); }
.menu-card-price { position: absolute; top: 12px; right: 12px; background: rgba(30,20,10,.82); color: var(--gold-light); font-weight: 700; font-size: .85rem; padding: 4px 13px; border-radius: 50px; backdrop-filter: blur(8px); border: 1px solid rgba(211,164,104,.3); }
.menu-badge { position: absolute; bottom: 12px; left: 12px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--white); font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.menu-card-body { padding: 22px 20px; }
.menu-card-body h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.menu-card-body p { font-size: .84rem; color: var(--text-gray); line-height: 1.65; }

.bebidas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.bebida-category { background: var(--off-white); border: 1px solid rgba(42,33,23,.06); border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(42,33,23,.06); transition: transform .3s ease, box-shadow .3s ease; }
.bebida-category:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(42,33,23,.1); }
.bebida-icon { font-size: 2rem; margin-bottom: 12px; }
.bebida-category h4 { font-family: var(--font-display); color: var(--text-dark); font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid rgba(169,113,60,.25); }
.bebida-category ul li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(42,33,23,.06); font-size: .84rem; color: var(--text-gray); }
.bebida-category ul li span:last-child { font-weight: 700; color: var(--gold-dark); }

/* ── PROMOCIONES ────────────────────────────────────────── */
.promos-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.promo-card { position: relative; background: var(--off-white); border: 1.5px dashed rgba(169,113,60,.4); border-radius: 16px; padding: 36px 32px; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(42,33,23,.1); }
.promo-foto { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.promo-card h3 { font-family: var(--font-display); color: var(--text-dark); font-size: 1.25rem; margin-bottom: 12px; }
.promo-card p { color: var(--text-gray); font-size: .92rem; line-height: 1.7; }

/* ── EVENTOS ────────────────────────────────────────────── */
.eventos-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.eventos-list > .evento-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc((100% - 24px) / 2); margin: 0 auto; }
.evento-card { position: relative; background: var(--white); border: 1px solid rgba(169,113,60,.18); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(42,33,23,.06); transition: border-color .3s ease, transform .3s var(--ease-out), box-shadow .3s ease; }
.evento-card:hover { border-color: rgba(169,113,60,.5); transform: translateY(-4px); box-shadow: 0 14px 32px rgba(42,33,23,.1); }
.evento-foto { display: block; width: 100%; height: 180px; object-fit: cover; }
.evento-fecha { position: absolute; top: 16px; left: 16px; width: 60px; height: 60px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); box-shadow: 0 8px 20px rgba(42,33,23,.28); z-index: 2; }
.evento-card-nofoto .evento-fecha { position: static; margin: 24px 0 0 24px; }
.evento-dia { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.evento-mes { font-size: .62rem; letter-spacing: .08em; margin-top: 2px; }
.evento-info { padding: 22px 24px 26px; }
.evento-card-nofoto .evento-info { padding-top: 14px; }
.evento-info h3 { font-family: var(--font-display); color: var(--text-dark); font-size: 1.2rem; margin-bottom: 10px; }
.evento-info p { color: var(--text-gray); font-size: .9rem; line-height: 1.65; margin-bottom: 10px; }
.evento-hora { color: var(--gold-dark); font-size: .96rem; font-weight: 600; }

.evento-foto, .promo-foto { cursor: zoom-in; }

/* ── ZOOM DE FOTOS (eventos/promos) ────────────────────────
   Vista ampliada centrada al pasar el ratón por la miniatura.
   object-fit:contain para que se vea entera sea cual sea su
   resolución u orientación. */
.foto-zoom-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.92);
  max-width: min(80vw, 560px);
  max-height: min(80vh, 560px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(20,14,8,.45);
  background: var(--white);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .25s ease, transform .25s ease;
}
.foto-zoom-preview.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ── LIGHTBOX de fotos (toque en móvil/tablet) ────────────
   Pantalla completa al tocar una foto de evento/promo, con
   una X para cerrar. */
.foto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20,13,7,0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, background .3s ease, visibility .3s ease;
}
.foto-lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; background: rgba(20,13,7,.88); }
.foto-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.5); transform: scale(.94); transition: transform .3s ease; }
.foto-lightbox.open img { transform: scale(1); }
.foto-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.foto-lightbox-close:hover { background: rgba(255,255,255,.28); }
body.lightbox-open { overflow: hidden; }

/* ── RESEÑAS ────────────────────────────────────────────── */
.resenas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.resena-card { background: var(--white); border: 1px solid rgba(169,113,60,.18); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(42,33,23,.06); transition: border-color .3s ease, transform .3s var(--ease-out), box-shadow .3s ease; }
.resena-card:hover { border-color: rgba(169,113,60,.5); transform: translateY(-4px); box-shadow: 0 14px 32px rgba(42,33,23,.1); }
.resena-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.resena-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.15rem; }
.resena-autor { color: var(--text-dark); font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.resena-meta { color: var(--text-gray); font-size: .76rem; }
.resena-stars { color: var(--gold-dark); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.resena-texto { color: var(--text-gray); font-size: .9rem; line-height: 1.78; flex: 1; margin-bottom: 16px; font-style: italic; }
.resena-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(42,33,23,.08); padding-top: 14px; margin-top: auto; }
.resena-cuando { color: rgba(42,33,23,.45); font-size: .76rem; }
.resena-verified { display: flex; align-items: center; gap: 6px; color: rgba(42,33,23,.5); font-size: .74rem; }
.google-g { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid rgba(42,33,23,.1); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #4285f4; flex-shrink: 0; }

/* ── HISTORIA TEASER ────────────────────────────────────── */
.historia-teaser-section { position: relative; overflow: hidden; }
.historia-teaser-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(24,16,8,.88) 0%, rgba(30,20,11,.82) 60%, rgba(24,16,8,.88) 100%); z-index: 1; }
.historia-teaser-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; filter: brightness(.5) saturate(.85); }
.historia-teaser-inner { max-width: 680px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.historia-teaser-kicker { color: var(--gold-light); font-size: .72rem; letter-spacing: .55em; text-transform: uppercase; margin-bottom: 20px; display: block; }
.historia-teaser-titulo { font-family: var(--font-display); color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: 20px; line-height: 1.15; }
.historia-teaser-texto { color: rgba(253,247,235,.75); font-size: 1.05rem; line-height: 1.8; margin-bottom: 40px; }
.historia-teaser-btn { display: inline-block; padding: 16px 52px; border-radius: 50px; border: 1.5px solid var(--gold-light); color: var(--gold-light); font-size: .82rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; transition: all .25s ease; }
.historia-teaser-btn:hover { background: var(--gold-light); color: var(--text-dark); border-color: var(--gold-light); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--dark); }
.footer-top { padding: 88px 0 64px; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; padding: 0 44px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo { height: 60px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 16px; filter: brightness(.42) contrast(1.35); }
.footer-brand > p { color: rgba(42,33,23,.55); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 26px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(124,78,34,.35); color: var(--gold-dark); transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease; }
.social-link:hover { border-color: var(--gold-dark); background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.social-link svg { width: 17px; height: 17px; }
.footer-info h4, .footer-hours h4, .footer-links h4 { color: var(--gold-dark); font-family: var(--font-display); font-size: .98rem; margin-bottom: 22px; }
.footer-info p { color: rgba(42,33,23,.72); font-size: .87rem; margin-bottom: 10px; line-height: 1.7; }
.footer-info a { color: var(--text-dark); transition: color .15s ease; }
.footer-info a:hover { color: var(--gold-dark); }
.footer-hours p { color: rgba(42,33,23,.72); font-size: .87rem; margin-bottom: 9px; }
.closed-text { color: #B5453D; font-weight: 600; }
.footer-links ul li { margin-bottom: 11px; }
.footer-links ul li a { color: rgba(42,33,23,.62); font-size: .84rem; transition: color .15s ease; }
.footer-links ul li a:hover { color: var(--gold-dark); }
.footer-bottom { border-top: 1px solid rgba(42,33,23,.14); padding: 26px 44px; text-align: center; }
.footer-bottom p { color: rgba(42,33,23,.5); font-size: .78rem; letter-spacing: .1em; }
.footer-bottom #admin-open-link { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 10px auto 0; color: rgba(42,33,23,.45); font-size: 1.3rem; line-height: 1; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer-bottom #admin-open-link:hover { color: var(--gold-dark); transform: scale(1.25); }

/* ── COOKIE ─────────────────────────────────────────────── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500; background: var(--white); backdrop-filter: blur(20px); border-top: 1px solid rgba(169,113,60,.3); box-shadow: 0 -8px 30px rgba(42,33,23,.1); padding: 18px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transform: translateY(100%); transition: transform .5s var(--ease-out); }
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { color: var(--text-gray); font-size: .84rem; flex: 1; }
.cookie-banner p a { color: var(--gold-dark); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 10px 26px; border-radius: 50px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; cursor: pointer; border: none; transition: all .2s ease; }
.cookie-btn.accept { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--white); }
.cookie-btn.accept:hover { filter: brightness(1.08); }
.cookie-btn.reject { background: transparent; color: var(--text-gray); border: 1px solid rgba(42,33,23,.2); }
.cookie-btn.reject:hover { color: var(--text-dark); border-color: rgba(42,33,23,.4); }

/* ── SCROLL ANIMATIONS ──────────────────────────────────── */
.animate-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s var(--ease-out); }
.animate-on-scroll.visible { opacity: 1; transform: none; }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .22s; }
.animate-delay-3 { transition-delay: .34s; }

/* ── HISTORIA & LEGAL ───────────────────────────────────── */
.page-hero { min-height: 52vh; display: flex; align-items: center; justify-content: center; background: var(--dark-gray); padding: calc(var(--header-height) + 80px) 44px 80px; text-align: center; }
.page-hero-title { font-family: var(--font-display); color: var(--gold-dark); font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; margin-bottom: 18px; }
.page-hero-subtitle { font-size: 1rem; color: var(--text-gray); letter-spacing: .14em; text-transform: uppercase; }
.historia-photo-wrap { max-width: 980px; margin: 0 auto; padding: 56px 44px 0; background: var(--paper); }
.historia-photo { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 56px rgba(42,33,23,.18); }
.historia-content { max-width: 780px; margin: 0 auto; padding: 80px 44px; background: var(--paper); }
.historia-content p { font-size: 1.1rem; line-height: 1.9; color: var(--text-dark); margin-bottom: 28px; }
.historia-content p:first-child::first-letter { font-family: var(--font-display); font-size: 3.5rem; float: left; margin-right: 8px; line-height: 1; color: var(--gold-dark); }
.historia-cta-wrap { text-align: center; padding: 20px 0 60px; background: var(--paper); }
.historia-cta { display: inline-block; padding: 16px 52px; border-radius: 50px; border: 1.5px solid var(--gold-dark); color: var(--gold-dark); font-weight: 600; font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; transition: all .25s ease; }
.historia-cta:hover { background: var(--gold-dark); color: var(--white); }
.legal-content { max-width: 820px; margin: 0 auto; padding: calc(var(--header-height) + 60px) 44px 80px; background: var(--paper); }
.legal-content h1 { font-family: var(--font-display); color: var(--gold-dark); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal-content .legal-date { color: var(--text-gray); font-size: .85rem; margin-bottom: 40px; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-dark); margin: 32px 0 10px; }
.legal-content p { font-size: .97rem; line-height: 1.85; color: var(--text-dark); margin-bottom: 18px; }
.legal-content ul { margin: 0 0 18px 24px; }
.legal-content ul li { font-size: .97rem; line-height: 1.7; color: var(--text-dark); margin-bottom: 6px; list-style: disc; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); font-size: .84rem; font-weight: 600; letter-spacing: .1em; margin-bottom: 40px; transition: gap .2s ease; }
.legal-back:hover { gap: 12px; }

/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .nav-container { padding: 0 20px; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1100; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s ease; }
  #main-header.scrolled .hamburger span, .hamburger.open span { background: var(--text-dark); }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; z-index: 1050; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: rgba(250,244,231,.98); backdrop-filter: blur(24px); transform: translateX(-100%); transition: transform .38s var(--ease-out); }
  .nav-links.open { transform: translateX(0); }
  .nav-links.open .nav-link { color: var(--text-dark); text-shadow: none; }
  .nav-links.open .nav-link:hover, .nav-links.open .nav-link.active { color: var(--gold-dark); }
  .nav-links > li { width: 100%; text-align: center; border-bottom: 1px solid rgba(42,33,23,.08); }
  .nav-link { font-size: 1rem; letter-spacing: .2em; padding: 18px 28px; width: 100%; justify-content: center; }
  .dropdown { position: static; transform: none !important; opacity: 1 !important; visibility: hidden; height: 0; overflow: hidden; background: rgba(42,33,23,.04); border: none; border-radius: 0; backdrop-filter: none; box-shadow: none; transition: height .3s ease, visibility .3s ease; }
  .has-dropdown.mobile-open .dropdown { visibility: visible; height: auto; }
  .dropdown li a { justify-content: center; }
  .nav-right { display: none; }
  #hero { min-height: 100svh; }
  .hero-title { font-size: clamp(2.6rem, 14vw, 4.6rem); }
  .hero-subtitle-top { letter-spacing: .18em; font-size: 1.6rem; }
  .hero-tagline, .hero-subtitle-bottom { letter-spacing: .35em; font-size: .7rem; }
  .hero-title-wrapper { margin-bottom: 40px; }
  .reservar-btn { padding: 15px 44px; font-size: .76rem; letter-spacing: .25em; }
  .container { padding: 64px 20px; }
  .horarios-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 44px; }
  .horarios-card { padding: 30px 22px; }
  .carta-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-bottom: 6px; gap: 8px; margin-bottom: 36px; scrollbar-width: none; }
  .carta-tabs::-webkit-scrollbar { display: none; }
  .carta-tab { flex-shrink: 0; padding: 9px 22px; font-size: .72rem; }
  .menu-grid { grid-template-columns: 1fr; gap: 20px; }
  .bebidas-grid { grid-template-columns: 1fr; gap: 18px; }
  .promos-grid { grid-template-columns: 1fr; gap: 18px; }
  .eventos-list { grid-template-columns: 1fr; gap: 18px; }
  .resenas-grid { grid-template-columns: 1fr; gap: 18px; }
  .resena-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 0 20px; }
  .footer-top { padding: 52px 0 36px; }
  .footer-bottom { padding: 20px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; }
  .modal { padding: 36px 22px; }
  .historia-content, .legal-content { padding: 40px 20px 60px; }
  .historia-photo-wrap { padding: 32px 20px 0; }
  .page-hero { padding: calc(var(--header-height) + 48px) 20px 48px; }
  .section-subtitle { margin-bottom: 44px; }
  .galeria-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .galeria-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .horarios-grid { grid-template-columns: repeat(2,1fr); }
  .menu-grid { grid-template-columns: repeat(2,1fr); }
  .bebidas-grid { grid-template-columns: repeat(2,1fr); }
  .resenas-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .container { padding: 80px 32px; }
}
