/* ============================================================
   EL ÁNGEL DEL TRIGO — ESTILOS
   Fondo negro por defecto, modo claro con el botón del header.
   Colores de la bandera italiana como acentos.
   ============================================================ */

:root,
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #16110c;
  --surface-2: #221a13;
  --text: #f4efe6;
  --muted: #b8ad9a;
  --line: #30261d;
  --verde: #12924f;
  --verde-h: #0f7b43;
  --rojo: #d7263d;
  --crema: #f4efe6;
  --sombra: 0 18px 40px rgba(0, 0, 0, .55);
  --overlay: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-2: #f2ebdf;
  --text: #1d1611;
  --muted: #6d604f;
  --line: #e3d9c8;
  --verde: #0e7d43;
  --verde-h: #0b6837;
  --rojo: #c41f35;
  --crema: #f4efe6;
  --sombra: 0 16px 36px rgba(60, 40, 20, .14);
  --overlay: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 75%);
  color-scheme: light;
}

:root {
  --f-script: 'Pinyon Script', 'Brush Script MT', cursive;
  --f-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radio: 14px;
  --ancho: 1180px;
  --tricolor: linear-gradient(90deg, #12924f 0 33.34%, #f4efe6 33.34% 66.67%, #d7263d 66.67% 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--verde); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.tricolor { height: 5px; background: var(--tricolor); }
.tricolor-corta { width: 120px; margin: 14px auto 18px; border-radius: 3px; }

/* ---------------- BOTONES ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.35em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-h); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-rojo { background: var(--rojo); color: #fff; }

/* ---------------- HEADER ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  max-width: var(--ancho); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 10px 20px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 72px; width: auto; border-radius: 8px; }
.logo-claro { display: none !important; }
:root[data-theme="light"] .logo-oscuro { display: none !important; }
:root[data-theme="light"] .logo-claro { display: block !important; }

.search { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.search > .fa-magnifying-glass {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--verde); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radio);
  box-shadow: var(--sombra);
  max-height: min(70vh, 460px); overflow-y: auto;
  padding: 6px;
}
.sr-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
  padding: 8px; border-radius: 10px; text-decoration: none; color: var(--text);
}
.sr-item:hover, .sr-item.activo { background: var(--surface-2); }
.sr-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.sr-item b { display: block; font-family: var(--f-cond); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.sr-item small { color: var(--muted); font-size: .85rem; display: block; line-height: 1.3; }
.sr-item .sr-cat { color: var(--verde); font-weight: 600; }
.sr-vacio { padding: 14px; color: var(--muted); margin: 0; }

.social { display: flex; gap: 8px; }
.soc {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); background: transparent; color: var(--text);
  font-size: 1.1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.soc-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.soc-ig:hover { background: #d62976; border-color: #d62976; color: #fff; }
.soc-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle .icon-luna { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sol { display: none; }
:root[data-theme="light"] .theme-toggle .icon-luna { display: inline; }

/* ---------------- SLIDER DE OFERTAS ---------------- */
.ofertas {
  position: relative;
  max-width: var(--ancho); margin: 24px auto 0; padding: 0 20px;
}
.of-track {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--surface);
}
.of-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.of-slide.activa { opacity: 1; visibility: visible; }
.of-img { width: 100%; height: 100%; object-fit: cover; }
.of-slide::after { content: ''; position: absolute; inset: 0; background: var(--overlay); pointer-events: none; }
.of-texto {
  position: absolute; z-index: 2; left: 0; top: 0; bottom: 0;
  width: min(560px, 62%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 44px; color: #fff;
}
.of-texto h2 {
  font-family: var(--f-cond); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.02; margin: 0 0 .3em;
  text-wrap: balance;
}
.of-texto p { margin: 0 0 1.1em; color: rgba(255,255,255,.88); max-width: 42ch; }
.of-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.of-precio {
  background: var(--rojo); color: #fff;
  font-family: var(--f-cond); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1; padding: .3em .55em; border-radius: 10px;
  transform: rotate(-2deg);
}
.of-flecha {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.of-flecha:hover { background: rgba(0,0,0,.75); }
.of-prev { left: 34px; }
.of-next { right: 34px; }
.of-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.of-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
  background: var(--line); cursor: pointer; transition: width .3s, background-color .3s;
}
.of-dots button[aria-selected="true"] { width: 28px; background: var(--verde); }

/* Bienvenida (cuando no hay ofertas cargadas) */
.bienvenida { max-width: var(--ancho); margin: 24px auto 0; padding: 0 20px; }
.bv-inner {
  border-radius: 20px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 85% 30%, rgba(215, 38, 61, .28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(18, 146, 79, .25), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
}
.bv-script { font-family: var(--f-script); font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0; line-height: 1; color: var(--muted); }
.bienvenida h1 {
  font-family: var(--f-cond); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; margin: .15em 0 .35em; max-width: 18ch;
}
.bv-bajada { color: var(--muted); max-width: 46ch; margin: 0 0 1.4em; }

/* ---------------- SECCIONES ---------------- */
.home-carta, .galeria { max-width: var(--ancho); margin: 0 auto; padding: 56px 20px 24px; }

.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.script {
  font-family: var(--f-script); font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1.05; margin: 0 0 .15em;
}
.sec-head p { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------------- TARJETAS ---------------- */
.card {
  background: var(--surface);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.card-img {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface-2);
  cursor: pointer; border: 0; padding: 0; width: 100%;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-img:hover img, .card-img:focus-visible img { transform: scale(1.05); }
.card-cat {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--f-cond); font-weight: 600; font-size: .9rem;
  padding: 3px 11px; border-radius: 999px; color: #fff;
}
.card-cat-pizzas { background: var(--rojo); }
.card-cat-empanadas { background: var(--verde); }
.card-cat-calzones { background: #f4efe6; color: #1d1611; }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h2, .card-body h3 {
  font-family: var(--f-cond); font-weight: 700; font-size: 1.55rem; line-height: 1.1; margin: 0 0 .35em;
}
.card-body p { color: var(--muted); margin: 0 0 1.2em; flex: 1; }

.btn-galeria {
  align-self: flex-start;
  background: transparent; color: var(--text);
  border-color: var(--verde);
  font-size: .98rem;
}
.btn-galeria:hover { background: var(--verde); color: #fff; }

.card-pedir {
  align-self: flex-start;
  color: var(--verde); font-weight: 600; text-decoration: none;
  display: inline-flex; gap: .4em; align-items: center;
}
.card-pedir:hover { text-decoration: underline; }

/* Galerías */
.gal-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.gal-head h1 {
  font-family: var(--f-script); font-weight: 400;
  font-size: clamp(3rem, 7vw, 5rem); line-height: 1.05; margin: 0;
}
.gal-head p { color: var(--muted); margin: 0 0 22px; }
.gal-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.gal-nav a {
  font-family: var(--f-cond); font-weight: 600; font-size: 1.02rem;
  padding: 7px 16px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--line); color: var(--text);
}
.gal-nav a:hover { border-color: var(--text); }
.gal-nav a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.card-gal:target { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde); }
.gal-volver { text-align: center; margin-top: 44px; }

/* Franja horno a leña */
.franja-lena { max-width: var(--ancho); margin: 40px auto 64px; padding: 0 20px; }
.fl-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: 36px 40px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 6px solid var(--rojo);
}
.fl-inner .script { font-size: clamp(2.3rem, 4.5vw, 3.2rem); }
.fl-inner p { color: var(--muted); margin: 0; max-width: 52ch; }
.fl-acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--surface); margin-top: 40px; }
.footer-grid {
  max-width: var(--ancho); margin: 0 auto; padding: 48px 20px 32px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
}
.f-brand img { width: 220px; border-radius: 12px; margin-bottom: 16px; }
.f-brand p { color: var(--muted); margin: 0 0 18px; max-width: 36ch; }
.f-social { display: flex; gap: 10px; }
.f-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); text-decoration: none; color: var(--text);
}
.f-social a:hover { border-color: var(--verde); color: var(--verde); }
.f-col h2 { font-family: var(--f-cond); font-weight: 700; font-size: 1.4rem; margin: 0 0 16px; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.f-list i { color: var(--verde); }
.f-list a { text-decoration: none; overflow-wrap: anywhere; }
.f-list a:hover { text-decoration: underline; }
.estado {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-cond); font-weight: 600; font-size: 1.05rem;
  padding: 4px 14px; border-radius: 999px; margin: 0 0 14px;
}
.estado::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.estado.abierto { background: color-mix(in srgb, var(--verde) 18%, transparent); color: var(--verde); }
.estado.cerrado { background: color-mix(in srgb, var(--rojo) 16%, transparent); color: var(--rojo); }
.f-horarios { margin: 0 0 20px; }
.f-horarios div { margin-bottom: 10px; }
.f-horarios dt { font-weight: 600; }
.f-horarios dd { margin: 0; color: var(--muted); }
.f-app { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.f-app .btn { font-size: .98rem; padding: .6em 1.1em; }
.f-app-ok { color: var(--verde); margin: 0; font-size: .95rem; }
.f-map { line-height: 0; }
.f-map iframe { width: 100%; height: 320px; border: 0; filter: grayscale(.25); }
:root[data-theme="dark"] .f-map iframe { filter: grayscale(.4) brightness(.85); }
.f-bottom {
  max-width: var(--ancho); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  font-size: .9rem; color: var(--muted);
}
.f-bottom a { color: var(--text); }

/* ---------------- FLOTANTES ---------------- */
.wa-float {
  position: fixed; z-index: 60;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 2rem;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }

.aviso-push {
  position: fixed; z-index: 70;
  left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100% - 110px));
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-top: 4px solid var(--verde);
  border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 18px 18px 16px;
}
.aviso-push[hidden] { display: none; }
.aviso-ico { color: var(--verde); font-size: 1.3rem; }
.aviso-push p { margin: 8px 0 14px; }
.aviso-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.aviso-acciones .btn { font-size: .98rem; padding: .55em 1.1em; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.92);
  display: grid; place-items: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-family: var(--f-cond); font-size: 1.4rem; font-weight: 600; }
