/* ============================================================
   CASA BAÜ — Sistema de diseño · Bauhaus / De Stijl refinado
   Minimalista · profesional · sobrio
   ============================================================ */

/* ---------- 1. Variables ---------- */
:root {
  --red:    #D8362A;
  --yellow: #F4C20D;
  --blue:   #114B97;
  --black:  #111111;
  --ink:    #1A1A1A;
  --grey:   #6B6B6B;
  --line:   #E6E2D8;     /* líneas finas */
  --paper:  #FBFAF6;     /* fondo general */
  --white:  #FFFFFF;

  --display: "Jost", "Century Gothic", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --bar: 8px;            /* grosor de las líneas Mondrian de las piezas gráficas */
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--yellow); color: var(--black); }

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before { content: ""; width: 22px; height: 10px; background: var(--red); display: inline-block; }
.eyebrow.b::before { background: var(--blue); }
.eyebrow.y::before { background: var(--yellow); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- 4. Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: .4rem 0;
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--red); }

.nav-cta {
  font-family: var(--display); font-weight: 500; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--white); background: var(--black);
  padding: .7rem 1.4rem; transition: background .25s;
}
.nav-cta:hover { background: var(--red); }

.burger { display: none; width: 44px; height: 44px; }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 26px; height: 2px; background: var(--black);
  margin-inline: auto; position: relative; transition: .25s;
}
.burger span::before { position: absolute; top: -7px; }
.burger span::after  { position: absolute; top: 7px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: rotate(45deg); top: 0; }
.nav.open .burger span::after  { transform: rotate(-45deg); top: 0; }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 500; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .85rem 1.7rem; border: 1.5px solid var(--black);
  background: var(--black); color: var(--white);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--outline { background: transparent; color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--black); border-color: var(--black); }

/* ---------- 6. Pieza Mondrian: imagen de fondo + líneas que se desplazan ---------- */
.mondrian-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border: var(--bar) solid var(--black);
  overflow: hidden;
}
/* Imagen de fondo con transición (para el cambio cíclico) */
.mondrian-art { transition: background-image .4s ease; }
/* Campos de color Mondrian sobre la imagen */
.mondrian-art .mblock { position: absolute; opacity: 1; transition: opacity .7s var(--ease) .9s; }
.mondrian-art .mblock.r { background: var(--red); }
.mondrian-art .mblock.b { background: var(--blue); }
.mondrian-art .mblock.y { background: var(--yellow); }
/* Líneas negras: estado formado por defecto; transición para deslizar al formar */
.mondrian-art .mline { position: absolute; background: var(--black); transform: translate(0,0); transition: transform 1s var(--ease); }
.mondrian-art .mline.v { top: 0; bottom: 0; width: var(--bar); }
.mondrian-art .mline.h { left: 0; right: 0; height: var(--bar); }
/* Estado "reset": líneas fuera y bloques ocultos, sin transición (instantáneo) */
.mondrian-art.reset .mline { transition: none; }
.mondrian-art.reset .mline.v { transform: translateY(-115%); }
.mondrian-art.reset .mline.h { transform: translateX(-115%); }
.mondrian-art.reset .mblock { opacity: 0; transition: none; }

/* Composición A (home) — retardos al formar */
.mondrian-art.comp-a .v1 { left: 58%; transition-delay: .05s; }
.mondrian-art.comp-a .v2 { left: 80%; transition-delay: .2s; }
.mondrian-art.comp-a .h1 { top: 42%; transition-delay: .35s; }
.mondrian-art.comp-a .h2 { top: 70%; transition-delay: .5s; }
.mondrian-art.comp-a .blk-r { top: 0;   left: 80%; right: 0; height: 42%; }
.mondrian-art.comp-a .blk-b { top: 42%; left: 58%; width: 22%; height: 28%; }
.mondrian-art.comp-a .blk-y { top: 70%; left: 0;   width: 58%; height: 30%; }

/* Composición B (nosotros) — espejada */
.mondrian-art.comp-b .v1 { left: 22%; transition-delay: .05s; }
.mondrian-art.comp-b .v2 { left: 44%; transition-delay: .2s; }
.mondrian-art.comp-b .h1 { top: 34%; transition-delay: .35s; }
.mondrian-art.comp-b .h2 { top: 64%; transition-delay: .5s; }
.mondrian-art.comp-b .blk-b { top: 0;   left: 0;   width: 22%; height: 34%; }
.mondrian-art.comp-b .blk-y { top: 34%; left: 22%; width: 22%; height: 30%; }
.mondrian-art.comp-b .blk-r { top: 64%; left: 44%; right: 0;   height: 36%; }

