* {
  box-sizing: border-box;
}

:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.theme-casita {
  --bg: #faf6ed;
  --ink: #25342b;
  --deep: #29483b;
  --accent: #b44f35;
  --soft: #e9dfcc;
  --muted: #697067;
  --line: #dfd6c6;
  --card: #fffdf8;
}

body.theme-aguacatlan {
  --bg: #f5f5e9;
  --ink: #183425;
  --deep: #184a35;
  --accent: #a7c957;
  --soft: #e1e8d3;
  --muted: #596b5d;
  --line: #d4ddcb;
  --card: #fffef8;
}

body.theme-mestizo {
  --bg: #f8f4ed;
  --ink: #28231e;
  --deep: #29231f;
  --accent: #ae6045;
  --soft: #e9ddcf;
  --muted: #766a60;
  --line: #ded4c9;
  --card: #fffdf9;
}

body.theme-magna {
  --bg: #f4f0e9;
  --ink: #292a29;
  --deep: #222b2b;
  --accent: #c28b4a;
  --soft: #e9dfd0;
  --muted: #716b63;
  --line: #ddd5c8;
  --card: #fffdf8;
}

body.theme-anega {
  --bg: #f4eee3;
  --ink: #2c2119;
  --deep: #3b2419;
  --accent: #d66b35;
  --soft: #e7d8c4;
  --muted: #756456;
  --line: #d9c6b1;
  --card: #fffaf1;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 6.4rem;
}

.skip-link {
  position: absolute;
  z-index: 40;
  top: -5rem;
  left: 1rem;
  padding: .75rem 1rem;
  border-radius: .6rem;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .85rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-family: Georgia, serif;
  font-size: .92rem;
  letter-spacing: .04em;
}

.brand-name {
  display: grid;
  line-height: 1.2;
}

.brand-name strong {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

.brand-name small {
  margin-top: .27rem;
  color: var(--muted);
  font-size: .59rem;
  letter-spacing: .13em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.75rem);
}

.site-nav > a:not(.button) {
  color: var(--muted);
  font-size: .84rem;
  text-decoration: none;
  transition: color .2s;
}

.site-nav > a:not(.button):hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary,
.button-dark {
  background: var(--deep);
  color: #fff;
}

.button-primary:hover,
.button-dark:hover {
  background: var(--ink);
}

.button-secondary {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--deep);
}

.hero {
  display: grid;
  max-width: 1440px;
  min-height: min(790px, calc(100svh - 76px));
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .98fr);
  gap: clamp(2.5rem, 7vw, 7.5rem);
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 7.4rem) clamp(1.25rem, 7vw, 7.5rem) clamp(3.5rem, 6vw, 6rem);
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.hero-copy .eyebrow::before {
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .99;
}

.hero-lead {
  max-width: 39rem;
  margin: 1.4rem 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.rating-row {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: .75rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.rating-score {
  color: var(--deep);
  font-family: Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.rating-stars {
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .1em;
}

.rating-caption {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .74rem;
  text-decoration: none;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.04;
  background: var(--soft);
  box-shadow: 0 24px 60px #201b1718;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-casita .hero-photo {
  border-radius: 45% 45% 14px 14px / 28% 28% 14px 14px;
}

.theme-aguacatlan .hero-photo {
  border-radius: 12px 12px 135px 12px;
}

.theme-mestizo .hero-photo {
  border-radius: 3px 3px 105px 3px;
  box-shadow: 14px 14px 0 var(--soft), 0 24px 60px #201b1718;
}

.theme-magna .hero-photo {
  border-radius: 220px 220px 14px 14px;
}

.photo-tag {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .72rem .9rem;
  border: 1px solid #ffffff50;
  border-radius: 1rem;
  background: #17221dcc;
  color: white;
  font-size: .7rem;
  backdrop-filter: blur(10px);
}

.photo-tag a {
  border-bottom: 1px solid #ffffff80;
  text-decoration: none;
  white-space: nowrap;
}

.floating-note {
  position: absolute;
  top: 11%;
  right: -1.3rem;
  max-width: 150px;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 12px 35px #17130e20;
  font-family: Georgia, serif;
  font-size: .93rem;
  line-height: 1.25;
  transform: rotate(3deg);
}

.theme-aguacatlan .floating-note {
  color: var(--deep);
}

.theme-mestizo .floating-note {
  top: auto;
  right: auto;
  bottom: 12%;
  left: -1.5rem;
  transform: rotate(-3deg);
}

.theme-magna .floating-note {
  top: 12%;
  right: -1.2rem;
  transform: rotate(2deg);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.3rem clamp(1.2rem, 7vw, 7.5rem);
  background: var(--deep);
  color: #fff;
}

.intro-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .35rem .4rem;
  font-size: .81rem;
  letter-spacing: .025em;
  text-align: center;
}

.intro-item span {
  color: var(--accent);
  font-size: 1.05rem;
}

.section {
  max-width: 1250px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 6vw, 5.5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 1rem;
}

.menu-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--card);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 14px 32px #17130e0c;
}

