/* Espresso San Blas — borrador local, no publicado */
:root {
  --ink: #2a1c0e;
  --coffee: #3f2a16;
  --coffee-mid: #5c3d24;
  --cream: #f6f1e8;
  --cream-dark: #e8dcc8;
  --paper: #fffbf5;
  --foam: #fffdf8;
  --accent: #8b5a2b;
  --line: rgba(42, 28, 14, 0.14);
  --line-strong: rgba(42, 28, 14, 0.28);
  --muted: #6b5744;
  --open: #246338;
  --open-bg: #e5f3e8;
  --closed: #8f3a30;
  --closed-bg: #f8e8e5;
  --shadow: 0 10px 30px rgba(42, 28, 14, 0.12);
  --radius: 16px;
  --header-h: 64px;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --content: 70rem;
  --gold: #E8C56A;
  --gold-mid: #D4AF37;
  --gold-deep: #C9A227;
  --cocoa: #2A1810;
  --cocoa-deep: #1C100A;
  --cocoa-lift: #3A2218;
  --ivory: #F6F1E8;
  --font-jerico: "Cinzel", "Fraunces", "Palatino Linotype", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coffee-mid); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
p { margin: 0 0 1rem; }
button, input { font: inherit; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--coffee);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* Draft banner */
.draft-banner {
  background: var(--coffee);
  color: var(--cream);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 1rem;
}
.wrap {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(92, 61, 36, 0.06);
}
.header-inner {
  width: min(100% - 1.5rem, var(--content));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
}
.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.status.is-open { background: var(--open-bg); color: var(--open); }
.status.is-closed { background: var(--closed-bg); color: var(--closed); }
.status.is-unknown { background: var(--cream-dark); color: var(--muted); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--coffee);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.ig-link:hover { background: var(--cream-dark); }
.ig-link svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero */
.hero {
  padding: 1.15rem 0 1.4rem;
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.hero__logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero__text { text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin-bottom: 0.35rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.hero__tag {
  font-size: 1.15rem;
  color: var(--coffee-mid);
  margin-bottom: 0.4rem;
}
.hero__place {
  color: var(--muted);
  margin-bottom: 1rem;
}
.hero__status { justify-content: center; margin-bottom: 1.25rem; }
.quick-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 0;
}
.quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}
.quick-link:hover { border-color: var(--coffee-mid); }
.quick-link strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.quick-link span { color: var(--muted); font-size: 0.92rem; }

.hero-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1c140c;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 68%;
}
.hero-photo figcaption {
  display: none;
}

/* Featured jugo as card under hero on mobile already included */

