/*
 * Plantilla de sitios de negocio (demos *.nayerly.com): estilos mobile-first, 360px a 1280px.
 * Basada en el sitio de Panadería Deleites. Los colores de cada negocio llegan como variables en un <style> del
 * index.html generado (template/colores.mjs); los valores de aquí son solo respaldo.
 */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-600-italic.woff2") format("woff2");
}

:root {
  --bg: #F0EAD6;
  --bg-alt: #E6DEC6;
  --surface: #FAF7EE;
  --ink: #3A352F;
  --ink-soft: #5B544A;
  --line: #D9CFB6;
  --accent: #A08A5C;
  --accent-deep: #6B5A36;
  --primary: #3A352F;
  --primary-deep: #23201C;
  --on-primary: #FFFFFF;
  --on-primary-deep: #FFFFFF;
  --icon: #3A352F;
  --price: #23201C;
  --hero-bg: #3A2F27;
  --hero-accent: #F0D3A2;
  --hero-soft: #F6E7CF;
  --header-bg: rgb(246 241 231 / .92);
  --bar-bg: rgb(255 252 246 / .96);
  --logo-bg: #F0EBD8;
  --dots: #CDBFA6;
  --stars-base: #E5DAC6;
  --note-bg: #FBF3E3;
  --badge-bg: #F8E3D8;
  --band-text: #F6EEDF;
  --shade: 24 18 14;
  --tap: rgb(160 138 92 / .18);
  --focus: #6B5A36;
  --wa: #0F7B5F;
  --wa-deep: #0B634C;
  --star: #D99A21;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --display-weight: 600;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
  --gutter: 16px;
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgb(var(--shade) / .45);
  --shadow-soft: 0 12px 30px -24px rgb(var(--shade) / .5);

  --bar-h: 68px;
  --bar-space: 0px;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1000px) { :root { --gutter: 32px; } }
@media (max-width: 899px) {
  :root { --bar-space: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: break-word; /* una palabra muy larga (título, nombre) se parte en vez de salirse de la pantalla */
  -webkit-tap-highlight-color: var(--tap);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
main:focus { outline: none; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Cinta de vista previa */
.demo-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 6px var(--gutter);
  background: var(--ink);
  color: var(--band-text);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.demo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E9B872;
  box-shadow: 0 0 0 3px rgba(233, 184, 114, .25);
}
.demo-domain { opacity: .7; text-transform: none; letter-spacing: .04em; }

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgb(var(--shade) / .6);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
}
.brand-logo {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--logo-bg);
  object-fit: cover;
}
.brand-mono {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.32rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  margin-top: 3px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 374px) {
  .brand-logo, .brand-mono { width: 40px; height: 40px; border-radius: 11px; }
  .brand-name { font-size: 1.16rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .12em; }
}

.main-nav { display: none; }
@media (min-width: 760px) {
  .main-nav { display: flex; gap: 2px; }
  .main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-soft);
    transition: background-color .15s, color .15s;
  }
  .main-nav a:hover { background: var(--bg-alt); color: var(--ink); }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 12px 26px -14px rgb(var(--shade) / .9); }