.theme-casita .menu-card:nth-child(odd) {
  background: #f5eedf;
}

.theme-aguacatlan .menu-card {
  border-radius: .55rem 1.25rem .55rem 1.25rem;
}

.theme-mestizo .menu-card {
  border-radius: .55rem;
}

.theme-magna .menu-card:nth-child(2) {
  background: #f0e7d9;
}

.menu-card .menu-number {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .13em;
}

.menu-card h3 {
  margin: .8rem 0 .45rem;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
}

.menu-card p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}

.menu-card .menu-kind {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.menu-card.menu-image-card {
  min-height: unset;
  padding: 0;
}

.menu-image-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  text-decoration: none;
}

.menu-image-card img {
  width: 100%;
  height: 440px;
  padding: .55rem;
  background: #f1eee7;
  object-fit: contain;
}

.menu-image-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem 1.15rem 1.2rem;
}

.menu-image-label strong {
  font-family: Georgia, serif;
  font-size: 1.18rem;
  font-weight: 500;
}

.menu-image-label span {
  color: var(--muted);
  font-size: .72rem;
  text-align: right;
}

.fine-note {
  margin-top: 1.1rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--soft) 60%, transparent);
  color: var(--muted);
  font-size: .76rem;
}

.gallery-section {
  padding-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid.gallery-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.15 / 1;
  margin: 0;
  border-radius: 1rem;
  background: var(--soft);
  box-shadow: 0 10px 35px #1c19120d;
}

.gallery-grid.gallery-count-2 figure {
  aspect-ratio: 1.38 / 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s;
}

.gallery-grid a {
  display: block;
  height: 100%;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #17221dcb;
  color: #fff;
  font-size: .69rem;
}

.reviews-section {
  background: var(--soft);
}

.reviews-inner {
  max-width: 1250px;
  margin: auto;
  padding: clamp(4rem, 7vw, 6.8rem) clamp(1.25rem, 6vw, 5.5rem);
}

.reviews-inner .section-heading {
  margin-bottom: 2.2rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: 1.2rem;
  background: var(--card);
  transition: transform .22s, box-shadow .22s;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px #17130e0d;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.review-card blockquote {
  flex: 1;
  margin: 1rem 0 1.5rem;
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.22;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.review-meta b {
  font-size: .78rem;
}

.review-meta small {
  display: block;
  margin-top: .14rem;
  color: var(--muted);
  font-size: .68rem;
}

.review-link {
  border-bottom: 1px solid var(--line);
  font-size: .72rem;
  text-decoration: none;
  white-space: nowrap;
}

.visit-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.visit-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 1.5rem;
  background: var(--deep);
  color: #fff;
}

.visit-card .eyebrow {
  color: var(--accent);
}

.visit-card h2 {
  margin: 0 0 1rem;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}

.visit-card p {
  margin: .35rem 0;
  color: #ffffffc9;
  font-size: .92rem;
}