/* Sections */
.section {
  padding: 3rem 0;
}
.section--paper { background: var(--paper); }
.section--coffee {
  background: var(--coffee);
  color: var(--cream);
}
.section--coffee a { color: #f3e2c4; }
.section-head {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.lede { font-size: 1.08rem; color: var(--muted); }
.section--coffee .lede { color: #e8dcc8; }
.fine {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Carta tabs */
.tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.2rem 0 0.8rem;
  position: sticky;
  top: var(--header-h);
  background: var(--cream);
  z-index: 10;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.section--paper .tabs { background: var(--paper); }
.tab {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--foam);
  color: var(--coffee);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.tab[aria-selected="true"], .tab.is-active {
  background: var(--coffee);
  color: var(--cream);
  border-color: var(--coffee);
}
.panel[hidden] { display: none; }

.item-list {
  display: grid;
  gap: 0.65rem;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.section--paper .item { background: var(--foam); }
.item--photo {
  grid-template-columns: 5.5rem 1fr auto;
  padding: 0.65rem;
}
.item__img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-dark);
  grid-row: 1 / span 2;
  min-width: 0;
}
.item__img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item--photo .item__body { grid-column: 2; }
.item--photo .item__price { grid-column: 3; grid-row: 1; }
/* New overhead Submarino photo: keep the glass and cacao in the square thumb */
.item[data-id="15"] .item__img img { object-position: 50% 45%; }
.item[data-id="126"] .item__img img { object-position: 50% 62%; }
.item__body { min-width: 0; }
.item__name {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  overflow-wrap: break-word;
}
.item__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.item__price {
  font-weight: 700;
  white-space: nowrap;
  color: var(--coffee);
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #e8f3dc;
  color: #2a5a22;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.pill--promo { background: #f5e6c8; color: #6a3d10; }

.item.item--featured {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}
.item.item--featured .item__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  grid-column: 1;
  grid-row: auto;
  border-radius: 0;
}
.item.item--featured .item__body,
.item.item--featured .item__price {
  grid-column: 1;
  grid-row: auto;
  padding: 0 1rem;
}
.item.item--featured .item__price { padding-bottom: 1rem; }

/* Photo slots */
.photo-slot,
.gallery {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.gallery { grid-template-columns: 1fr; }
.photo-slot__frame {
  min-height: 12rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(42,28,14,0.03) 8px, rgba(42,28,14,0.03) 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.photo-slot figcaption,
.gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.media {
  margin: 0 0 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a120c;
}
.media img {
  width: 100%;
  height: auto;
  display: block;
}
.media figcaption {
  font-size: 0.85rem;
  color: var(--cream-dark);
  background: var(--coffee);
  padding: 0.6rem 0.9rem;
}

/* Ciber tariffs */
.tariffs {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.tariff {
  background: rgba(255,251,245,0.08);
  border: 1px solid rgba(246,241,232,0.2);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.tariff strong { font-family: var(--font-serif); font-size: 1.35rem; }
.tariff span { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Hours + map */
.hours-grid {
  display: grid;
  gap: 1.5rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 600; width: 42%; }
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-dark);
  min-height: 16rem;
}
.map-wrap iframe {
  width: 100%;
  height: 16rem;
  border: 0;
  display: block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--coffee);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  margin-top: 0.8rem;
}
.btn:hover { color: #fff; background: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--coffee);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--cream-dark); color: var(--ink); }
.btn--light {
  background: var(--cream);
  color: var(--coffee);
}
.btn--light:hover { background: #fff; color: var(--ink); }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list span { display: block; color: var(--muted); font-size: 0.92rem; }

.site-footer {
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Desktop */
@media (min-width: 800px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    margin-left: auto;
  }
  .header-actions { margin-left: 1rem; }
  .site-nav ul {
    flex-direction: row;
    gap: 0.2rem;
    align-items: center;
  }
  .site-nav a {
    border: 0;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.95rem;
  }
  .site-nav a:hover { background: var(--cream-dark); }
  .brand__name { font-size: 1.1rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    grid-template-areas:
      "text photo"
      "links photo";
    gap: 1.2rem 3rem;
    align-items: center;
  }
  .hero__text { text-align: left; grid-area: text; }
  .hero-photo { grid-area: photo; }
  .hero-grid > .quick-links { grid-area: links; }
  .hero__logo { margin: 0 0 1.2rem; width: 168px; height: 168px; }
  .hero__status, .quick-links { justify-content: flex-start; }
  .hero__status { display: inline-flex; }
  .quick-links { grid-template-columns: 1fr 1fr 1fr; }
  .hero-photo img { aspect-ratio: 3 / 4; width: 100%; height: auto; max-height: none; object-fit: cover; object-position: 50% 68%; margin: 0 auto; }
  .item-list { grid-template-columns: 1fr 1fr; }
  .item.item--featured { grid-column: 1 / -1; grid-template-columns: 16rem 1fr auto; align-items: center; }
  .item.item--featured .item__img {
    aspect-ratio: 3 / 4;
    height: 14rem;
    width: 16rem;
    max-width: 16rem;
    border-radius: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .item.item--featured .item__body { grid-column: 2; grid-row: 1 / span 2; }
  .item.item--featured .item__price { grid-column: 3; grid-row: 1; padding-bottom: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hours-grid {
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
      "info map"
      "photo photo";
    align-items: start;
  }
  .hours-grid > div:first-child { grid-area: info; }
  .hours-grid > .map-wrap { grid-area: map; }
  .hours-grid > .place-photo { grid-area: photo; }
  .hours-grid .place-photo img { aspect-ratio: 16 / 9; object-position: 50% 68%; }
  .map-wrap iframe { height: 22rem; }
  .tariffs { grid-template-columns: 1fr 1fr; }
  .ciber-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1100px) {
  .item-list { gap: 0.8rem; }
}

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

@media (max-width: 700px) {
  .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .header-actions .ig-link span { display: none; }
  .header-actions .status { font-size: 0.75rem; padding: 0.22rem 0.55rem; }
}

.hero, .section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Featured jugo */
.featured-jugo {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}
.featured-jugo__photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1c140c;
}
.featured-jugo__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 55%;
}
.featured-jugo__price {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--coffee);
  margin: 0 0 1rem;
}
.place-photo {
  margin: 1.5rem 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-dark);
}
.place-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 70%;
}
.place-photo figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.55rem 0.85rem 0.75rem;
  background: var(--paper);
}

@media (min-width: 800px) {
  .featured-jugo {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }
  .featured-jugo__photo img { aspect-ratio: 4 / 5; max-height: 32rem; }
}

/* Café and chocolate galleries */
.gallery--cafe,
.gallery--choco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}
.gallery--cafe figure,
.gallery--choco figure,
.choco-cover {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.gallery--cafe picture,
.gallery--choco picture,
.choco-cover picture,
.featured-jugo__photo picture {
  display: block;
  width: 100%;
}
.gallery--cafe img,
.gallery--choco img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.gallery--cafe figure:nth-child(3) img { object-position: 50% 30%; }
.gallery--cafe figure:nth-child(4) img { object-position: 50% 35%; }
.gallery--cafe figure:nth-child(5) img { object-position: 50% 60%; }
.gallery--choco img { object-position: 50% 55%; }
.gallery--choco figure:nth-child(2) img { object-position: 50% 78%; }
@media (max-width: 799px) {
  .gallery--cafe figure:last-child:nth-child(odd),
  .gallery--choco figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .gallery--cafe figure:last-child:nth-child(odd) img,
  .gallery--choco figure:last-child:nth-child(odd) img {
    aspect-ratio: 16 / 9;
  }
}
.gallery--cafe figcaption,
.gallery--choco figcaption,
.choco-cover figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem 0.65rem;
  line-height: 1.35;
}
.choco-cover {
  margin: 0 0 0.7rem;
}
.choco-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 55%;
}

@media (min-width: 800px) {
  .gallery--cafe {
    grid-template-columns: repeat(5, 1fr);
  }
  .gallery--choco {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .choco-cover img { aspect-ratio: 16 / 9; max-height: 28rem; width: 100%; object-fit: cover; }
}


/* ========== Rediseño v3: carta cafetería + Jericó ========== */

/* Site-wide coffee accents, still light and warm */
.btn {
  background: var(--coffee);
  border: 1px solid transparent;
}
.btn:hover { background: var(--ink); }
.draft-banner {
  background: var(--cocoa);
  letter-spacing: 0.04em;
}

/* Delicate coffee rule */
.rule-cafe {
  display: block;
  width: 3.2rem;
  height: 2px;
  margin: 0.15rem 0 1rem;
  background: linear-gradient(90deg, var(--coffee-mid), var(--accent), transparent);
  border-radius: 2px;
}

/* ----- La carta (cafetería): cream + coffee, not gold ----- */
.section--carta {
  background-color: var(--cream);
  background-image:
    url("../img/cafe-fondo/granos.svg"),
    linear-gradient(180deg, #f3ebe0 0%, var(--cream) 12%, var(--cream) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 34rem auto, auto;
  background-position: center top, 0 0;
  position: relative;
}
@media (max-width: 799px) {
  .section--carta {
    background-size: 27rem auto, auto;
  }
}
.section--carta::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--coffee-mid) 30%, var(--accent) 50%, var(--coffee-mid) 70%, transparent 95%);
  opacity: 0.55;
}
.section-head--carta .eyebrow {
  color: var(--coffee-mid);
  letter-spacing: 0.16em;
  font-weight: 600;
}
/* Cream halo so heading text stays AA if a bean sits behind a letter */
.section-head--carta .eyebrow,
.section-head--carta h2,
.section-head--carta .lede,
.section-head--carta .fine,
.favoritos__title {
  text-shadow:
    1px 0 0 var(--cream),
    -1px 0 0 var(--cream),
    0 1px 0 var(--cream),
    0 -1px 0 var(--cream),
    0 0 8px var(--cream),
    0 0 14px rgba(246, 241, 232, 0.95);
}
.section--carta .item__price,
.fav-card__price,
.featured-jugo__price {
  color: var(--coffee);
  font-family: var(--font-serif);
  font-weight: 650;
}

