/* ==========================================================================
   Casa de Chocolate — hoja de estilos
   Mobile-first · Flexbox + Grid · sin librerías
   ========================================================================== */

:root {
  --brand: #7a2f1f;          /* marrón chocolate del logotipo */
  --brand-dark: #3b1a11;
  --brand-ink: #2a1510;
  --accent: #c8923a;         /* caramelo */
  --accent-dark: #9a6a1c;
  --cream: #faf5ec;
  --cream-2: #f1e8d8;
  --paper: #ffffff;
  --ink: #2f2420;
  --muted: #6b5b51;
  --line: #e4d8c5;
  --ok: #2f7a4d;

  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(59, 26, 17, .06), 0 8px 24px rgba(59, 26, 17, .08);
  --shadow-lg: 0 2px 4px rgba(59, 26, 17, .08), 0 18px 44px rgba(59, 26, 17, .16);
  --header-h: 68px;
  --wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand-ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
ul { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 200;
  background: var(--brand-dark); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: .5rem; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: 1.2rem; color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: .6rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.4rem;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  color: #fff; background: var(--brand); border: 2px solid var(--brand); border-radius: 999px;
  cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--brand-ink); }
.btn--accent:hover { background: #d9a24b; border-color: #d9a24b; color: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--light:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn--sm { min-height: 38px; padding: .4rem 1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 236, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--brand-ink); }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; background: transparent;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--brand-ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  display: none; padding: .5rem 1rem 1.2rem;
}
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .85rem .5rem; font-weight: 700; text-decoration: none; color: var(--brand-ink);
  border-bottom: 1px solid var(--line);
}
.main-nav a[aria-current="page"] { color: var(--brand); }
.main-nav .nav-cta { margin-top: 1rem; }
.main-nav .nav-cta a { border: 0; color: #fff; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; display: block; background: none; border: 0; box-shadow: none; padding: 0; }
  .main-nav ul { display: flex; align-items: center; gap: .25rem; }
  .main-nav a { border: 0; padding: .5rem .85rem; border-radius: 999px; font-size: .98rem; }
  .main-nav a:hover { background: var(--cream-2); }
  .main-nav a[aria-current="page"] { background: var(--cream-2); }
  .main-nav .nav-cta { margin: 0 0 0 .5rem; }
  .main-nav .nav-cta a { padding: .55rem 1.2rem; background: var(--brand); }
  .main-nav .nav-cta a:hover { background: var(--brand-dark); }
}