@media (prefers-reduced-motion: reduce) {
  .mondrian-art .mline { transition: none; transform: none; }
  .mondrian-art .mblock { transition: none; opacity: 1; }
}

/* Banda Mondrian fina (divisor minimalista) */
.mondrian-rule { display: grid; grid-template-columns: 5fr 1fr 2fr 1fr 3fr; height: 6px; }
.mondrian-rule i:nth-child(1){ background: var(--black); }
.mondrian-rule i:nth-child(2){ background: var(--red); }
.mondrian-rule i:nth-child(3){ background: var(--black); }
.mondrian-rule i:nth-child(4){ background: var(--yellow); }
.mondrian-rule i:nth-child(5){ background: var(--blue); }

/* ---------- 7. Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; letter-spacing: -.02em; }
.hero-copy h1 b { font-weight: 600; }
.hero-copy h1 em { font-style: normal; color: var(--red); }
.hero-copy p { font-size: 1.08rem; color: var(--grey); max-width: 44ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.hero-meta { display: flex; gap: 2.4rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-meta div b { font-family: var(--display); font-size: 1.4rem; font-weight: 500; display: block; }
.hero-meta div span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }

/* ---------- 8. Secciones ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 500; margin: .8rem 0 .9rem; letter-spacing: -.015em; }
.section-head p { font-size: 1.05rem; color: var(--grey); }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Tarjetas (los 4 mundos) — limpias, acento superior de color */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); padding: 2rem 1.6rem 1.8rem;
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 6px; background: var(--red); }
.card:nth-child(2)::before { background: var(--yellow); }
.card:nth-child(3)::before { background: var(--blue); }
.card:nth-child(4)::before { background: var(--black); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.card-logo { width: 56px; height: 56px; object-fit: contain; flex: none; margin-top: -.3rem; }
.card .k { font-family: var(--display); font-size: .8rem; letter-spacing: .2em; color: var(--grey); }
.card h3 { font-size: 1.35rem; font-weight: 500; }
.card p { font-size: .95rem; color: var(--grey); }
.card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }

/* Split imagen + texto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split .media { aspect-ratio: 4 / 3; background-size: cover; background-position: center; border: 1px solid var(--line); }
.split .text { display: flex; flex-direction: column; gap: 1.1rem; }
.split .text p { color: var(--grey); }
.split.reverse .media { order: 2; }

/* Franja de cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 2rem 1.4rem; text-align: center; }
.stat b { font-family: var(--display); font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 500; display: block; }
.stat:nth-child(1) b { color: var(--red); }
.stat:nth-child(2) b { color: var(--blue); }
.stat:nth-child(3) b { color: var(--ink); }
.stat:nth-child(4) b { color: var(--yellow); -webkit-text-stroke: .5px var(--black); }
.stat span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }

/* CTA destacado */
.cta-band { background: var(--black); color: var(--white); padding: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 500; }
.cta-band p { color: #b9b9b9; margin-top: .5rem; }
.cta-band .btn { border-color: var(--white); background: var(--white); color: var(--black); }
.cta-band .btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
@media (max-width: 720px){ .cta-band { grid-template-columns: 1fr; } }

/* ---------- 9. Cartas / Menú ---------- */
.menu-tabs { display: flex; gap: 2.2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.6rem; }
.menu-tab {
  font-family: var(--display); font-weight: 500; font-size: .92rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--grey); padding: 0 0 1rem; position: relative; transition: color .25s;
}
.menu-tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--red); transition: width .3s var(--ease); }
.menu-tab[data-tab="pizza"]::after { background: var(--blue); }
.menu-tab[data-tab="cafe"]::after { background: var(--yellow); }
.menu-tab[data-tab="postres"]::after { background: var(--yellow); }
.menu-tab[data-tab="bar"]::after { background: var(--blue); }
.menu-tab:hover { color: var(--ink); }
.menu-tab[aria-selected="true"] { color: var(--ink); }
.menu-tab[aria-selected="true"]::after { width: 100%; }