/* Favoritos */
.favoritos { margin: 0 0 2rem; }
.favoritos__title,
.carta-cats__title,
.panel-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--coffee);
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.favoritos__title::after,
.carta-cats__title::after,
.panel-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(92,61,36,0.28), rgba(92,61,36,0.05));
}
.favoritos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.fav-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid rgba(92, 61, 36, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(63, 42, 22, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.fav-card picture, .fav-card img {
  display: block;
  width: 100%;
}
.fav-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.fav-card:nth-child(3) img { object-position: 50% 45%; }
.fav-card:nth-child(4) img { object-position: 50% 62%; }
.fav-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: 1px solid rgba(92, 61, 36, 0.1);
  background: linear-gradient(180deg, #fffdf8, #f7efe4);
}
.fav-card__body h4 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}
.fav-card__price {
  margin: 0;
  font-size: 1rem;
}
.fav-card:hover,
.fav-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(63, 42, 22, 0.14);
  outline: none;
}
.fav-card:hover img,
.fav-card:focus-visible img { transform: scale(1.04); }

@media (min-width: 800px) {
  .favoritos__grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .fav-card__body h4 { font-size: 1.08rem; }
}

/* Gallery sits as a quieter “en el local” strip */
.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--coffee);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.gallery-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(92,61,36,0.28), rgba(92,61,36,0.05));
}
.section--carta .gallery--cafe {
  margin-bottom: 2rem;
  padding-top: 0.2rem;
}
.section--carta .gallery--cafe figure {
  border-color: rgba(92, 61, 36, 0.14);
}
.section--carta .gallery--cafe img { aspect-ratio: 1 / 1; }
@media (min-width: 800px) {
  .section--carta .gallery--cafe img { aspect-ratio: 4 / 5; }
}