.btn-primary:hover { background: var(--primary-deep); color: var(--on-primary-deep); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 26px -14px rgba(15, 123, 95, .9); }
.btn-wa:hover { background: var(--wa-deep); }
.btn-glass {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-cream { background: var(--bg); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px) scale(.99); }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 780px);
  min-height: min(88svh, 780px);
  background: var(--hero-bg);
  color: #FFF8EE;
  --focus: var(--hero-accent);
}
.hero--plain {
  min-height: min(70vh, 640px);
  min-height: min(70svh, 640px);
  background:
    radial-gradient(120% 90% at 85% 10%, rgb(255 255 255 / .10) 0%, transparent 55%),
    linear-gradient(160deg, var(--hero-bg) 0%, var(--primary-deep) 100%);
}
.hero-media { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* En celular la foto queda detrás del texto: el degradado oscurece desde antes */
  background: linear-gradient(180deg, rgb(var(--shade) / .35) 0%, rgb(var(--shade) / .12) 18%, rgb(var(--shade) / .66) 40%, rgb(var(--shade) / .86) 64%, rgb(var(--shade) / .92) 100%);
}
@media (min-width: 900px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgb(var(--shade) / .86) 0%, rgb(var(--shade) / .62) 42%, rgb(var(--shade) / .12) 78%),
      linear-gradient(180deg, rgb(var(--shade) / .2) 0%, transparent 30%, rgb(var(--shade) / .35) 100%);
  }
}
.hero-content { padding-block: 104px 36px; }
@media (min-width: 900px) { .hero-content { padding-block: 112px 80px; } }
.hero-eyebrow {
  margin-bottom: 14px;
  color: var(--hero-accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  /* Sobre fotos claras el degradado aún es suave a esta altura: un halo oscuro mantiene legible la línea */
  text-shadow: 0 1px 2px rgb(var(--shade) / .85), 0 0 12px rgb(var(--shade) / .65);
}
.hero-title { font-family: var(--font-display); font-weight: var(--display-weight); }
.hero-title-a {
  display: block;
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.5vw + 1.2rem, 5.1rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.hero-title-b {
  display: block;
  max-width: 28ch;
  margin-top: 12px;
  font-style: italic;
  font-size: clamp(1.45rem, 1.8vw + 1rem, 2.3rem);
  line-height: 1.15;
  color: var(--hero-soft);
}
.hero-lead {
  max-width: 46ch;
  margin-top: 16px;
  color: rgba(255, 248, 238, .9);
  font-size: clamp(1rem, .35vw + .92rem, 1.15rem);
}
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .88rem;
  font-weight: 600;
}
.open-status::before {
  content: "";
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: #7FD48A;
  box-shadow: 0 0 0 3px rgba(127, 212, 138, .28);
}
.open-status.is-closed::before { background: #F0A36B; box-shadow: 0 0 0 3px rgba(240, 163, 107, .28); }
.hero-ctas { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 560px) {
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
}

/* Datos rápidos */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; padding-block: 6px; }
.fact { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; min-width: 0; }
.fact-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 11px;
  background: var(--bg-alt);
  color: var(--accent-deep);
}
.fact-icon--star { color: var(--star); }
.fact-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fact-title { font-size: .95rem; font-weight: 700; }
.fact-sub { font-size: .82rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .facts-list { grid-template-columns: repeat(var(--facts, 4), 1fr); column-gap: 0; padding-block: 10px; }
  .fact { padding: 16px 18px; }
  .fact:first-child { padding-left: 0; }
  .fact + .fact { border-left: 1px solid var(--line); }
  .fact-icon { width: 42px; height: 42px; border-radius: 13px; }
  .fact-title { font-size: 1rem; }
  .fact-sub { font-size: .86rem; }
}