.visit-details {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.visit-detail {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #ffffff32;
}

.visit-detail > span {
  color: #ffffff9e;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.visit-detail strong,
.visit-detail a,
.visit-hours {
  overflow-wrap: anywhere;
  font-size: .88rem;
  font-weight: 550;
}

.visit-hours span {
  display: block;
}

.visit-detail a {
  text-decoration: none;
}

.visit-detail a:hover {
  text-decoration: underline;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .6rem;
}

.visit-card .button-primary {
  background: #fff;
  color: var(--deep);
}

.visit-card .button-primary:hover {
  background: var(--accent);
  color: var(--ink);
}

.visit-card .button-secondary {
  border-color: #ffffff70;
  background: transparent;
  color: #fff;
}

.visit-card .button-secondary:hover {
  background: #ffffff16;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.25rem, 6vw, 5.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
}

.photo-dialog {
  overflow: visible;
  max-width: min(92vw, 1000px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #171a17;
  color: #fff;
}

.photo-dialog::backdrop {
  background: #101512dd;
  backdrop-filter: blur(5px);
}

.photo-dialog img {
  width: auto;
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 1rem;
  object-fit: contain;
}

.dialog-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  padding: .5rem .8rem;
  border: 1px solid #ffffff70;
  border-radius: 999px;
  background: #121712dc;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
}

.photo-dialog p {
  margin: .45rem .1rem .1rem;
  color: #ffffffc9;
  font-size: .75rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.6rem);
  }

  .floating-note {
    right: -.5rem;
  }

  .theme-mestizo .floating-note {
    left: -.5rem;
  }

  .intro-band {
    padding-inline: 1rem;
  }

  .section,
  .reviews-inner {
    padding-inline: 2.2rem;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: .7rem 1rem;
  }

  .brand-name strong {
    font-size: .9rem;
  }

  .brand-name small {
    font-size: .52rem;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + .3rem);
    right: .75rem;
    left: .75rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--card);
    box-shadow: 0 16px 35px #0002;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a:not(.button) {
    padding: .65rem .35rem;
  }

  .site-nav .button {
    margin-top: .45rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 3.1rem 1.2rem 3.3rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 14vw, 5.2rem);
  }

  .hero-lead {
    margin: 1.15rem 0 1.4rem;
    font-size: 1rem;
  }

  .rating-row {
    margin-top: 1.5rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 540px;
    margin: auto;
  }

  .hero-photo {
    aspect-ratio: 1 / 1.08;
  }

  .floating-note {
    max-width: 125px;
    padding: .8rem;
    font-size: .82rem;
  }

  .theme-aguacatlan .floating-note,
  .theme-magna .floating-note {
    right: -.35rem;
  }

  .theme-mestizo .floating-note {
    left: -.35rem;
  }

  .intro-band {
    grid-template-columns: 1fr;
    gap: 0;
    padding: .7rem 1.2rem;
  }

  .intro-item {
    justify-content: flex-start;
    padding: .5rem .1rem;
    border-bottom: 1px solid #ffffff25;
    text-align: left;
  }

  .intro-item:last-child {
    border: 0;
  }

  .section,
  .reviews-inner {
    padding: 4rem 1.2rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 1.6rem;
  }

  .section-heading > p {
    margin-top: .8rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 180px;
  }

  .menu-image-card img {
    height: 460px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
  }

  .gallery-grid.gallery-count-2 {
    max-width: 560px;
    grid-template-columns: 1fr;
    margin-inline: auto;
  }

  .gallery-grid figure,
  .gallery-grid.gallery-count-2 figure {
    aspect-ratio: 1 / 1;
  }

  .gallery-grid figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 1.7 / 1;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .visit-card {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.5rem;
  }

  .visit-detail {
    grid-template-columns: 6rem 1fr;
  }

  .visit-hours span {
    line-height: 1.5;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-section {
    padding-top: 0;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .photo-tag {
    padding: .62rem;
    font-size: .62rem;
  }

  .visit-detail {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

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

/* ANEGA: fogón de barro, humo suave y mesa de madera. */
.theme-anega {
  background-image: radial-gradient(ellipse at 88% 16%, #d66b3511, transparent 27rem), radial-gradient(ellipse at 4% 56%, #5a38200a, transparent 24rem);
}

.theme-anega .brand-mark {
  border-radius: 50% 50% 45% 45%;
  background: #3b2419;
  color: #f1a76c;
}

.theme-anega .hero-photo {
  border: 5px solid #fffaf1;
  border-radius: 48% 48% .7rem .7rem / 31% 31% .7rem .7rem;
  box-shadow: 0 0 0 1px #b86b3e66, 0 26px 58px #351f1626;
}

.theme-anega .hero-visual::before {
  inset: -1.2rem 3% 2% 3%;
  border: 1px solid #b86b3e75;
  border-radius: 50% 50% .7rem .7rem / 32% 32% .7rem .7rem;
  box-shadow: 0 0 0 .7rem #b86b3e0a, 0 0 0 1.4rem #b86b3e07;
}

.theme-anega .hero-visual::after {
  position: absolute;
  z-index: -1;
  top: 2%;
  right: 12%;
  width: 3.5rem;
  height: 5.5rem;
  border: 1px solid #b86b3e55;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  filter: blur(.2px);
  transform: rotate(-30deg);
  animation: smoke-wisp 7s ease-in-out 1.2s infinite;
}

.theme-anega .floating-note {
  --note-rotation: -2deg;
  border: 1px solid #d9bfa5;
  border-radius: .55rem .55rem .2rem .2rem;
  background: #fff7e8;
}

.theme-anega .stamp-icon {
  background: #f2dfca;
  color: #a84e28;
}

.theme-anega .intro-band {
  background-color: #43281b;
  background-image: repeating-linear-gradient(115deg, transparent 0 29px, #ffffff09 30px 31px);
}

.theme-anega .feature-icon {
  border-color: #e98c584c;
  color: #f1a76c;
}

.theme-anega .kicker-icon {
  border-color: #d66b3555;
  color: #b3542c;
}

.theme-anega .story-rule {
  color: #b3542c;
}

.theme-anega .story-rule > span {
  border-radius: 50%;
  background: #f1e4d3;
}

.theme-anega .menu-card {
  border-color: #573a2b;
  border-radius: .55rem;
  background: linear-gradient(145deg, #43291d, #302119);
  color: #fff6e9;
}

.theme-anega .menu-card p,
.theme-anega .menu-card .menu-kind {
  color: #e4d1bdc9;
}

.theme-anega .menu-category-card {
  min-height: 0;
  justify-content: flex-start;
}

.theme-anega .menu-list {
  display: grid;
  gap: .35rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}

.theme-anega .menu-list li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid #ffffff1a;
  color: #fff6e9;
  font-size: .8rem;
}

.theme-anega .menu-list li strong {
  flex: none;
  color: #f3ac73;
  font-weight: 700;
}

.theme-anega .menu-category-note {
  margin-top: .75rem !important;
  font-style: italic;
}

.theme-anega .menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.theme-anega .menu-card .menu-number {
  color: #f3ac73;
}

.theme-anega .menu-icon {
  border-color: #f3ac7366;
  color: #f3ac73;
}

.theme-anega .menu-card:hover .menu-icon {
  background: #f3ac73;
  color: #382218;
}

.theme-anega .fine-note {
  border-left-color: #c75d2b;
  background: #efe2d1;
  color: #665143;
}

.theme-anega .gallery-pending {
  border-color: #c19a77;
  background: linear-gradient(135deg, #efe3d2, #f8f1e6);
}

.theme-anega .pending-icon {
  color: #ae562c;
}

.theme-anega .rating-unverified .unverified-mark {
  background: #f0e0cc;
  color: #a94f27;
}

.theme-anega .visit-card {
  border: 1px solid #5b3c2b;
  border-radius: .65rem;
  background: #382419;
  box-shadow: inset 0 0 0 5px #ffffff05;
}

.theme-anega .visit-card .eyebrow,
.theme-anega .visit-card .detail-icon {
  color: #f1a76c;
}

.theme-anega .visit-card .button-secondary {
  border-color: #f4cfaa80;
}

.theme-anega .visit-card .button-primary:hover {
  background: #e5955f;
  color: #382419;
}

.gallery-pending {
  display: grid;
  min-height: 14rem;
  align-content: center;
  justify-items: center;
  gap: .6rem;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--soft) 45%, var(--card));
  text-align: center;
}

.gallery-pending > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .8;
}

.pending-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.gallery-pending p,
.gallery-pending small {
  margin: 0;
  color: var(--muted);
}

.gallery-pending p {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.rating-unverified {
  width: max-content;
  align-items: center;
}

.unverified-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
}

.rating-unverified .icon {
  width: 1rem;
  height: 1rem;
}

@keyframes smoke-wisp {
  0%, 100% { opacity: .45; transform: translateY(0) rotate(-30deg); }
  50% { opacity: .8; transform: translate(4px, -8px) rotate(-23deg); }
}

@media (max-width: 700px) {
  .theme-anega .hero-visual::after {
    right: 8%;
    width: 2.5rem;
    height: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-anega .hero-visual::after {
    animation: none !important;
  }
}

/* Identidad gráfica, jerarquía de iconos y movimiento de baja intensidad. */
.icon,
.button-icon,
.brand-icon,
.menu-icon,
.detail-icon,
.feature-icon,
.review-icon,
.portal-icon,
.toggle-icon {
  display: inline-block;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: middle;
}

.brand-mark {
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 42% 42% 42% 12%;
  transition: border-radius .35s, transform .35s;
}

.brand-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.brand:hover .brand-mark {
  transform: rotate(-5deg);
}

.theme-aguacatlan .brand-mark {
  border-radius: 54% 46% 56% 44% / 62% 62% 38% 38%;
  background: #315638;
  color: #d7ee9d;
}

.theme-mestizo .brand-mark {
  border-radius: .25rem;
  background: var(--accent);
}

.theme-magna .brand-mark {
  border-radius: 50% 50% .25rem .25rem;
  color: #e5bd7a;
}

.button {
  min-height: 2.9rem;
}

.button-icon {
  width: .98rem;
  height: .98rem;
  transition: transform .22s;
}

.button:hover .button-icon,
.review-link:hover .button-icon {
  transform: translateX(3px);
}

.site-nav > a:not(.button) {
  position: relative;
  padding-block: .45rem;
}

.site-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: .1rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s;
}

.site-nav > a:not(.button):hover::after,
.site-nav > a:not(.button):focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle .toggle-icon {
  transition: transform .3s;
}

.menu-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
}

.hero {
  overflow: hidden;
}

.hero-copy {
  animation: hero-copy-in .72s both;
}

.hero-visual {
  isolation: isolate;
  animation: hero-visual-in .82s .08s both;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero-photo {
  z-index: 1;
}

.hero-photo img {
  transition: transform .8s cubic-bezier(.2, .65, .3, 1), filter .8s;
}

.floating-note {
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  align-items: center;
  gap: .55rem;
  --note-rotation: 3deg;
  animation: note-drift 5.5s ease-in-out 1s infinite;
}

.stamp-icon {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--deep);
}

.stamp-icon .icon {
  width: 1rem;
  height: 1rem;
}

.theme-casita .hero-visual::before {
  inset: -1.3rem 8% 4% -2rem;
  border: 1px solid #b44f3566;
  border-radius: 50% 50% 1.3rem 1.3rem / 31% 31% 1.3rem 1.3rem;
  transform: rotate(-4deg);
}

.theme-casita .floating-note {
  --note-rotation: 3deg;
}

.theme-aguacatlan .hero-visual::before {
  inset: 8% -2rem -1rem 7%;
  border: 1px solid #6e914b85;
  border-radius: 48% 52% 43% 57% / 56% 46% 54% 44%;
  transform: rotate(12deg);
}

.theme-aguacatlan .hero-visual::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -2.2rem;
  width: 5.5rem;
  height: 5.5rem;
  border: 1px dashed #6e914b80;
  border-radius: 50%;
  content: "";
}

.theme-aguacatlan .hero-photo {
  border-radius: 12px 12px 135px 12px;
}

.theme-aguacatlan .floating-note {
  --note-rotation: 1deg;
  border-radius: 1rem 1rem 1rem .2rem;
}

.theme-mestizo .hero-visual::before {
  inset: 1.2rem -1.3rem -1.3rem 1.2rem;
  background-image: linear-gradient(90deg, #ae604516 1px, transparent 1px), linear-gradient(#ae604516 1px, transparent 1px);
  background-size: 17px 17px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.theme-mestizo .hero-visual::after {
  position: absolute;
  z-index: -1;
  top: -.85rem;
  right: -.9rem;
  width: 5.2rem;
  height: 5.2rem;
  border: 1px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.theme-mestizo .floating-note {
  --note-rotation: -3deg;
  border-radius: .35rem;
}

.theme-magna .hero-visual::before {
  inset: -1.3rem 4% 2% 4%;
  border: 1px solid #c28b4a88;
  border-radius: 48% 48% 0 0 / 31% 31% 0 0;
}

.theme-magna .hero-visual::after {
  position: absolute;
  z-index: -1;
  right: -2rem;
  bottom: 4%;
  width: 5rem;
  height: 5rem;
  border: 1px solid #c28b4a70;
  border-radius: 50%;
  content: "";
}

.theme-magna .floating-note {
  --note-rotation: 2deg;
  border: 1px solid #c28b4a36;
  border-radius: 1rem 1rem .2rem .2rem;
}

.photo-tag a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.intro-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.intro-band::after {
  position: absolute;
  z-index: -1;
  top: -5rem;
  right: 8%;
  width: 14rem;
  height: 14rem;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  content: "";
}

.intro-item {
  transition: transform .25s;
}

.intro-item:hover {
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #ffffff3a;
  border-radius: 50%;
  color: var(--accent);
}

.feature-icon .icon {
  width: 1rem;
  height: 1rem;
}

.kicker-icon {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
}

.kicker-icon .icon {
  width: .85rem;
  height: .85rem;
}

.section-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.story-section .section-heading {
  align-items: center;
}

.story-section .section-heading > p {
  font-size: 1rem;
  line-height: 1.8;
}

.story-rule {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: min(100%, 26rem);
  margin-top: 2rem;
  color: var(--accent);
}

.story-rule > span {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.story-rule .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.story-rule i {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: .35;
}

.story-rule small {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .06em;
}

.theme-casita .story-rule > span {
  border-radius: 42% 42% 42% 12%;
}

.theme-aguacatlan .story-rule > span {
  border-radius: 50% 50% 50% 8%;
  transform: rotate(-12deg);
}

.theme-mestizo .story-rule > span {
  border-radius: .2rem;
}

.theme-magna .story-rule > span {
  border-radius: 50% 50% 0 0;
}

.menu-card-top {
  display: flex;
  min-height: 2.25rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
}

.menu-icon {
  width: 2rem;
  height: 2rem;
  padding: .38rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 50%;
  color: var(--accent);
  transition: transform .28s, background .28s, color .28s;
}

.menu-card:hover .menu-icon {
  transform: rotate(-9deg) scale(1.07);
  background: var(--deep);
  color: #fff;
}

.theme-casita .menu-card {
  border-radius: 1.1rem 1.1rem 1.1rem .35rem;
}

.theme-aguacatlan .menu-card:nth-child(odd) {
  background: #edf1e2;
}

.theme-aguacatlan .menu-icon {
  border-radius: 45% 45% 45% 5%;
}

.theme-mestizo .menu-card:nth-child(even) {
  background: #f0e8dc;
}

.theme-mestizo .menu-number {
  font-family: Georgia, serif;
  font-size: .85rem;
}

.theme-mestizo .menu-icon {
  border-radius: .25rem;
}

.theme-magna .menu-card {
  border-radius: 1.2rem 1.2rem .2rem .2rem;
}

.theme-magna .menu-icon {
  border-radius: 50% 50% .1rem .1rem;
}

.menu-image-label .button-icon {
  color: var(--accent);
}

.gallery-grid figure {
  transition: transform .28s, box-shadow .28s;
}

.gallery-grid a {
  overflow: hidden;
}

.gallery-grid a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -5px;
}

.gallery-grid figcaption {
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: transform .25s, background .25s;
}

.gallery-grid figcaption::before {
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.review-icon {
  width: .9rem;
  height: .9rem;
  margin-right: .4rem;
}

.review-card {
  position: relative;
  overflow: hidden;
}

.review-card::after {
  position: absolute;
  top: -.3rem;
  right: .8rem;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  opacity: .07;
  content: "“";
  pointer-events: none;
}

.review-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.visit-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.visit-card::after {
  position: absolute;
  z-index: -1;
  right: -5rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid #ffffff1c;
  border-radius: 50%;
  box-shadow: 0 0 0 1.6rem #ffffff08, 0 0 0 3.2rem #ffffff06;
  content: "";
}

.visit-detail > span {
  display: flex;
  align-items: center;
  gap: .42rem;
}

.detail-icon {
  width: .85rem;
  height: .85rem;
  color: var(--accent);
}

.visit-card .kicker-icon {
  border-color: #ffffff50;
}

.visit-card .eyebrow {
  color: #fff;
}

.site-footer {
  line-height: 1.55;
}

.site-footer p:last-child {
  max-width: 42rem;
  text-align: right;
}

body.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .65, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.motion-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-visual-in {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes note-drift {
  0%, 100% { transform: translateY(0) rotate(var(--note-rotation)); }
  50% { transform: translateY(-5px) rotate(calc(var(--note-rotation) - 1deg)); }
}

@media (hover: hover) {
  .hero-visual:hover .hero-photo img {
    filter: saturate(1.04);
    transform: scale(1.018);
  }

  .gallery-grid figure:hover {
    box-shadow: 0 18px 42px #1c19121e;
    transform: translateY(-3px);
  }

  .gallery-grid figure:hover figcaption {
    background: var(--deep);
    transform: translateY(-2px);
  }
}

@media (max-width: 700px) {
  .site-nav > a:not(.button)::after {
    bottom: .35rem;
  }

  .theme-aguacatlan .hero-visual::after {
    right: -.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }

  .theme-mestizo .hero-visual::after {
    right: -.25rem;
    width: 3rem;
    height: 3rem;
  }

  .theme-magna .hero-visual::after {
    right: -.5rem;
    width: 3rem;
    height: 3rem;
  }

  .story-section .section-heading {
    align-items: flex-start;
  }

  .story-rule {
    margin-top: 1.5rem;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual,
  .floating-note {
    animation: none !important;
  }

  body.motion-ready .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