/* Category nav — coffee pills, scrolls on mobile */
.carta-cats { margin: 0 0 0.4rem; }
.section--carta .tabs {
  position: sticky;
  top: var(--carta-tabs-top, var(--header-h));
  z-index: 25;
  background: var(--cream);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(92, 61, 36, 0.16);
  box-shadow: 0 8px 18px rgba(63, 42, 22, 0.10);
  gap: 0.4rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-top: 0.45rem;
  padding-bottom: 0.55rem;
}
.section--carta .panel {
  scroll-margin-top: calc(var(--carta-tabs-top, var(--header-h)) + var(--tabs-h, 3.75rem) + 8px);
}
.section--carta .panel-title {
  scroll-margin-top: calc(var(--carta-tabs-top, var(--header-h)) + var(--tabs-h, 3.75rem) + 8px);
  margin-top: 1.15rem;
}
.section--carta .panel:first-of-type .panel-title,
.section--carta .panel:first-child .panel-title {
  margin-top: 0.6rem;
}
.section--carta .item.is-target {
  outline: 2px solid rgba(92, 61, 36, 0.35);
  outline-offset: 3px;
}
.section--carta .tab {
  border: 1px solid rgba(92, 61, 36, 0.22);
  background: #fffbf5;
  color: var(--coffee-mid);
  font-weight: 600;
}
.section--carta .tab.is-active,
.section--carta .tab[aria-selected="true"] {
  background: var(--coffee);
  color: var(--ivory);
  border-color: var(--coffee);
  box-shadow: 0 2px 8px rgba(63, 42, 22, 0.18);
}
.section--carta .tab:hover:not(.is-active) {
  background: #f3e8d8;
  color: var(--ink);
  border-color: rgba(92, 61, 36, 0.35);
}
.panel-title {
  margin: 0.4rem 0 0.9rem;
  font-size: 1.35rem;
}

/* Menu cards: more padded, coffee hairline, not a QR list */
.section--carta .item {
  border: 1px solid rgba(92, 61, 36, 0.13);
  box-shadow: 0 1px 0 rgba(92, 61, 36, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(180deg, rgba(92,61,36,0.06), transparent 40%) border-box;
}
.section--carta .item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(63, 42, 22, 0.1);
}
.section--carta .item--photo {
  grid-template-columns: 6.75rem 1fr auto;
  padding: 0.7rem;
}
.section--carta .item__img {
  width: 6.75rem;
  height: 6.75rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(92, 61, 36, 0.08);
}
.section--carta .item.item--featured {
  border: 1px solid rgba(92, 61, 36, 0.16);
  background: var(--paper);
}
.section--carta .item.item--featured:hover { transform: none; }