/* Secciones */
.section { padding-block: clamp(56px, 6vw + 32px, 112px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 3vw + 12px, 48px); }
.menu .section-head,
.gallery .section-head,
.clases .section-head { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.kicker .icon { width: 1.3em; height: 1.3em; }
.kicker--light { color: var(--hero-accent); }
.kicker--light::before { display: none; }
.section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.15rem, 2.6vw + 1.4rem, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.005em;
}
.section-intro { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* Nosotros */
.about-grid { display: grid; gap: 44px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 64px; }
  .about-grid.no-media { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}
.about-body { max-width: 58ch; margin-top: 18px; color: var(--ink-soft); font-size: 1.07rem; }
.about-body + .about-body { margin-top: 12px; }
.features { display: grid; gap: 18px; margin-top: 30px; }
.feature { display: flex; gap: 14px; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--icon);
}
.feature-title { margin-bottom: 2px; font-size: 1.05rem; font-weight: 700; }
.feature p { color: var(--ink-soft); font-size: .97rem; }
.services { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 30px; }
.services-label { font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .92rem;
  font-weight: 600;
}
.pill .icon { width: 1em; height: 1em; color: var(--wa); }
.about-media { position: relative; padding-bottom: 56px; }
.about-media.single { padding-bottom: 0; }
.about-img-main {
  width: 86%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-media.single .about-img-main { width: 100%; }
/* Una sola foto a todo el ancho: en celular y tableta, apaisada como la de Visítanos (si no, ocupa más de una pantalla) */
@media (max-width: 899px) { .about-media.single .about-img-main { aspect-ratio: 4 / 3; } }
.about-img-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  aspect-ratio: 900 / 586;
  object-fit: cover;
  border: 6px solid var(--bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Menú / servicios / planes */
.menu { background: var(--bg-alt); }
.demo-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  background: var(--note-bg);
  color: var(--accent-deep);
  font-size: .88rem;
  font-weight: 600;
  text-align: left;
}
.menu-tabs {
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .menu-tabs { flex-wrap: wrap; justify-content: center; margin-inline: 0; padding-inline: 0; overflow: visible; }
}
.menu-tab {
  flex: none;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color .15s, color .15s, border-color .15s;
}
.menu-tab:hover { border-color: var(--accent); }
.menu-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
/* Sin JavaScript: se ocultan las pestañas y se muestran todas las categorías */
.no-js .menu-tabs { display: none; }
.no-js .menu-panel[hidden] { display: grid !important; }
.no-js .menu-panel + .menu-panel { margin-top: 18px; }
.menu-panels { margin-top: 18px; }
.menu-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* el contenido nunca ensancha la tarjeta más que la pantalla */
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.menu-panel-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.9rem;
  line-height: 1.1;
}
.js .menu-panel-title { display: none; }
.menu-panels.single .menu-panel-title { display: none; }
@media (min-width: 600px) { .menu-panel { padding: 24px; } }
@media (min-width: 900px) {
  .menu-panel { padding: 32px; }
  .menu-panel.has-image { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 44px; align-items: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .menu-panel.is-entering { animation: panel-in .28s ease-out; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.menu-figure { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px; background: var(--bg-alt); }
.menu-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .menu-figure { position: sticky; top: 96px; aspect-ratio: 4 / 5; }
}
.menu-group + .menu-group { margin-top: 26px; }
.menu-group-title {
  margin-bottom: 4px;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: var(--display-weight);
}
@media (min-width: 760px) {
  .menu-panel:not(.has-image) .menu-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
}
.menu-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.mi-head { display: flex; align-items: baseline; gap: 10px; }
.mi-name { min-width: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.mi-dots { flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted var(--dots); transform: translateY(-4px); }
.mi-price { color: var(--price); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mi-each { color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
.mi-desc { max-width: 52ch; margin-top: 3px; color: var(--ink-soft); font-size: .94rem; }
.mi-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent-deep);
  font-size: .84rem;
  font-weight: 600;
}
.mi-meta .icon { width: 1em; height: 1em; }
.menu-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: .95rem;
}
.menu-note .icon { margin-top: 2px; color: var(--accent-deep); }
.menu-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.menu-cta-text { font-family: var(--font-display); font-size: 1.45rem; font-weight: var(--display-weight); }

/* Horario de clases */
.sched-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .sched-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; } }
.sched-day {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.sched-day-title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.5rem;
  line-height: 1.15;
}
.sched-item { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sched-item:last-child { border-bottom: 0; }
.sched-time { color: var(--accent-deep); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched-name { font-weight: 700; line-height: 1.35; }
.sched-detail { display: block; color: var(--ink-soft); font-size: .9rem; font-weight: 400; }
.sched-note { margin-top: 18px; text-align: center; color: var(--ink-soft); }

/* Galería (mampostería con columnas: respeta la proporción de cada foto) */
.gallery-grid { columns: 2; column-gap: 10px; }
.gallery-grid > li { margin-bottom: 10px; break-inside: avoid; }
@media (min-width: 700px) {
  .gallery-grid { columns: 3; column-gap: 14px; }
  .gallery-grid > li { margin-bottom: 14px; }
}
@media (min-width: 1100px) { .gallery-grid { columns: 4; } }
.g-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
}
.g-item img { width: 100%; height: auto; transition: transform .5s ease, filter .3s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .g-item:hover img { transform: scale(1.04); filter: saturate(1.08); }
}

/* Calificación en Google */
.rating { padding-block: clamp(24px, 3vw + 8px, 56px); }
.rating-card {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3vw + 12px, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 900px) {
  .rating-card { grid-template-columns: auto 1fr; align-items: center; gap: 64px; }
}
.rating-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.2rem);
  font-weight: var(--display-weight);
  line-height: 1.1;
}
.rating-big { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.rating-number {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 4vw + 3rem, 6rem);
  font-weight: var(--display-weight);
  line-height: .9;
}
.rating-outof { color: var(--ink-soft); font-size: 1.1rem; font-weight: 700; }
.stars { position: relative; display: inline-block; margin-top: 10px; line-height: 0; }
.stars-base, .stars-fill { display: flex; gap: 4px; }
.stars-base { color: var(--stars-base); }
.stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--star); }
.stars .icon { width: 28px; height: 28px; flex: none; }
.rating-count { margin-top: 10px; font-weight: 700; }
.rating-copy p { max-width: 46ch; margin-bottom: 20px; color: var(--ink-soft); font-size: 1.07rem; }

/* Visítanos */
.visit-grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px; }
  .visit-grid.no-media { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}