/* Línea gráfica propia del Café (su paleta) — recolorea acentos del Café */
.cafe-theme {
  --red: #DB4639;     /* rojo café */
  --yellow: #FCBA43;  /* ámbar café */
  --blue: #2B4662;    /* azul navy café */
}
.cafe-theme.menu-tab[data-tab="cafe"]::after { background: #E58A38; }
#panel-cafe .d-price, #panel-cafe .d-col { color: #E58A38; }
#panel-cafe .menu-brand { border-bottom-color: #FACD94; }
/* Iconos de categoría del Café con su línea gráfica (navy · naranja · ámbar · rojo) */
#panel-cafe .menu-cat h3::before { background: #2B4662; }
#panel-cafe .menu-cat:nth-child(4n+2) h3::before { background: #E58A38; }
#panel-cafe .menu-cat:nth-child(4n+3) h3::before { background: #FCBA43; }
#panel-cafe .menu-cat:nth-child(4n) h3::before { background: #DB4639; }
#panel-cafe .subcat-title::before { background: #E58A38; }
#panel-cafe .size-pill { border-color: #FACD94; }
#panel-cafe .sh-label { color: #2B4662; }

/* Pizza usa verde Italia en lugar del azul */
.pizza-theme { --blue: #009246; }
.pizza-theme.menu-tab[data-tab="pizza"]::after { background: #009246; }
/* Marcadores de categoría con colores de la bandera de Italia (verde / rojo) */
#panel-pizza .menu-cat h3::before { background: #CE2B37; }
#panel-pizza .menu-cat:nth-child(even) h3::before { background: #009246; }
#panel-pizza .subcat-title::before { background: #009246; }

.menu-panel { display: none; }
.menu-panel.active { display: block; }
.menu-brand { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.menu-brand img { width: 78px; height: 78px; object-fit: contain; flex: none; }
.menu-brand h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.menu-brand p { color: var(--grey); font-size: .96rem; margin-top: .2rem; }
@media (max-width: 480px){ .menu-brand img { width: 60px; height: 60px; } }
.menu-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.menu-cat h3 {
  font-size: 1.2rem; font-weight: 500; margin-bottom: 1rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: .6rem;
  letter-spacing: .02em;
}
.menu-cat h3::before { content: ""; width: 12px; height: 12px; background: var(--red); flex: none; }
.menu-cat:nth-child(4n+2) h3::before { background: var(--blue); }
.menu-cat:nth-child(4n+3) h3::before { background: var(--yellow); }
.menu-cat:nth-child(4n) h3::before { background: var(--black); }
.dish { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.dish:last-child { border-bottom: none; }
.dish .d-name { font-weight: 600; font-size: .98rem; }
.dish .d-name .d-alt { font-weight: 400; font-style: italic; font-size: .85em; color: var(--grey); }
.dish .d-desc { font-size: .85rem; color: var(--grey); margin-top: .15rem; }
.dish .d-price { font-family: var(--display); font-weight: 500; color: var(--blue); text-align: right; flex: none; }
/* Salsas / opciones a elección — chips ordenados */
.d-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .5rem; }
.d-opts-t { font-family: var(--display); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-right: .25rem; }
.d-chip { font-size: .76rem; font-weight: 500; line-height: 1; padding: .3rem .55rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.cafe-theme .d-chip { border-color: #FACD94; }
.note { margin-top: 2.2rem; font-size: .88rem; color: var(--grey); max-width: 64ch; }
.note a { color: var(--blue); font-weight: 600; }

/* Banner de portada de la carta + subtítulos + imágenes por categoría */
.menu-banner { position: relative; width: 100%; height: 320px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 2.4rem; background: var(--black); }
.menu-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(22px) brightness(.6); transform: scale(1.18); }
/* Por defecto: recorte uniforme (cover). El fondo desenfocado queda oculto detrás. */
.menu-banner-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Solo en la carta de Restaurante: imagen completa (contain) sobre el fondo desenfocado. */
#panel-restobar .menu-banner-img { object-fit: contain; }
@media (max-width: 640px){ .menu-banner { height: 200px; } }
.cat-sub { color: var(--grey); font-size: .92rem; font-style: italic; margin: -.4rem 0 1rem; }
/* Tamaños como encabezados de columna alineados sobre los precios */
.size-head { display: flex; align-items: center; gap: .8rem; margin: .1rem 0 1.1rem; }
.sh-label { flex: 1; min-width: 0; text-align: right; font-family: var(--display); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.sh-cols { display: flex; gap: .35rem; flex: none; }
.size-pill { width: 88px; box-sizing: border-box; text-align: center; font-family: var(--display); font-size: .78rem; font-weight: 500; letter-spacing: .03em; padding: .32rem .2rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); white-space: nowrap; }
.menu-cat.has-sizes .dish { align-items: flex-start; }
.menu-cat.has-sizes .d-info { flex: 1; min-width: 0; }
.d-cols { display: flex; gap: .35rem; flex: none; }
.d-col { width: 88px; box-sizing: border-box; text-align: center; font-family: var(--display); font-weight: 500; font-size: 1.08rem; color: var(--blue); white-space: nowrap; }
@media (max-width: 540px){
  .size-head { gap: .25rem; }
  .d-cols { gap: .25rem; }
  .size-pill { width: 74px; font-size: .74rem; padding: .3rem .1rem; }
  .d-col { width: 74px; font-size: .98rem; }
  .sh-label { letter-spacing: .06em; }
}
.cat-image { display: block; width: 100%; height: auto; border: 1px solid var(--line); margin-top: 1.2rem; }
.cat-foot { font-style: italic; color: var(--grey); font-size: .85rem; margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid var(--line); }

/* Mapa (Contacto) */
.map-frame { position: relative; width: 100%; aspect-ratio: 16 / 7; border: var(--bar) solid var(--black); box-shadow: var(--shadow); background: var(--paper-2, #ECE7D9); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px){ .map-frame { aspect-ratio: 4 / 5; } }
.subcat { margin-top: 1.4rem; }
.subcat-title { font-family: var(--display); font-weight: 500; font-size: 1.02rem; letter-spacing: .02em; margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--ink); display: flex; align-items: center; gap: .5rem; }
.subcat-title::before { content: ""; width: 9px; height: 9px; background: var(--yellow); flex: none; }

/* ---------- 10. Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.g-item { background-size: cover; background-position: center; border: 1px solid var(--line); position: relative; overflow: hidden; }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item::after { content: ""; position: absolute; inset: 0; background: var(--c, transparent); opacity: 0; transition: opacity .35s; mix-blend-mode: multiply; }
.g-item.r { --c: var(--red); } .g-item.b { --c: var(--blue); } .g-item.y { --c: var(--yellow); }
.g-item:hover::after { opacity: .35; }
.g-tile { display: grid; place-items: center; color: var(--white); font-family: var(--display); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.g-tile.red { background: var(--red); } .g-tile.blue { background: var(--blue); } .g-tile.yellow { background: var(--yellow); color: var(--black); }

/* ---------- 11. Formularios ---------- */
.form-wrap { display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--line); background: var(--white); }
.form-box { padding: clamp(1.8rem, 4vw, 2.8rem); }
.form-side { background: var(--black); color: var(--white); padding: clamp(1.8rem, 4vw, 2.8rem); display: flex; flex-direction: column; gap: 1.3rem; }
.form-side h3 { font-size: 1.5rem; font-weight: 500; }
.form-side .info-item { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; color: #cccccc; }
.form-side .info-item b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--yellow); margin-bottom: .15rem; }
.form-side .chip { width: 12px; height: 12px; background: var(--yellow); flex: none; margin-top: .45rem; }
.form-side .chip.r { background: var(--red); } .form-side .chip.b { background: var(--blue); }
form .field { margin-bottom: 1.1rem; }
form label { display: block; font-family: var(--display); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: .45rem; }
form input, form select, form textarea {
  width: 100%; padding: .8rem .9rem; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .25s;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--red); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-msg { margin-top: 1rem; padding: 1rem 1.1rem; border-left: 4px solid var(--blue); background: var(--paper); font-size: .95rem; display: none; }
.form-msg.show { display: block; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--black); color: #cfcfcf; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding: clamp(2.8rem, 5vw, 4rem) 0 2.5rem; }
.site-footer .f-logo { height: 34px; width: auto; filter: invert(1) brightness(1.4); margin-bottom: 1.1rem; }
.site-footer p, .site-footer li { font-size: .92rem; line-height: 1.9; }
.site-footer h4 { font-family: var(--display); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.site-footer a { color: #cfcfcf; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer .tagline { font-family: var(--display); letter-spacing: .26em; text-transform: uppercase; font-size: .8rem; color: #8a8a8a; margin-top: .8rem; }
.foot-bottom { border-top: 1px solid #2a2a2a; padding: 1.3rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: #8a8a8a; }

/* ---------- 13. Sin animación de entrada (estático, profesional) ---------- */
.reveal, .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- 14. Responsive ---------- */
@media (max-width: 960px){
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mondrian-art { aspect-ratio: 16 / 11; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse .media { grid-template-columns: 1fr; order: 0; }
  .split .media { aspect-ratio: 16/10; }
  .form-wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px){
  .burger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding-inline: 1.25rem;
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav.open .nav-links { max-height: 420px; }
  .nav-links a { width: 100%; padding: 1rem 0; border-top: 1px solid var(--line); }
  .nav-links a:first-child { border-top: none; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
}

@media (max-width: 680px){
  .menu-cats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-item.wide, .g-item.tall { grid-column: auto; grid-row: auto; }
  .menu-tabs { gap: 1.4rem; }
  form .row { grid-template-columns: 1fr; }
}

/* ============================================================
   Administrador de cartas (modal)
   ============================================================ */
.adm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(17,17,17,.55); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 3vh 1rem; overflow-y: auto;
}
.adm-overlay.open { display: flex; }
.adm-modal {
  width: min(100%, 980px); background: var(--paper);
  border: 1px solid var(--black); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
  display: flex; flex-direction: column; max-height: 94vh;
}
.adm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--white);
  position: sticky; top: 0; z-index: 2;
}
.adm-title { font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: .02em; display: flex; align-items: center; gap: .6rem; }
.adm-dot { width: 14px; height: 14px; background: var(--red); display: inline-block; box-shadow: 18px 0 0 var(--yellow), 36px 0 0 var(--blue); margin-right: 36px; }
.adm-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.adm-btn {
  font-family: var(--body); font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: .5rem .9rem; border: 1px solid var(--black); background: var(--white); color: var(--ink);
  transition: background .2s, color .2s;
}
.adm-btn:hover { background: var(--paper-2, #ECE7D9); }
.adm-btn--save { background: var(--black); color: #fff; border-color: var(--black); }
.adm-btn--save:hover { background: var(--red); border-color: var(--red); }
.adm-btn--x { border: none; background: transparent; font-size: 1.1rem; padding: .3rem .5rem; }
.adm-btn--danger { border-color: var(--red); color: var(--red); }
.adm-btn--danger:hover { background: var(--red); color: #fff; }
.adm-btn--ghost { background: transparent; border-style: dashed; }
.adm-btn--add-cat { display: block; width: 100%; margin-top: .6rem; border-style: dashed; padding: .8rem; font-weight: 600; }

.adm-tabsbar { display: flex; gap: .4rem; flex-wrap: wrap; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 57px; z-index: 1; }
.adm-tab { font-size: .85rem; font-weight: 600; padding: .45rem .9rem; border: 1px solid var(--line); background: var(--paper); }
.adm-tab.active { background: var(--black); color: #fff; border-color: var(--black); }
.adm-tab.adm-add { border-style: dashed; color: var(--grey); }

.adm-body { padding: 1.2rem; overflow-y: auto; }
.adm-card { border: 1px solid var(--line); background: var(--white); padding: 1.1rem; margin-bottom: 1rem; }
.adm-cat-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.adm-cat-k { font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.adm-cat-ctl { display: flex; gap: .35rem; align-items: center; }

.adm-field { display: block; margin-bottom: .8rem; }
.adm-field > span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin-bottom: .3rem; }
.adm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.adm-rowend { display: flex; justify-content: flex-end; margin-top: .4rem; }
.adm-in { width: 100%; padding: .55rem .65rem; font-family: inherit; font-size: .92rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.adm-in:focus { outline: none; border-color: var(--red); }
textarea.adm-in { resize: vertical; }

.adm-items { margin: .6rem 0; display: flex; flex-direction: column; gap: .6rem; }
.adm-item { display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--line); background: var(--paper); padding: .55rem; }
.adm-item-top { display: flex; gap: .4rem; align-items: center; }
.adm-item-top .adm-in--name { flex: 1; font-weight: 600; }
.adm-item-top .adm-in--price { width: 110px; flex: none; }
.adm-item-opts { display: grid; grid-template-columns: 220px 1fr; gap: .4rem; }
@media (max-width: 680px){ .adm-item-opts { grid-template-columns: 1fr; } }
.adm-mini { font-size: .78rem; font-weight: 600; padding: .4rem .6rem; border: 1px solid var(--line); background: var(--white); white-space: nowrap; }
.adm-mini:hover { background: var(--paper-2, #ECE7D9); }
.adm-mini--danger { color: var(--red); border-color: #e7c3bf; }
.adm-mini--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

.adm-imgfield { margin-bottom: .8rem; }
.adm-imglabel { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin-bottom: .3rem; }
.adm-imgrow { display: flex; gap: .7rem; align-items: flex-start; }
.adm-thumb { width: 84px; height: 64px; flex: none; background-size: cover; background-position: center; border: 1px solid var(--line); background-color: var(--paper); }
.adm-thumb--empty { display: grid; place-items: center; font-size: .65rem; color: var(--grey); text-align: center; }
.adm-imgctl { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.adm-imgbtns { display: flex; gap: .4rem; }

.adm-foot { padding: .8rem 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--grey); background: var(--white); }
.adm-toast { margin-left: .6rem; font-weight: 600; color: var(--blue); opacity: 0; transition: opacity .2s; }
.adm-toast.show { opacity: 1; }
.adm-toast.err { color: var(--red); }

/* Subcategorías en el editor */
.adm-sub { border-left: 3px solid var(--yellow); background: var(--paper); padding: .9rem; margin: .8rem 0; }
.adm-sub-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.adm-btn--sub { display: block; width: 100%; margin-top: .4rem; }

/* Login */
.adm-login { display: grid; place-items: center; padding: 2.5rem 1rem; }
.adm-login-card { width: min(100%, 360px); border: 1px solid var(--line); background: var(--white); padding: 1.8rem; text-align: left; }
.adm-login-card .adm-dot { margin-bottom: 1rem; }
.adm-login-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin-bottom: .3rem; }
.adm-login-card p { color: var(--grey); font-size: .9rem; margin-bottom: 1.1rem; }
.adm-login-err { color: var(--red); font-size: .85rem; font-weight: 600; margin-top: .7rem; min-height: 1em; }

/* Barra de modos (Cartas / Galería) */
.adm-modebar { display: flex; gap: .4rem; padding: .8rem 1.2rem 0; background: var(--white); }
.adm-modebar { align-items: center; }
.adm-modebtn { font-family: var(--display); font-weight: 500; font-size: .82rem; letter-spacing: .04em; padding: .5rem 1.05rem; border: 1px solid var(--line); background: var(--paper); }
.adm-modebtn.active { background: var(--black); color: #fff; border-color: var(--black); }
.adm-whoami { margin-left: auto; font-size: .78rem; color: var(--grey); font-weight: 600; }

/* Historial de cambios */
.adm-hist-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.adm-hist { border: 1px solid var(--line); }
.adm-hist-row { display: grid; grid-template-columns: 110px 150px 1fr; gap: .8rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.adm-hist-row:last-child { border-bottom: none; }
.adm-hist-row--head { background: var(--paper); font-family: var(--display); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.adm-hist-user { font-weight: 600; }
.adm-hist-date { color: var(--grey); }
.adm-hist-empty { padding: 1rem .9rem; color: var(--grey); }
@media (max-width: 600px){
  .adm-hist-row { grid-template-columns: 1fr; gap: .15rem; }
  .adm-hist-row--head { display: none; }
  .adm-hist-user::before { content: ""; }
  .adm-hist-date { font-size: .78rem; }
}

/* Usuarios (solo admin) */
.adm-userrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: .7rem; align-items: end; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.adm-userrow:last-of-type { border-bottom: none; }
.adm-userrow--new { border-bottom: none; padding-top: .2rem; }
.adm-usercell { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.adm-userlbl { font-family: var(--display); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.adm-useract { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.adm-usernote { font-size: .74rem; color: var(--grey); font-style: italic; }
.adm-userdate { grid-column: 1 / -1; font-size: .74rem; color: var(--grey); }
.adm-uname[disabled] { background: var(--paper); color: var(--grey); cursor: not-allowed; }
@media (max-width: 600px){
  .adm-userrow { grid-template-columns: 1fr; gap: .5rem; align-items: stretch; }
  .adm-useract { justify-content: flex-start; }
}

/* Buscador de productos */
.adm-searchbar { display: flex; gap: .5rem; align-items: center; padding: .8rem 1.2rem 0; background: var(--white); }
.adm-searchbar .adm-in { flex: 1; }
.adm-searchinfo { font-size: .82rem; color: var(--grey); margin-bottom: .9rem; }
.adm-result { margin-bottom: 1rem; }
.adm-crumb { font-family: var(--display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .35rem; }

/* Editor de galería */
.adm-galitem { display: grid; grid-template-columns: 84px 1fr; gap: .8rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.adm-galitem:last-of-type { border-bottom: none; }
.adm-galctl { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.adm-galrow { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.adm-galsize { width: auto; min-width: 120px; }

@media (max-width: 680px){
  .adm-row2 { grid-template-columns: 1fr; }
  .adm-actions .adm-btn { font-size: .78rem; padding: .45rem .7rem; }
}