/* ----- Jericó chocolatería ----- */
.section--jerico {
  /* Repeatable square chocolate tile — size only on the width, height auto,
     so squares stay square at any section height. Never cover/100% 100%. */
  background-color: var(--cocoa);
  background-image: url("../img/jerico/tableta.jpg");
  background-image: image-set(
    url("../img/jerico/tableta.webp") type("image/webp"),
    url("../img/jerico/tableta.jpg") type("image/jpeg")
  );
  background-repeat: repeat;
  background-size: 16.5rem auto;
  background-position: center top;
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.jerico-tableta-velo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 78% at 50% 32%,
      rgba(42, 24, 16, 0.42) 0%,
      rgba(42, 24, 16, 0.16) 55%,
      rgba(16, 8, 5, 0.40) 100%);
}
@media (max-width: 799px) {
  .section--jerico {
    background-size: 12rem auto;
    background-position: center top;
  }
  .jerico-tableta-velo {
    background:
      radial-gradient(ellipse 92% 80% at 50% 28%,
        rgba(42, 24, 16, 0.28) 0%,
        rgba(42, 24, 16, 0.10) 55%,
        rgba(16, 8, 5, 0.30) 100%);
  }
}
.section--jerico::before,
.section--jerico::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}
.section--jerico::before { top: 0.7rem; }
.section--jerico::after { bottom: 0.7rem; }
/* inner frame, inspired by the card's gold border — decorative only */
.section--jerico .wrap {
  position: relative;
  z-index: 1;
}
.section--jerico a { color: var(--gold); }
.section--jerico a:hover { color: var(--ivory); }
.jerico-brand {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
  padding: 0.5rem 0 0.2rem;
}
.jerico-eyebrow {
  font-family: var(--font-jerico);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.jerico-brand picture { display:block; width:min(16.5rem, 72%); margin:0 auto 0.55rem; }
.jerico-logo {
  width: 100%;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
.jerico-sub {
  font-family: var(--font-jerico);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.ornament-oro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto 1.15rem;
  width: min(22rem, 90%);
}
.ornament-oro span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid));
}
.ornament-oro span:last-of-type {
  background: linear-gradient(90deg, var(--gold-mid), transparent);
}
.ornament-oro img {
  width: 2.1rem;
  height: auto;
  flex: 0 0 auto;
}
.jerico-heading {
  font-family: var(--font-jerico);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: 0.06em;
  color: #E6C76A;
  background-image: linear-gradient(180deg, #F8E7B0 0%, #E6C76A 42%, #D4AF37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.8rem;
  line-height: 1.35;
}
.section--jerico .lede {
  color: #E6C76A;
  margin: 0;
}

.jerico-puntos {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  color: #E6C76A;
  font-size: 1.02rem;
  line-height: 1.45;
}
.jerico-puntos li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.62rem;
}
.jerico-puntos li:last-child { margin-bottom: 0; }
.jerico-puntos img {
  width: 1.25rem;
  height: auto;
  flex: 0 0 auto;
  margin-top: 0.18em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.section--jerico .choco-cover,
.section--jerico .gallery--choco figure {
  background: var(--cocoa-lift);
  border: 1px solid rgba(232, 197, 106, 0.28);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.section--jerico .choco-cover {
  margin: 0 0 1rem;
}
.section--jerico .choco-cover img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 55%;
}
.section--jerico .choco-cover figcaption,
.section--jerico .gallery--choco figcaption {
  color: #E6C76A;
  background: transparent;
  padding: 0.55rem 0.8rem 0.75rem;
}
.section--jerico .gallery--choco {
  margin-bottom: 1.8rem;
}

.item-list--jerico {
  gap: 0.7rem;
}
.item-list--jerico .item {
  background: rgba(42, 24, 16, 0.38);
  border: 1px solid rgba(232, 197, 106, 0.38);
  color: #E6C76A;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 235, 0.28),
    inset 0 -1px 0 rgba(42, 24, 16, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.18);
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .item-list--jerico .item {
    background: rgba(255, 248, 235, 0.12);
    -webkit-backdrop-filter: blur(12px) saturate(1.35);
    backdrop-filter: blur(12px) saturate(1.35);
  }
}
.item-list--jerico .item:hover {
  border-color: rgba(232, 197, 106, 0.55);
  background: rgba(42, 24, 16, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 235, 0.34),
    inset 0 -1px 0 rgba(42, 24, 16, 0.10),
    0 10px 24px rgba(0, 0, 0, 0.22);
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .item-list--jerico .item:hover {
    background: rgba(255, 248, 235, 0.16);
  }
}
.item-list--jerico .item__name {
  color: #E6C76A;
}
.item-list--jerico .item__desc {
  color: #D4AF37;
}
.item-list--jerico .item__price {
  color: var(--gold);
  font-family: var(--font-jerico);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 800px) {
  .jerico-brand picture { width: 18.5rem; }
  .section--jerico .choco-cover img { aspect-ratio: 16 / 8; max-height: 28rem; }
  .item-list--jerico { grid-template-columns: 1fr 1fr; }
}

/* Entrance (honours prefers-reduced-motion via the global rule) */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.favoritos__grid .fav-card,
.section--carta .gallery--cafe figure,
.section--jerico .choco-cover,
.section--jerico .gallery--choco figure {
  animation: rise-in 0.6s ease both;
}
.favoritos__grid .fav-card:nth-child(2) { animation-delay: 0.06s; }
.favoritos__grid .fav-card:nth-child(3) { animation-delay: 0.12s; }
.favoritos__grid .fav-card:nth-child(4) { animation-delay: 0.18s; }

/* Featured dish must win over the compact photo-card grid */
.section--carta .item.item--featured {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}
.section--carta .item.item--featured .item__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  grid-column: 1;
  grid-row: auto;
  border-radius: 0;
  box-shadow: none;
}
.section--carta .item.item--featured .item__body,
.section--carta .item.item--featured .item__price {
  grid-column: 1;
  grid-row: auto;
  padding: 0 1rem;
}
.section--carta .item.item--featured .item__price { padding-bottom: 1rem; }
@media (min-width: 800px) {
  .section--carta .item.item--featured {
    grid-column: 1 / -1;
    grid-template-columns: 16rem 1fr auto;
    align-items: center;
  }
  .section--carta .item.item--featured .item__img {
    aspect-ratio: 3 / 4;
    height: 14rem;
    width: 16rem;
    max-width: 16rem;
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .section--carta .item.item--featured .item__body { grid-column: 2; grid-row: 1 / span 2; padding-right: 0.5rem; }
  .section--carta .item.item--featured .item__price { grid-column: 3; grid-row: 1; padding-bottom: 0; }
}

.jerico-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--gold-mid);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(232, 197, 106, 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.jerico-wa svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}
.jerico-wa:hover,
.jerico-wa:focus-visible {
  color: var(--cocoa);
  background: var(--gold);
  border-color: var(--gold);
  outline: none;
}

.fav-card {
  position: relative;
}
.fav-card__note {
  position: absolute;
  left: 0; right: 0;
  bottom: auto;
  margin: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ivory);
  background: rgba(42, 24, 16, 0.72);
  letter-spacing: 0.01em;
  /* sit on the bottom of the photo, above the body */
}
/* place the note after the picture, over the image bottom */
.fav-card picture { display: block; }
.fav-card__note {
  position: relative;
  background: var(--coffee);
  color: var(--ivory);
  padding: 0.35rem 0.8rem;
  font-style: italic;
  font-weight: 600;
  font-size: 0.8rem;
  margin: 0;
}
.featured-jugo--texto {
  grid-template-columns: 1fr;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  padding: 0.4rem 0 0.2rem;
}
.featured-jugo--texto .btn { margin-inline: auto; }
@media (min-width: 800px) {
  .featured-jugo--texto { grid-template-columns: 1fr; }
}

.fav-card__media { position: relative; display: block; }
.fav-card__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.fav-card__note {
  position: absolute !important;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 0.4rem 0.75rem;
  background: rgba(42, 24, 16, 0.78);
  color: var(--ivory);
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
}

.item.is-target {
  outline: 2px solid var(--coffee);
  outline-offset: 3px;
}