.visit-list { display: grid; margin: 26px 0 0; }
.visit-row { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) {
  .visit-row { grid-template-columns: 210px 1fr; gap: 16px; align-items: baseline; }
}
.visit-row dt { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.visit-row dt .icon { color: var(--icon); }
.visit-row dd { margin: 0; color: var(--ink-soft); }
.hours-line + .hours-line { margin-top: 4px; }
.tel-link {
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  text-underline-offset: 4px;
}
.tbc { color: var(--icon); font-weight: 700; }
.tbc-note { display: block; margin-top: 4px; color: var(--price); font-size: .82rem; font-weight: 600; }
.visit-ctas { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 560px) {
  .visit-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
}
.visit-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .visit-media img { aspect-ratio: 4 / 5; } }

/* Instagram */
.ig-band {
  padding-block: clamp(56px, 6vw + 24px, 104px);
  background: var(--ink);
  color: var(--band-text);
  --focus: var(--hero-accent);
}
.ig-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .ig-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .ig-grid.no-tiles { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}
.ig-band .section-title { color: #FFF8EE; }
.ig-body { max-width: 46ch; margin: 14px 0 26px; color: var(--band-text); opacity: .9; font-size: 1.05rem; }
.ig-tiles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-radius: 20px;
  text-decoration: none;
}
.ig-tiles img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
@media (min-width: 560px) and (max-width: 899px) {
  .ig-tiles { grid-template-columns: repeat(4, 1fr); }
  .ig-tiles img { aspect-ratio: 4 / 5; }
}
.ig-handle {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(var(--shade) / .84);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ig-tiles img { transition: transform .4s ease, opacity .3s; }
  .ig-tiles:hover img { opacity: .9; transform: scale(.985); }
}

/* Pie de página */
.site-footer {
  padding-block: 48px calc(32px + var(--bar-space));
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: .95rem;
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 18px; object-fit: cover; }
.footer-brand .brand-mono { width: 76px; height: 76px; border-radius: 18px; font-size: 2rem; }
.footer-name { color: var(--ink); font-family: var(--font-display); font-size: 1.6rem; font-weight: var(--display-weight); line-height: 1.1; }
.footer-tagline { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; }
.footer-contact { font-style: normal; line-height: 1.8; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; }
.footer-meta p + p { margin-top: 6px; }
.footer-nit { color: var(--price); font-weight: 600; }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Barra fija de acciones (pantallas pequeñas) */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(var(--ab-n, 3), 1fr);
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bar-bg);
  box-shadow: 0 -12px 30px -20px rgb(var(--shade) / .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (min-width: 900px) { .action-bar { display: none; } }
.ab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  min-width: 0;
  padding-inline: 4px;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}
.ab-btn .icon { width: 22px; height: 22px; color: var(--icon); }
.ab-wa { background: var(--wa); color: #fff; }
.ab-wa .icon { color: #fff; }
.ab-primary { background: var(--primary); color: var(--on-primary); }
.ab-primary .icon { color: var(--on-primary); }
@media (min-width: 420px) {
  .ab-btn { flex-direction: row; gap: 8px; font-size: .92rem; }
}

/* Diálogos */
dialog { border: 0; padding: 0; color: inherit; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.modal {
  width: min(92vw, 420px);
  padding: 34px 24px 22px;
  border-radius: 26px;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
.modal::backdrop { background: rgb(var(--shade) / .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-close-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.modal-close:hover { background: var(--bg-alt); }
.modal-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--badge-bg);
  color: var(--icon);
}
.modal-badge .icon { width: 30px; height: 30px; }
.modal-title { font-family: var(--font-display); font-size: 2.05rem; font-weight: var(--display-weight); line-height: 1.08; }
.modal-body { margin-top: 8px; color: var(--ink-soft); font-size: 1.05rem; }
.modal-actions { display: grid; gap: 6px; margin-top: 22px; }
.modal-actions form { margin: 0; }
.modal-actions .btn { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: pop-in .22s ease-out; }
  @keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: rgb(var(--shade) / .96);
  color: var(--band-text);
  --focus: var(--hero-accent);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(var(--shade) / .9); }
.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
  padding: 68px 12px 20px;
  touch-action: pan-y;
}
.lb-img {
  width: auto;
  height: auto;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-caption { max-width: 60ch; padding-inline: 8px; font-size: .95rem; text-align: center; }
.lb-count { margin-left: 6px; opacity: .7; white-space: nowrap; }
.lb-btn { position: absolute; width: 48px; height: 48px; background: rgba(255, 255, 255, .12); color: #fff; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lb-img { animation: fade-in .2s ease-out; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Aparición suave al hacer scroll (app.js solo la activa si no hay prefers-reduced-motion) */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