.lb-cerrar {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; cursor: pointer;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .of-track { aspect-ratio: 16 / 9; }
  .of-texto { width: 75%; padding: 24px 28px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 170px; }
  .topbar-inner { grid-template-columns: auto 1fr; gap: 10px 12px; padding: 8px 14px 12px; }
  .brand img { height: 60px; }
  .social { justify-self: end; gap: 6px; }
  .soc { width: 40px; height: 40px; font-size: 1rem; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .search input { padding: 12px 16px 12px 44px; }

  .ofertas { padding: 0 12px; margin-top: 14px; }
  .of-track { aspect-ratio: auto; height: min(118vw, 520px); border-radius: 16px; }
  .of-slide::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 72%); }
  .of-texto { top: auto; width: 100%; padding: 20px 20px 24px; }
  .of-flecha { display: none; }

  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .home-carta, .galeria { padding: 40px 14px 16px; }
  .fl-inner { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .f-bottom { flex-direction: column; padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { width: 56px; height: 56px; font-size: 1.8rem; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .aviso-push { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Galería: resumen de 3 líneas + "Ver más" */
.card-resumen {
  flex: none !important;
  margin-bottom: .5em !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.card-mas {
  align-self: flex-start; margin-bottom: auto; padding: 0 0 1.1em;
  background: none; border: 0; cursor: pointer;
  color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.card-mas:hover { color: var(--verde); }

/* ============================================================
   GALERÍA: BOTONES "VER MÁS" Y "PEDIR POR WHATSAPP"
   ============================================================ */
.card-gal .card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 10px;
  align-items: end;
}
.card-gal .card-body h2,
.card-gal .card-resumen { grid-column: 1 / -1; }
.card-gal .card-resumen { align-self: start; margin-bottom: 1.1em !important; }

/* Base común */
.card-gal .card-mas,
.card-gal .card-pedir {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  height: 46px;
  margin: 0;
  padding: 0 1.25em;
  border-radius: 999px;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, color .3s ease;
}
.card-gal .card-mas:active,
.card-gal .card-pedir:active { transform: scale(.96); }

/* ---------- VER MÁS: borde tricolor que se pinta ---------- */
.card-gal .card-mas {
  color: var(--text);
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, #12924f 0 33.34%, #f4efe6 33.34% 66.67%, #d7263d 66.67% 100%) border-box;
}
.card-gal .card-mas::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #12924f 0 33.34%, #f4efe6 33.34% 66.67%, #d7263d 66.67% 100%);
  opacity: .22;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.card-gal .card-mas::after {
  content: '\f067';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .78em;
  transition: transform .35s ease;
}
.card-gal .card-mas:hover { transform: translateY(-2px); color: var(--text); }
.card-gal .card-mas:hover::before { transform: scaleX(1); }
.card-gal .card-mas:hover::after { transform: rotate(90deg); }

/* ---------- PEDIR POR WHATSAPP: verde con brillo ---------- */
.card-gal .card-pedir {
  justify-self: stretch;
  color: #fff !important;
  background: linear-gradient(135deg, #22c066 0%, #12924f 55%, #0c6e3b 100%);
  box-shadow: 0 6px 18px rgba(18, 146, 79, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.card-gal .card-pedir i {
  width: 28px;
  height: 28px;
  margin-left: -.55em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #12924f;
  font-size: 1.05rem;
  transition: transform .35s ease;
}
.card-gal .card-pedir::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.card-gal .card-pedir:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(18, 146, 79, .5), inset 0 1px 0 rgba(255, 255, 255, .3);
  background: linear-gradient(135deg, #22c066 0%, #12924f 55%, #0c6e3b 100%);
}
.card-gal .card-pedir:hover::after { left: 120%; }
.card-gal .card-pedir:hover i { transform: rotate(-12deg) scale(1.08); }

/* Foco con teclado */
.card-gal .card-mas:focus-visible,
.card-gal .card-pedir:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }

/* Celulares muy angostos: uno debajo del otro */
@media (max-width: 360px) {
  .card-gal .card-body { grid-template-columns: 1fr; row-gap: 10px; }
  .card-gal .card-mas { justify-self: start; }
}

/* ============================================================
   HEADER: BUSCADOR + BOTÓN INICIO
   ============================================================ */
.centro-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 660px;
  justify-self: center;
}
.centro-header .search { flex: 1; max-width: none; min-width: 0; }

.btn-inicio {
  position: relative;
  overflow: hidden;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  height: 50px;
  padding: 0 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s;
}
.btn-inicio i { color: var(--verde); transition: color .25s, transform .3s; }
.btn-inicio::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #12924f 0 33.34%, #f4efe6 33.34% 66.67%, #d7263d 66.67% 100%);
  transform: scaleX(0);
  transition: transform .35s ease;
}
.btn-inicio:hover { border-color: var(--verde); transform: translateY(-1px); }
.btn-inicio:hover::after { transform: scaleX(1); }
.btn-inicio:hover i { transform: translateY(-2px); }
.btn-inicio:active { transform: scale(.96); }

/* Celu: buscador + Inicio bajan juntos a la segunda fila */
@media (max-width: 720px) {
  .centro-header { grid-column: 1 / -1; grid-row: 2; max-width: none; gap: 8px; }
  .btn-inicio { height: 46px; padding: 0 1em; }
}

/* Celus muy angostos: solo la casita */
@media (max-width: 380px) {
  .btn-inicio { width: 46px; padding: 0; justify-content: center; }
  .btn-inicio span { display: none; }
}

/* Ventana con foto grande + descripción completa */
.lightbox { background: rgba(0,0,0,.88); }
.lb-caja {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.lb-caja img { width: 100%; max-height: 60vh; object-fit: cover; margin: 0; border-radius: 18px 18px 0 0; }
.lb-texto { padding: 22px 26px 28px; }
.lb-texto h2 { font-family: var(--f-cond); font-weight: 700; font-size: 1.9rem; line-height: 1.1; margin: 0 0 .4em; }
.lb-texto p { margin: 0; color: var(--muted); white-space: pre-line; max-width: 70ch; }
.lb-cerrar { top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; background: rgba(0,0,0,.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Logo grande en la bienvenida */
.bv-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.bv-logo { width: 100%; max-width: 520px; justify-self: center; border-radius: 18px; box-shadow: var(--sombra); }
@media (max-width: 720px) {
  .bv-inner { grid-template-columns: 1fr; gap: 24px; }
  .bv-logo { order: -1; max-width: 320px; }
}