/* ---------- Hero con carrusel (portada) ---------- */
.hero { position: relative; background: var(--brand-dark); color: #fff; isolation: isolate; }
.carousel { position: relative; overflow: hidden; }
.hero .carousel { height: clamp(460px, 78svh, 720px); }
.carousel-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active, .carousel:not(.is-ready) .slide:first-child { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,21,16,.35) 0%, rgba(42,21,16,.15) 35%, rgba(42,21,16,.78) 100%); }
.slide figcaption {
  position: absolute; z-index: 2; right: 1rem; bottom: 4.6rem; font-size: .82rem; letter-spacing: .04em;
  background: rgba(42,21,16,.55); padding: .25rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-content {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: 4.2rem; pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-content h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-content p { max-width: 36rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); margin-bottom: 1.2rem; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero .eyebrow { color: #f2cf8e; }

.carousel-btn {
  position: absolute; z-index: 4; top: 40%; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.88); color: var(--brand-dark); cursor: pointer; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: #fff; transform: scale(1.06); }
.carousel-btn--prev { left: .75rem; }
.carousel-btn--next { right: .75rem; }
.carousel-dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 1.2rem; display: flex; justify-content: center; gap: .1rem; }
.carousel-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.carousel-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.carousel-dots button[aria-current="true"]::before { background: #fff; transform: scale(1.35); }
@media (max-width: 599px) { .carousel-btn { display: none; } .slide figcaption { display: none; } }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; background: var(--brand-dark) center / cover no-repeat;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.4rem, 5vw, 4rem);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(42,21,16,.88), rgba(42,21,16,.45)); }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { max-width: 40rem; margin: 0; font-size: 1.15rem; color: #f3e7d6; }
.page-hero .eyebrow { color: #f2cf8e; }
.breadcrumb { font-size: .88rem; margin-bottom: 1rem; color: #e8d6bb; }
.breadcrumb a { color: #fff; }

/* ---------- Sub-navegación (Descubre) ---------- */
.subnav { background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: .7rem 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; padding: .4rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .93rem;
  color: var(--brand-ink); background: var(--cream); border: 1px solid var(--line);
}
.subnav a:hover { background: var(--cream-2); }
.subnav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Estructura de página ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tight { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.section--paper { background: var(--paper); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.layout { display: grid; gap: 2.5rem; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.layout-main { min-width: 0; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 3rem; align-items: start; }
  .layout-aside { position: sticky; top: calc(var(--header-h) + 1.2rem); }
}
.layout-aside { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 560px) and (max-width: 999px) { .layout-aside { grid-template-columns: repeat(3, 1fr); } }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--brand-ink); }

/* ---------- Tarjetas ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 1.4rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.feature { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .4rem;
  background: var(--cream-2); color: var(--brand); font-size: 1.4rem;
}
.feature h3 { margin: 0; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

.teaser { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; transition: transform .25s, box-shadow .25s; }
.teaser:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.teaser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.teaser-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.teaser-body h3 { margin: 0; }
.teaser-body p { margin: 0; color: var(--muted); }
.teaser-more { margin-top: auto; padding-top: .6rem; font-weight: 800; color: var(--brand); }

/* Datos rápidos (portada) */
.facts { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--line); border-block: 1px solid var(--line); }
.facts > div { background: var(--paper); padding: 1.2rem 1rem; text-align: center; }
.facts strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.facts span { font-size: .88rem; color: var(--muted); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Tira horizontal de fotos */
.strip { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .3rem 0 1rem; -webkit-overflow-scrolling: touch; }
.strip a { flex: 0 0 min(78%, 330px); scroll-snap-align: start; text-decoration: none; color: inherit; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 450 / 200; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--cream-2); }
.strip figcaption { font-size: .88rem; color: var(--muted); padding-top: .35rem; }

/* ---------- Galería ---------- */
.gallery-group { margin-bottom: 2.6rem; }
.gallery-group h2 { font-size: 1.5rem; border-bottom: 2px solid var(--line); padding-bottom: .4rem; margin-bottom: 1rem; }
.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.gallery-grid a { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .75rem .5rem; font-size: .85rem; color: #fff;
  background: linear-gradient(transparent, rgba(42,21,16,.78)); opacity: 0; transition: opacity .25s;
}
.gallery-grid a:hover::after, .gallery-grid a:focus-visible::after { opacity: 1; }
@media (hover: none) { .gallery-grid a::after { opacity: 1; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(20,10,7,.94); align-items: center; justify-content: center; padding: 3.5rem 1rem; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 9rem); width: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lightbox figcaption { color: #eadfce; font-size: .95rem; text-align: center; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Listados (gastronomía, actividades) ---------- */
.item-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.item { display: flex; gap: 1.1rem; padding: 1rem; align-items: stretch; }
.item-thumb { flex: 0 0 120px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }
.item-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.item-body h3 { margin: 0; font-size: 1.15rem; }
.item-place { color: var(--accent-dark); font-weight: 700; font-size: .9rem; }
.item-body p { margin: 0; color: var(--muted); font-size: .97rem; }
.item-body .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 480px) { .item-thumb { flex-basis: 150px; } }
@media (max-width: 380px) { .item { flex-direction: column; } .item-thumb { flex-basis: auto; height: 150px; } }

/* ---------- Comentarios ---------- */
.review { padding: 1.4rem; display: flex; gap: 1rem; }
.avatar {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
}
.review blockquote { margin: 0; }
.review blockquote p { margin: 0 0 .6em; }
.review-meta { font-size: .9rem; color: var(--muted); }
.review-meta strong { color: var(--brand-ink); font-size: 1rem; }
.stack { display: grid; gap: 1rem; }

/* ---------- Tablas ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.price-table caption { text-align: left; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; padding-bottom: .6rem; color: var(--brand-ink); }
.price-table th, .price-table td { padding: .85rem .6rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-table td:not(:first-child), .price-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.price-table td small { display: block; color: var(--muted); font-size: .85rem; }
.price-table td strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--brand); }

.note { background: var(--cream-2); border-left: 4px solid var(--accent); padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .97rem; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ico { flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; font-size: 1.2rem; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.contact-list a { font-weight: 700; word-break: break-word; }
address { font-style: normal; }

/* ---------- Incrustaciones (iframes) ---------- */
.embed { width: 100%; border: 0; display: block; background: var(--paper); }
.embed--calendar { height: 640px; }
.embed--form { min-height: 560px; }
.embed--map { aspect-ratio: 16 / 10; height: auto; min-height: 280px; border-radius: var(--radius); border: 1px solid var(--line); }
.form-card { max-width: 620px; }

.map-fig { margin: 0 0 1.5rem; }
.map-fig img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; width: 100%; max-width: 460px; }

/* ---------- Barra lateral ---------- */
.aside-card { padding: 1.1rem; text-align: center; }
.aside-card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.aside-card img { margin-inline: auto; border-radius: 10px; }
.aside-card .btn { margin-top: .8rem; }
.aside-card--offer img { width: 100%; max-width: 280px; }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--brand-dark) linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f0e2cf; max-width: 36rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.4rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brand-ink); color: #dccdb8; padding-top: clamp(2.5rem, 5vw, 3.5rem); font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #f2cf8e; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); letter-spacing: .08em; text-transform: uppercase; font-weight: 800; margin-bottom: .8rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand img { width: 64px; }
.footer-bottom { margin-top: 2.5rem; padding: 1.2rem 0 1.4rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ---------- Barra de contacto móvil ---------- */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(250,245,236,.97); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .mobile-bar .btn { min-height: 42px; padding: .4rem .5rem; font-size: .92rem; }
  .mobile-bar .btn--wa { background: #1f9d55; border-color: #1f9d55; }
}

/* ---------- Animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-bar, .carousel-btn, .carousel-dots, .subnav, .site-footer .footer-grid, .cta-band { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* Logotipo sobre fondo oscuro (pie) */
.site-footer .brand img { background: var(--cream); border-radius: 14px; padding: 4px 6px; }
