/* Huamantla Core 4.0.1: paquete CSS consolidado de Inicio. Fuente: archivos originales listados abajo. */
/* tokens.css */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --hd-ink: #10232b;
  --hd-pink: #e53281;
  --hd-pink-text: #d62a78;
  --hd-gold: #d7ae75;
  --hd-secondary: #4c5a60;
  --hd-muted: #677277;
  --hd-paper: #f2f4f4;
  --hd-soft: #fafbfb;
  --hd-line: #dfe3e1;
  --hd-white: #ffffff;

  /* Alias de compatibilidad con Demo 2.0 y Laboratorio Visual. */
  --ink: var(--hd-ink);
  --paper: var(--hd-paper);
  --secondary: var(--hd-secondary);
  --line: var(--hd-line);
  --pink: var(--hd-pink);
  --pink-text: var(--hd-pink-text);
  --pink-text-accessible: var(--hd-pink-text);
  --gold: var(--hd-gold);
  --white: var(--hd-white);
}

/*
 * Controles administrables de grid para Elementor. El modo normal continúa
 * gobernado por el CSS original de cada página. Estas reglas sólo se activan
 * cuando la persona elige Masonry en el widget correspondiente.
 */
.hd-grid-main-mode-masonry :is(
  .hd-source-method-grid,
  .hd-source-related-grid,
  .hd-faq-theme-grid,
  .hd-contact-overview,
  .hd-contact-writing-grid,
  .hd-contact-team-grid,
  .hd-visit-planning-grid,
  .hd-visit-experience-grid,
  .hd-visit-why-grid,
  .hd-visit-related-grid,
  .hd-first-visit-season-grid,
  .hd-first-visit-must-see-grid,
  .hd-first-visit-planning-links,
  .hd-arrival-distance-grid,
  .hd-arrival-route-list,
  .hd-arrival-tips-grid,
  .hd-malinche-quick-grid,
  .hd-malinche-distance-list,
  .hd-malinche-nature-facts,
  .hd-malinche-history-grid,
  .hd-malinche-gallery-grid,
  .hd-malinche-related-news-grid,
  .hd-conoce-identity-grid,
  .hd-conoce-celebration-grid,
  .hd-conoce-heritage-grid
),
.hd-grid-primary-mode-masonry .hd-contact-purpose-primary,
.hd-grid-values-mode-masonry .hd-contact-values-grid,
.hd-grid-facts-mode-masonry .hd-celebration-facts,
.hd-grid-documents-mode-masonry :is(.hd-celebration-document-grid, .hd-document-grid),
.hd-grid-experience-mode-masonry .hd-celebration-experience-grid,
.hd-grid-guide-mode-masonry .hd-celebration-guide-grid,
.hd-grid-gallery-mode-masonry .hd-celebration-gallery-grid,
.hd-grid-plan-mode-masonry .hd-celebration-plan-grid,
.hd-grid-news-mode-masonry .hd-celebration-news-grid,
.hd-grid-more-mode-masonry .hd-celebration-more-grid,
.hd-grid-magic-reasons-mode-masonry .hd-magic-reasons-grid,
.hd-grid-magic-timeline-mode-masonry .hd-magic-timeline-grid,
.hd-grid-magic-care-mode-masonry .hd-magic-care-grid,
.hd-grid-city-meaning-mode-masonry .hd-city-meaning-grid,
.hd-grid-city-heroic-mode-masonry .hd-city-heroic-grid,
.hd-grid-city-territory-mode-masonry .hd-city-territory-grid,
.hd-grid-city-ecosystems-mode-masonry .hd-city-ecosystems-grid,
.hd-grid-city-government-mode-masonry .hd-city-government-grid,
.hd-grid-codex-definition-mode-masonry .codex-definition-grid,
.hd-grid-codex-importance-mode-masonry .codex-importance-grid,
.hd-grid-codex-fragments-mode-masonry .codex-fragment-cards,
.hd-grid-codex-conservation-mode-masonry .codex-conservation-grid,
.hd-grid-codex-visit-mode-masonry .codex-visit-grid,
.hd-grid-codex-materials-mode-masonry .codex-material-grid,
.hd-grid-history-events-mode-masonry .hd-history-year-events,
.hd-grid-monuments-catalog-mode-masonry .hd-monuments-grid {
  display: block !important;
  column-count: var(--hd-grid-columns, 2) !important;
  column-gap: 10px;
}

.hd-grid-main-mode-masonry :is(
  .hd-source-method-grid,
  .hd-source-related-grid,
  .hd-faq-theme-grid,
  .hd-contact-overview,
  .hd-contact-writing-grid,
  .hd-contact-team-grid,
  .hd-visit-planning-grid,
  .hd-visit-experience-grid,
  .hd-visit-why-grid,
  .hd-visit-related-grid,
  .hd-first-visit-season-grid,
  .hd-first-visit-must-see-grid,
  .hd-first-visit-planning-links,
  .hd-arrival-distance-grid,
  .hd-arrival-route-list,
  .hd-arrival-tips-grid,
  .hd-malinche-quick-grid,
  .hd-malinche-distance-list,
  .hd-malinche-nature-facts,
  .hd-malinche-history-grid,
  .hd-malinche-gallery-grid,
  .hd-malinche-related-news-grid,
  .hd-conoce-identity-grid,
  .hd-conoce-celebration-grid,
  .hd-conoce-heritage-grid
) > *,
.hd-grid-primary-mode-masonry .hd-contact-purpose-primary > *,
.hd-grid-values-mode-masonry .hd-contact-values-grid > *,
.hd-grid-facts-mode-masonry .hd-celebration-facts > *,
.hd-grid-documents-mode-masonry :is(.hd-celebration-document-grid, .hd-document-grid) > *,
.hd-grid-experience-mode-masonry .hd-celebration-experience-grid > *,
.hd-grid-guide-mode-masonry .hd-celebration-guide-grid > *,
.hd-grid-gallery-mode-masonry .hd-celebration-gallery-grid > *,
.hd-grid-plan-mode-masonry .hd-celebration-plan-grid > *,
.hd-grid-news-mode-masonry .hd-celebration-news-grid > *,
.hd-grid-more-mode-masonry .hd-celebration-more-grid > *,
.hd-grid-magic-reasons-mode-masonry .hd-magic-reasons-grid > *,
.hd-grid-magic-timeline-mode-masonry .hd-magic-timeline-grid > *,
.hd-grid-magic-care-mode-masonry .hd-magic-care-grid > *,
.hd-grid-city-meaning-mode-masonry .hd-city-meaning-grid > *,
.hd-grid-city-heroic-mode-masonry .hd-city-heroic-grid > *,
.hd-grid-city-territory-mode-masonry .hd-city-territory-grid > *,
.hd-grid-city-ecosystems-mode-masonry .hd-city-ecosystems-grid > *,
.hd-grid-city-government-mode-masonry .hd-city-government-grid > *,
.hd-grid-codex-definition-mode-masonry .codex-definition-grid > *,
.hd-grid-codex-importance-mode-masonry .codex-importance-grid > *,
.hd-grid-codex-fragments-mode-masonry .codex-fragment-cards > *,
.hd-grid-codex-conservation-mode-masonry .codex-conservation-grid > *,
.hd-grid-codex-visit-mode-masonry .codex-visit-grid > *,
.hd-grid-codex-materials-mode-masonry .codex-material-grid > *,
.hd-grid-history-events-mode-masonry .hd-history-year-events > *,
.hd-grid-monuments-catalog-mode-masonry .hd-monuments-grid > * {
  width: 100%;
  break-inside: avoid;
  margin-bottom: 10px;
}

/* footer.css */
.footer-b-preview{--ink: var(--hd-ink);--pink: var(--hd-pink);--pink-text: var(--hd-pink-text);--secondary: var(--hd-secondary);--paper: var(--hd-paper);--line: var(--hd-line);--white: var(--hd-white);--accent-dark: var(--hd-gold);box-sizing:border-box;font-family:"Montserrat",system-ui,sans-serif}.footer-b-preview *,.footer-b-preview *::before,.footer-b-preview *::after{box-sizing:border-box}.footer-b-preview a:focus-visible{outline:3px solid var(--pink);outline-offset:3px}.footer-b-preview{--footer-accent: var(--accent-dark);width:100%;padding:48px 0 24px;background:var(--ink)}.footer-b-content{width:min(100% - 48px,1180px);margin-inline:auto;padding:0;color:var(--white)}.footer-b-preview .identity-card{display:grid;grid-template-columns:minmax(280px,1.25fr) minmax(320px,1fr);gap:clamp(28px,5vw,64px);align-items:start;padding:0 clamp(16px,4vw,48px) 48px;border-radius:22px;background:transparent;color:var(--white)}.footer-b-preview .identity-copy>img{width:min(100%,330px);height:auto;display:block;object-fit:contain;object-position:left center}.footer-b-preview .identity-copy>p{max-width:42ch;margin:24px 0 0;color:rgba(255,255,255,0.72);font-size:0.88rem;line-height:1.65}.footer-b-preview .social-card{padding:24px;border:1px solid rgba(255,255,255,0.18);border-radius:22px;background:rgba(255,255,255,0.07)}.footer-b-preview .social-card>p{margin:0 0 16px;color:var(--footer-accent);font-size:0.75rem;font-weight:800;letter-spacing:0.1em;text-transform:uppercase}.footer-b-preview .social-icons{display:flex;flex-wrap:wrap;gap:8px}.footer-b-preview .social-icon{width:48px;height:48px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,0.24);border-radius:50%;color:var(--white);text-decoration:none}.footer-b-preview .social-icon:hover{border-color:var(--footer-accent);color:var(--footer-accent)}.footer-b-preview .social-icon svg{width:21px;height:21px;fill:currentColor}.footer-b-preview .social-icon--instagram rect,.footer-b-preview .social-icon--instagram circle{fill:none;stroke:currentColor;stroke-width:1.8}.footer-b-preview .social-icon--instagram .social-icon-dot{fill:currentColor;stroke:none}.footer-b-preview .social-icon--youtube rect,.footer-b-preview .social-icon--flickr circle{fill:currentColor;stroke:none}.footer-b-preview .social-icon .social-icon-cutout{fill:var(--ink)}.footer-b-preview .link-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,0.14)}.footer-b-preview .link-card{min-width:0;display:grid;align-content:start;gap:12px;padding:26px;border:1px solid rgba(255,255,255,0.15);border-radius:22px;background:rgba(255,255,255,0.07)}.footer-b-preview .link-card h2{margin:0 0 7px;color:var(--footer-accent);font-size:0.75rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase}.footer-b-preview .hd-footer-menu{display:grid;gap:4px;margin:0;padding:0;list-style:none}.footer-b-preview .hd-footer-menu li{margin:0;padding:0}.footer-b-preview .link-card a{min-height:28px;display:flex;align-items:center;color:rgba(255,255,255,0.82);font-size:0.78rem;line-height:1.45;text-decoration:none}.footer-b-preview .link-card a:hover,.footer-b-preview .link-card a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:4px}.footer-b-preview .footer-b-bottom{display:flex;justify-content:space-between;gap:24px;margin:14px 12px 0;padding:22px 4px 10px;border-top:1px solid rgba(255,255,255,0.14);color:rgba(255,255,255,0.6);font-size:0.75rem}@media (max-width:900px){.footer-b-preview .identity-card{grid-template-columns:1fr}.footer-b-preview .link-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:620px){.footer-b-preview{padding-top:32px}.footer-b-content{width:calc(100% - 32px)}.footer-b-preview .identity-card{padding:0 16px 32px;text-align:center}.footer-b-preview .identity-copy>img,.footer-b-preview .identity-copy>p{margin-inline:auto;object-position:center}.footer-b-preview .social-card{padding:20px 12px}.footer-b-preview .social-icons{justify-content:center}.footer-b-preview .link-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.footer-b-preview .link-card{padding:20px 16px}.footer-b-preview .link-card a{min-height:44px}.footer-b-preview .footer-b-bottom{flex-direction:column;align-items:center;text-align:center}}

/* header-beta2.css */
.hb2-site-header {
  --hb2-ink: var(--hd-ink, #10232b);
  --hb2-secondary: var(--hd-secondary, #4c5a60);
  --hb2-paper: var(--hd-paper, #f2f4f4);
  --hb2-line: var(--hd-line, #dfe3e1);
  --hb2-pink: var(--hd-pink, #e53281);
  --hb2-white: var(--hd-white, #ffffff);
}

body.hb2-menu-open {
  overflow: hidden;
}

.hb2-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10002;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--hd-ink, #10232b);
  color: var(--hd-white, #ffffff);
  font-family: "Montserrat", system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(-160%);
}

.hb2-skip-link:focus {
  color: var(--hd-white, #ffffff);
  transform: translateY(0);
}

.hb2-site-header,
.hb2-site-header *,
.hb2-site-header *::before,
.hb2-site-header *::after {
  box-sizing: border-box;
}

.hb2-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(223, 227, 225, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: var(--hb2-ink);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body.admin-bar .hb2-site-header {
  top: 32px;
}

.hb2-header-inner {
  width: min(100% - 48px, 1180px);
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
}

.hb2-brand {
  width: 184px;
  display: inline-flex;
  flex: 0 0 auto;
}

.hb2-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.hb2-menu-toggle {
  min-width: 48px;
  min-height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid var(--hb2-line);
  border-radius: 999px;
  background: var(--hb2-white);
  box-shadow: none;
  color: var(--hb2-ink);
  font: 800 0.76rem/1 "Montserrat", system-ui, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.hb2-site-header button.hb2-menu-toggle,
.hb2-site-header button.hb2-menu-toggle:hover,
.hb2-site-header button.hb2-menu-toggle:focus,
.hb2-site-header button.hb2-menu-toggle:active {
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border: 1px solid var(--hb2-line) !important;
  border-radius: 999px !important;
  background: var(--hb2-white) !important;
  box-shadow: none !important;
  color: var(--hb2-ink) !important;
  font: 800 0.76rem/1 "Montserrat", system-ui, sans-serif !important;
  text-decoration: none !important;
  transform: none !important;
}

.hb2-navigation {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hb2-menu-level {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb2-menu-level--0 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hb2-menu-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.hb2-menu-level--0 > .hb2-menu-item {
  display: flex;
  align-items: center;
}

.hb2-site-header .hb2-menu-item > a,
.hb2-site-header .hb2-menu-item > a:visited,
.hb2-site-header .hb2-menu-item > a:hover,
.hb2-site-header .hb2-menu-item > a:focus,
.hb2-site-header .hb2-menu-item > a:active,
.hb2-site-header .hb2-menu-item > a[aria-current="page"] {
  color: var(--hb2-ink) !important;
  -webkit-text-fill-color: var(--hb2-ink);
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none;
}

.hb2-menu-level--0 > .hb2-menu-item > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px 0 11px;
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1.2;
}

.hb2-menu-level--0 > .hb2-menu-item > a[aria-current="page"],
.hb2-menu-level--0 > .hb2-current-ancestor > a {
  text-decoration: underline;
  text-decoration-color: var(--hb2-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.hb2-submenu-toggle {
  position: relative;
  width: 32px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hb2-secondary);
  cursor: pointer;
  font-size: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hb2-submenu-toggle::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  content: "";
  transform: translate(-50%, -68%) rotate(45deg);
}

.hb2-site-header button.hb2-submenu-toggle,
.hb2-site-header button.hb2-submenu-toggle:hover,
.hb2-site-header button.hb2-submenu-toggle:focus,
.hb2-site-header button.hb2-submenu-toggle:active {
  min-width: 32px !important;
  width: 32px !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hb2-secondary) !important;
  transform: none !important;
}

.hb2-menu-level--1,
.hb2-menu-level--2 {
  position: absolute;
  z-index: 20;
  width: min(330px, calc(100vw - 32px));
  display: none;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--hb2-line);
  border-radius: 18px;
  background: var(--hb2-white);
  box-shadow: 0 18px 48px rgba(16, 35, 43, 0.14);
}

.hb2-menu-level--1 {
  top: calc(100% - 2px);
  left: 0;
}

.hb2-menu-level--2 {
  top: -8px;
  left: calc(100% - 2px);
  z-index: 30;
  max-height: min(70vh, 560px);
  overflow: auto;
}

.hb2-menu-level--1 > .hb2-menu-item,
.hb2-menu-level--2 > .hb2-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border-radius: 11px;
}

.hb2-menu-level--1 .hb2-menu-item > a,
.hb2-menu-level--2 .hb2-menu-item > a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--hb2-ink);
  font-size: 0.8125rem;
  font-weight: 680;
  line-height: 1.25;
}

.hb2-menu-level--1 .hb2-submenu-toggle,
.hb2-menu-level--2 .hb2-submenu-toggle {
  width: 42px;
  height: 48px;
}

.hb2-menu-level--1 .hb2-submenu-toggle::before,
.hb2-menu-level--2 .hb2-submenu-toggle::before {
  transform: translate(-68%, -50%) rotate(-45deg);
}

.hb2-menu-item.hb2-expanded > .hb2-menu-level {
  display: block;
}

.hb2-menu-level--1 > .hb2-menu-item:hover,
.hb2-menu-level--2 > .hb2-menu-item:hover,
.hb2-menu-level--1 > .hb2-menu-item:focus-within,
.hb2-menu-level--2 > .hb2-menu-item:focus-within {
  background: var(--hb2-paper);
}

.hb2-search-link {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--hb2-line);
  border-radius: 50%;
  background: var(--hb2-white);
  color: var(--hb2-ink);
  text-decoration: none;
}

.hb2-search-link:visited {
  color: var(--hb2-ink);
}

.hb2-search-link svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hb2-search-label {
  display: none;
}

.hb2-site-header .hb2-navigation > a.hb2-plan-link,
.hb2-site-header .hb2-navigation > a.hb2-plan-link:visited,
.hb2-site-header .hb2-navigation > a.hb2-plan-link:hover,
.hb2-site-header .hb2-navigation > a.hb2-plan-link:focus {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--hb2-ink);
  color: var(--hb2-white);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.hb2-site-header a:focus-visible,
.hb2-site-header button:focus-visible {
  outline: 3px solid var(--hb2-pink);
  outline-offset: 3px;
}

@media (min-width: 981px) {
  .hb2-site-header,
  .hb2-header-inner,
  .hb2-navigation,
  .hb2-menu-level--0 {
    overflow: visible;
  }

  .hb2-menu-level--0 > .hb2-menu-item:hover > .hb2-menu-level--1,
  .hb2-menu-level--0 > .hb2-menu-item:focus-within > .hb2-menu-level--1,
  .hb2-menu-level--1 > .hb2-menu-item:hover > .hb2-menu-level--2,
  .hb2-menu-level--1 > .hb2-menu-item:focus-within > .hb2-menu-level--2,
  .hb2-menu-item.hb2-expanded > .hb2-menu-level {
    display: block;
  }

  .hb2-menu-level--0 > .hb2-menu-item:nth-child(n + 2) .hb2-menu-level--2 {
    right: calc(100% - 2px);
    left: auto;
  }
}

@media (max-width: 980px) {
  .hb2-site-header,
  body.admin-bar .hb2-site-header {
    position: relative;
    top: auto;
  }

  .hb2-header-inner {
    width: min(100% - 32px, 1180px);
  }

  .hb2-site-header button.hb2-menu-toggle {
    display: inline-flex !important;
  }

  .hb2-navigation {
    position: fixed !important;
    top: 78px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    height: calc(100dvh - 78px) !important;
    display: none !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    margin: 0 !important;
    padding: 20px 16px 40px !important;
    background: var(--hb2-ink) !important;
    color: var(--hb2-white) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }

  body.admin-bar .hb2-navigation {
    top: 110px !important;
    height: calc(100dvh - 110px) !important;
  }

  .hb2-navigation.hb2-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .hb2-menu-level--0 {
    display: grid;
    gap: 4px;
  }

  .hb2-menu-level--0 > .hb2-menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .hb2-site-header .hb2-navigation .hb2-menu-item > a,
  .hb2-site-header .hb2-navigation .hb2-menu-item > a:visited,
  .hb2-site-header .hb2-navigation .hb2-menu-item > a:hover,
  .hb2-site-header .hb2-navigation .hb2-menu-item > a:focus,
  .hb2-site-header .hb2-navigation .hb2-menu-item > a:active,
  .hb2-site-header .hb2-navigation .hb2-menu-item > a[aria-current="page"] {
    color: var(--hb2-white) !important;
    -webkit-text-fill-color: var(--hb2-white);
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
  }

  .hb2-menu-level--0 > .hb2-menu-item > a {
    min-height: 56px;
    padding: 10px 4px;
    font-size: 0.9rem;
  }

  .hb2-submenu-toggle,
  .hb2-menu-level--1 .hb2-submenu-toggle,
  .hb2-menu-level--2 .hb2-submenu-toggle {
    width: 48px;
    height: 56px;
    color: var(--hb2-white);
  }

  .hb2-site-header button.hb2-submenu-toggle,
  .hb2-site-header button.hb2-submenu-toggle:hover,
  .hb2-site-header button.hb2-submenu-toggle:focus,
  .hb2-site-header button.hb2-submenu-toggle:active,
  .hb2-site-header .hb2-menu-level--1 button.hb2-submenu-toggle,
  .hb2-site-header .hb2-menu-level--2 button.hb2-submenu-toggle {
    min-width: 48px !important;
    width: 48px !important;
    min-height: 56px !important;
    height: 56px !important;
    color: var(--hb2-white) !important;
  }

  .hb2-menu-level--1,
  .hb2-menu-level--2 {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 0 0 12px 16px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hb2-menu-level--1 > .hb2-menu-item,
  .hb2-menu-level--2 > .hb2-menu-item {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .hb2-site-header .hb2-menu-level--1 .hb2-menu-item > a,
  .hb2-site-header .hb2-menu-level--1 .hb2-menu-item > a:visited,
  .hb2-site-header .hb2-menu-level--1 .hb2-menu-item > a:hover,
  .hb2-site-header .hb2-menu-level--1 .hb2-menu-item > a:focus,
  .hb2-site-header .hb2-menu-level--1 .hb2-menu-item > a:active,
  .hb2-site-header .hb2-menu-level--1 .hb2-menu-item > a[aria-current="page"],
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a:visited,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a:hover,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a:focus,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a:active,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a[aria-current="page"] {
    min-height: 48px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.86) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.86);
    font-size: 0.8rem;
  }

  .hb2-menu-level--2 {
    margin-left: 8px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a:visited,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a:hover,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a:focus,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a:active,
  .hb2-site-header .hb2-menu-level--2 .hb2-menu-item > a[aria-current="page"] {
    color: rgba(255, 255, 255, 0.72) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
  }

  .hb2-menu-level--1 .hb2-submenu-toggle::before,
  .hb2-menu-level--2 .hb2-submenu-toggle::before {
    transform: translate(-50%, -68%) rotate(45deg);
  }

  .hb2-menu-level--1 > .hb2-menu-item:hover,
  .hb2-menu-level--2 > .hb2-menu-item:hover,
  .hb2-menu-level--1 > .hb2-menu-item:focus-within,
  .hb2-menu-level--2 > .hb2-menu-item:focus-within {
    background: transparent;
  }

  .hb2-menu-level--1 > .hb2-menu-item.hb2-expanded,
  .hb2-menu-level--2 > .hb2-menu-item.hb2-expanded {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.065);
  }

  .hb2-search-link {
    width: 100%;
    min-height: 48px;
    height: auto;
    display: flex;
    justify-content: center;
    margin-top: 18px;
    border-radius: 999px;
    color: var(--hb2-ink);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .hb2-search-link svg {
    display: none;
  }

  .hb2-search-label {
    display: inline;
  }

  .hb2-site-header .hb2-navigation > a.hb2-plan-link,
  .hb2-site-header .hb2-navigation > a.hb2-plan-link:visited,
  .hb2-site-header .hb2-navigation > a.hb2-plan-link:hover,
  .hb2-site-header .hb2-navigation > a.hb2-plan-link:focus {
    width: 100%;
    margin-top: 8px;
    background: var(--hb2-white);
    color: var(--hb2-ink);
  }
}

@media (max-width: 782px) {
  body.admin-bar .hb2-navigation {
    top: 124px !important;
    height: calc(100dvh - 124px) !important;
  }
}

@media (max-width: 620px) {
  .hb2-header-inner {
    min-height: 70px;
  }

  .hb2-brand {
    width: 156px;
  }

  .hb2-navigation {
    top: 70px !important;
    height: calc(100dvh - 70px) !important;
  }

  body.admin-bar .hb2-navigation {
    top: 116px !important;
    height: calc(100dvh - 116px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb2-site-header *,
  .hb2-site-header *::before,
  .hb2-site-header *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* inicio.css */
:root { --accent-dark: #d7ae75; }

* { box-sizing: border-box; }

.home-v2 {
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
}

.home-v2 main { overflow: clip; }

.home-shell {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.home-v2 h1,
.home-v2 h2,
.home-v2 h3,
.home-v2 p { text-wrap: pretty; }

.home-v2 main h2 {
  margin: 6px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.home-v2 .microtitle {
  margin: 0;
  color: var(--pink-text);
  font-size: .75rem;
  font-weight: 820;
  letter-spacing: .11em;
  text-transform: uppercase;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 820;
  text-decoration: none;
}

.button-primary { background: var(--ink); color: #fff; }
.button-secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button-light { background: #fff; color: var(--ink); }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  grid-template-areas:
    "copy visual"
    "utilities utilities";
  gap: 14px;
  margin-top: 34px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #fff;
}

.hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 10px 0 0;
  font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-lead {
  max-width: 42ch;
  margin: 22px 0 0;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: .75rem;
}

.hero-visual {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  align-self: center;
  grid-area: visual;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 25px;
  background: #dfe3e1;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(to top, rgba(16,35,43,.58), transparent);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.hero-visual picture { display: block; width: 100%; height: 100%; }

.hero-visual figcaption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  color: rgba(255,255,255,.88);
  font-size: .75rem;
  font-weight: 750;
}

.hero-utilities {
  grid-area: utilities;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--paper);
}

.hero-utilities a {
  min-height: 104px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas: "number title" "number description";
  align-content: center;
  gap: 2px 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.hero-utilities a:last-child { border-right: 0; }
.hero-utilities span { grid-area: number; color: var(--secondary); font-size: .75rem; font-weight: 820; }
.hero-utilities strong { grid-area: title; font-size: .85rem; line-height: 1.3; }
.hero-utilities small { grid-area: description; color: var(--secondary); font-size: .75rem; line-height: 1.4; }

.home-intro {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, .9fr) minmax(0, 1.38fr);
  align-items: start;
  gap: 34px;
  margin-top: 48px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
}

.home-intro h2 { margin: 0; }
.home-intro > div { color: var(--secondary); font-size: .9rem; line-height: 1.7; }
.home-intro > div p { margin: 0; }
.home-intro > div p + p { margin-top: 14px; }

.home-axes { margin-top: 56px; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 22px;
}

.section-header > p {
  max-width: 46ch;
  margin: 0;
  color: var(--secondary);
  font-size: .85rem;
  line-height: 1.65;
}

.axis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.axis-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: #fff;
}

.axis-image {
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: #dfe3e1;
}

.axis-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.axis-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
}

.axis-number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #687570;
  font-size: 2.6rem;
  font-weight: 850;
  line-height: 1;
}

.axis-content h3 {
  max-width: 18ch;
  margin: 8px 0 16px;
  font-size: clamp(1.18rem, 1.55vw, 1.45rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.axis-content nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.axis-content nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}

.section-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 820;
  text-decoration: none;
  text-transform: uppercase;
}

.home-fair {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  grid-template-areas: "copy image" "links links";
  gap: 14px;
  margin-top: 56px;
  padding: 14px;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
}

.special-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px);
}

.home-fair .microtitle,
.home-observatory .microtitle { color: var(--gold); }

.special-copy h2 { color: #fff; }
.special-copy > p:not(.microtitle) { max-width: 50ch; margin: 20px 0 24px; color: rgba(255,255,255,.74); font-size: .9rem; line-height: 1.7; }
.special-copy .button { align-self: flex-start; }

.home-fair figure {
  min-height: 0;
  aspect-ratio: 16 / 9;
  align-self: center;
  grid-area: image;
  margin: 0;
  overflow: hidden;
  border-radius: 23px;
}

.home-fair figure img { width: 100%; height: 100%; display: block; object-fit: cover; }

.special-links {
  grid-area: links;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 21px;
  background: rgba(255,255,255,.07);
}

.special-links a {
  min-height: 86px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
}

.special-links a:last-child { border-right: 0; }
.special-links span { color: var(--gold); font-size: .75rem; font-weight: 820; }
.special-links strong { font-size: .8rem; line-height: 1.35; }

.first-visit {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 56px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 31px;
  background: #fff;
}

.first-visit figure {
  min-height: 0;
  aspect-ratio: 16 / 9;
  align-self: center;
  margin: 0;
  overflow: hidden;
  border-radius: 23px;
}

.first-visit figure img { width: 100%; height: 100%; display: block; object-fit: cover; }

.first-visit-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.first-visit-content > p:not(.microtitle) { margin: 18px 0; color: var(--secondary); font-size: .88rem; }

.first-visit-content nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.first-visit-content nav a {
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 760;
  text-decoration: none;
}

.first-visit-content nav a:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 12px; }
.first-visit-content nav a:nth-child(even) { padding-left: 12px; }
.first-visit-content nav span { color: var(--secondary); font-size: .75rem; }

.home-observatory {
  margin-top: 56px;
  padding: 52px 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  color: #fff;
}

.observatory-inner {
  width: min(100% - 48px, 1180px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 48px;
  margin-inline: auto;
}

.observatory-copy h2 { max-width: 14ch; color: #fff; }
.observatory-copy > p:not(.microtitle) { max-width: 48ch; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.7; }

.observatory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }

.text-link-dark {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .75rem;
  font-weight: 780;
  text-decoration: none;
}

.observatory-visual {
  min-height: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 26px;
  background: #0b1b22;
}

.observatory-visual::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to top, rgba(8,23,29,.9), transparent);
}

.observatory-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }

.data-bars {
  height: 90px;
  position: absolute;
  right: 28px;
  bottom: 52px;
  left: 28px;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 8px;
}

.data-bars i { flex: 1; display: block; border-radius: 6px 6px 0 0; background: rgba(255,255,255,.3); }
.data-bars i:nth-child(1) { height: 28%; }
.data-bars i:nth-child(2) { height: 48%; }
.data-bars i:nth-child(3) { height: 36%; }
.data-bars i:nth-child(4) { height: 72%; background: var(--gold); }
.data-bars i:nth-child(5) { height: 56%; }
.data-bars i:nth-child(6) { height: 86%; background: var(--gold); }

.observatory-visual figcaption {
  position: absolute;
  right: 28px;
  bottom: 20px;
  left: 28px;
  z-index: 2;
  color: rgba(255,255,255,.88);
  font-size: .75rem;
  font-weight: 780;
}

.home-after-dark { padding-top: 56px; }
.home-news .section-header { align-items: flex-end; }

.news-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.news-feature-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.news-feature-grid article > a {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.news-feature-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-feature-grid article > a > div {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}

.news-feature-grid p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--secondary);
  font-size: .75rem;
  line-height: 1.4;
}

.news-feature-grid h3 {
  margin: 8px 0 0;
  font-size: .78rem;
  line-height: 1.32;
  letter-spacing: -.02em;
}

.home-explore {
  margin: 56px 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
}

.home-explore nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.home-explore nav a {
  min-height: 126px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas: "number title" "number description";
  align-content: center;
  gap: 5px 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.home-explore nav span { grid-area: number; color: var(--secondary); font-size: .75rem; font-weight: 820; }
.home-explore nav strong { grid-area: title; font-size: .84rem; line-height: 1.3; }
.home-explore nav small { grid-area: description; color: var(--secondary); font-size: .75rem; line-height: 1.45; }

.home-v2 .footer-b-preview { --footer-accent: var(--gold); }

.home-v2 a:focus-visible,
.home-v2 button:focus-visible,
.home-v2 input:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

@media (hover: hover) {
  .home-v2 .axis-card,
  .home-v2 .news-feature-grid article,
  .home-v2 .home-explore nav a { transition: border-color .18s ease, transform .18s ease; }

  .home-v2 .axis-card:hover,
  .home-v2 .news-feature-grid article:hover,
  .home-v2 .home-explore nav a:hover { border-color: #c9d0cd; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2 *,
  .home-v2 *::before,
  .home-v2 *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 1000px) {
  .home-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "utilities";
  }

  .home-intro { grid-template-columns: 1fr 1fr; }
  .home-intro .microtitle { grid-column: 1 / -1; }
  .axis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-fair { grid-template-columns: 1fr; grid-template-areas: "copy" "image" "links"; }
  .observatory-inner { grid-template-columns: 1fr; }
  .news-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-explore nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-shell,
  .observatory-inner { width: calc(100% - 32px); }

  .home-hero {
    margin-top: 20px;
    padding: 10px;
    border-radius: 27px;
  }

  .hero-copy { padding: 28px 16px; }
  .hero-copy h1 { max-width: 11ch; font-size: clamp(2.35rem, 11vw, 2.75rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 0; aspect-ratio: 16 / 9; border-radius: 20px; }

  .hero-utilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-utilities a:nth-child(2) { border-right: 0; }
  .hero-utilities a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .home-intro { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; padding: 26px; }
  .section-header { display: block; }
  .section-header > p,
  .section-header > .section-link { margin-top: 14px; }
  .home-axes,
  .home-fair,
  .first-visit,
  .home-observatory,
  .home-after-dark,
  .home-explore { margin-top: 32px; }

  .axis-grid { grid-template-columns: 1fr; }
  .axis-card { grid-template-columns: 1fr; }
  .axis-image { min-height: 0; aspect-ratio: 16 / 9; }
  .axis-content { padding: 22px 18px; }
  .axis-number { top: 14px; right: 15px; font-size: 2.4rem; }
  .axis-content h3 { font-size: 1.35rem; }

  .home-fair { padding: 10px; border-radius: 27px; }
  .special-copy { padding: 28px 18px; }
  .home-fair figure { min-height: 0; aspect-ratio: 16 / 9; border-radius: 19px; }
  .special-links { grid-template-columns: 1fr; }
  .special-links a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .special-links a:last-child { border-bottom: 0; }

  .first-visit { grid-template-columns: 1fr; padding: 10px; border-radius: 27px; }
  .first-visit figure { min-height: 0; aspect-ratio: 16 / 9; border-radius: 19px; }
  .first-visit-content { padding: 24px 14px; }

  .home-observatory { padding: 38px 0; }
  .observatory-inner { gap: 28px; }
  .observatory-visual { min-height: 0; aspect-ratio: 16 / 9; }

  .news-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-feature-grid article > a > div { min-height: 150px; padding: 10px; }

  .home-explore { padding: 26px 16px; }
  .home-explore nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-explore nav a { min-height: 118px; padding: 14px; }
}

@media (max-width: 440px) {
  .axis-card { grid-template-columns: 1fr; }
  .axis-image { min-height: 0; aspect-ratio: 16 / 9; }
  .first-visit-content nav { grid-template-columns: 1fr; }
  .first-visit-content nav a,
  .first-visit-content nav a:nth-child(odd),
  .first-visit-content nav a:nth-child(even) { padding-inline: 0; border-right: 0; }
}

/* 3.3.0 — controles editoriales solicitados para Inicio. */
.home-news .home-news-meta {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:4px 8px;
}
.home-news .home-news-views {
  display:inline-flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
  color:var(--secondary);
  font-size:.7rem;
}
.first-visit-content nav a,
.first-visit-content nav a:nth-child(odd),
.first-visit-content nav a:nth-child(even) {
  padding-inline:12px;
}
.axis-grid > *, .special-links > *, .first-visit-content nav > *, .news-feature-grid > *, .home-explore nav > *, .hero-utilities > * {
  break-inside:avoid;
}

/* Beta4 3.3.2 — aire estructural antes de Footer B. El último bloque del Home
 * no debe tocar visualmente el footer; conserva la misma escala de 72 px usada
 * por las páginas interiores del sistema. */
.home-v2 .home-after-dark { padding-bottom: 72px; }
@media (max-width: 620px) {
  .home-v2 .home-after-dark { padding-bottom: 48px; }
}

/* visual-hardening.css */
/*
 * Huamantla Disfruta — capa de fidelidad Beta4.
 *
 * Esta hoja NO redefine el Sistema de Diseño. Su función es impedir que los
 * estilos genéricos de Hello/Elementor alteren las medidas ya cerradas en
 * Demo 2.0 y el Laboratorio Visual.
 */
body { overflow-x: hidden; background: var(--hd-paper, #f2f4f4); }

/*
 * Superficie global del documento. Demo 2.0 trabaja sobre Papel y las tarjetas
 * blancas flotan sobre esa superficie. Hello/Elementor pueden dejar el main
 * en blanco si no se declara aquí, por eso la base se fija una sola vez.
 */
body main#content,
body main.site-main,
body #content.site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--hd-paper, #f2f4f4);
}

/*
 * IMPORTANTE: no se neutraliza el padding de la raíz Elementor. Cada plantilla
 * HD ya define su aire superior/inferior y ese espaciado forma parte del diseño
 * aprobado. La versión anterior ponía --padding-bottom:0 y era la causa de que
 * algunas páginas terminaran pegadas al Footer B.
 */
body.elementor-page .elementor > .e-con,
body.elementor-page .elementor > .elementor-element.e-con {
  --gap: 0;
  gap: 0;
}

/* Guardia global: la última raíz de una página HD nunca termina pegada al footer.
 * Se usa padding solo como respaldo; las clases de cada plantilla pueden definir
 * un valor mayor mediante su propia hoja. */
body.elementor-page .elementor > .e-con:last-child,
body.elementor-page .elementor > .elementor-element.e-con:last-child {
  min-height: 1px;
}
/*
 * Inicio v2: el Demo cerrado usa exactamente 1180 px de ancho máximo y 24 px
 * laterales en escritorio (16 px en móvil). Elementor puede inyectar un ancho
 * propio en .e-con; estos selectores de raíz conservan la geometría aprobada.
 */
body.elementor-page .elementor > .e-con.home-shell,
body.elementor-page .elementor > .elementor-element.e-con.home-shell,
.home-v2 .home-shell {
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}
.home-v2 .observatory-inner {
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

/* En el hero claro, Elementor no debe convertir enlaces utilitarios o botones
 * neutrales en el color de acento global. */
.home-v2 .button-primary { color:#fff !important; }
.home-v2 .button-secondary,
.home-v2 .hero-utilities a { color:var(--ink) !important; }

/*
 * Regla cromática protegida: rosa en fondos claros; dorado en fondos oscuros.
 * Blanco para títulos y contenido principal sobre tinta.
 */
.home-v2 .home-fair,
.home-v2 .home-observatory,
.footer-b-preview,
.hd-data-participation,
.data-actions article:first-child {
  --pink: var(--gold);
  --pink-text: var(--gold);
  --pink-text-accessible: var(--gold);
}

.home-v2 .home-fair .microtitle,
.home-v2 .home-observatory .microtitle,
.home-v2 .home-fair .special-links span,
.footer-b-preview :is(.social-card > p, .link-card h2),
.hd-data-participation .hd-data-microtitle,
.data-actions article:first-child .hd-data-microtitle {
  color: var(--gold) !important;
}

.home-v2 .home-fair .special-copy h2,
.home-v2 .home-observatory :is(h2, h3),
.home-v2 .home-fair .special-links strong,
.hd-data-participation h2,
.data-actions article:first-child :is(h2, h3) {
  color: #fff !important;
}

.home-v2 .home-fair .special-copy > p:not(.microtitle),
.home-v2 .home-observatory p:not(.microtitle),
.hd-data-participation .hd-data-section-heading > p:last-child,
.data-actions article:first-child p:not(.hd-data-microtitle) {
  color: rgba(255,255,255,.74) !important;
}

/* El CTA claro de Feria nunca hereda el acento global de Elementor. */
.home-v2 .home-fair .button-light,
.home-v2 .home-fair a.button-light {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--ink) !important;
}
.home-v2 .home-fair .special-links a { color: #fff !important; }
.home-v2 .home-fair .special-links a:hover strong,
.home-v2 .home-fair .special-links a:focus-visible strong { color: var(--gold) !important; }

/* Los globals de Elementor no sustituyen la tipografía cerrada por componente. */
.home-v2 :is(h1,h2,h3),
.hd-cultural-page :is(h1,h2,h3),
.hd-catalog-page :is(h1,h2,h3),
.hd-imported-page :is(h1,h2,h3) {
  font-family: "Montserrat", system-ui, sans-serif !important;
}

/* Foco visible: rosa sobre superficies claras y oro sobre tinta. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--hd-pink) !important;
  outline-offset: 3px !important;
}
.footer-b-preview :where(a,button):focus-visible,
.home-v2 .home-fair :where(a,button):focus-visible,
.home-v2 .home-observatory :where(a,button):focus-visible,
.hd-data-participation :where(a,button):focus-visible,
.data-actions article:first-child :where(a,button):focus-visible {
  outline-color: var(--gold) !important;
}

/* Evita animaciones no esenciales cuando el sistema operativo las reduce. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 620px) {
  body.elementor-page .elementor > .e-con.home-shell,
  body.elementor-page .elementor > .elementor-element.e-con.home-shell,
  .home-v2 .home-shell,
  .home-v2 .observatory-inner {
    width: calc(100% - 32px) !important;
  }
}

/* Las plantillas especiales Feria/Boletos usan la clase histórica `page-shell`.
 * No se modifica su geometría; únicamente se garantiza el mismo cierre visual
 * antes de Footer B que usa el resto del sistema. */
body.elementor-page .elementor > .e-con.page-shell:last-child,
body.elementor-page .elementor > .elementor-element.e-con.page-shell:last-child {
  padding-bottom: 72px;
}
@media (max-width: 620px) {
  body.elementor-page .elementor > .e-con.page-shell:last-child,
  body.elementor-page .elementor > .elementor-element.e-con.page-shell:last-child {
    padding-bottom: 48px;
  }
}

/*
 * 3.4.4 — Geometría protegida de fichas culturales.
 * Elementor puede escribir variables de ancho en la raíz .e-con que terminan
 * ganando al width de cultural.css. Se fijan tanto las propiedades reales como
 * las variables que Elementor usa para calcular el contenedor. Esto mantiene
 * el mismo margen lateral de la Plantilla Museo Completa en Haciendas, Museos
 * y Templos y conserva aire suficiente antes del Footer B.
 */
body.elementor-page .elementor > .e-con.hd-cultural-page,
body.elementor-page .elementor > .elementor-element.e-con.hd-cultural-page,
body.elementor-page .elementor > .e-con.hd-catalog-page,
body.elementor-page .elementor > .elementor-element.e-con.hd-catalog-page,
body.elementor-page .elementor > .e-con.hd-imported-page,
body.elementor-page .elementor > .elementor-element.e-con.hd-imported-page {
  --width: min(calc(100% - 48px), 1180px) !important;
  --max-width: 1180px !important;
  --container-max-width: 1180px !important;
  width: min(calc(100% - 48px), 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 34px !important;
  padding-right: 0 !important;
  padding-bottom: 72px !important;
  padding-left: 0 !important;
}

/* Si Elementor anida accidentalmente el documento bajo un contenedor full width,
 * la ficha sigue centrada y no se pega a los bordes de la ventana. */
.elementor .hd-cultural-page,
.elementor .hd-catalog-page,
.elementor .hd-imported-page {
  box-sizing: border-box;
  margin-inline: auto !important;
}

@media (max-width: 620px) {
  body.elementor-page .elementor > .e-con.hd-cultural-page,
  body.elementor-page .elementor > .elementor-element.e-con.hd-cultural-page,
  body.elementor-page .elementor > .e-con.hd-catalog-page,
  body.elementor-page .elementor > .elementor-element.e-con.hd-catalog-page,
  body.elementor-page .elementor > .e-con.hd-imported-page,
  body.elementor-page .elementor > .elementor-element.e-con.hd-imported-page {
    --width: calc(100% - 32px) !important;
    width: calc(100% - 32px) !important;
    padding-top: 24px !important;
    padding-bottom: 48px !important;
  }
}


/*
 * 3.4.5 — Reparación geométrica por tipo de contenido, no por clase Elementor.
 * Algunas fichas antiguas fueron guardadas con una raíz distinta y podían perder
 * el margen aunque su contenido fuese correcto. WordPress sí conserva la clase
 * del post type en <body>, por eso esta guardia actúa incluso sobre documentos
 * Elementor heredados. También endurece el responsive para impedir desbordes.
 */
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
:is(main#content, main.site-main, #content.site-main)
.elementor[data-elementor-type="wp-post"] > .e-con:first-child,
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
:is(main#content, main.site-main, #content.site-main)
.elementor[data-elementor-type="wp-post"] > .elementor-element.e-con:first-child {
  --width: min(calc(100% - 48px), 1180px) !important;
  --max-width: 1180px !important;
  --container-max-width: 1180px !important;
  width: min(calc(100% - 48px), 1180px) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 34px !important;
  padding-right: 0 !important;
  padding-bottom: 72px !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

/* Ningún hijo de la ficha puede ensanchar la página por encima de su viewport. */
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
:is(main#content, main.site-main, #content.site-main) {
  min-width: 0;
  overflow-x: clip;
}
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
.elementor[data-elementor-type="wp-post"],
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
.elementor[data-elementor-type="wp-post"] :is(.e-con, .elementor-element, .elementor-widget, .hero-copy, .page-hero > *, .editorial-card > *, .location-section > *, .section-heading--row > *) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
.elementor[data-elementor-type="wp-post"] :is(img, video, iframe, svg) {
  max-width: 100%;
}
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
.elementor[data-elementor-type="wp-post"] :is(h1, h2, h3, p, li, a, strong, span) {
  overflow-wrap: anywhere;
}
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
.elementor[data-elementor-type="wp-post"] :is(.contact-actions a, .location-section > a, .hd-cta__button, .hd-map__button, .hd-gallery__more > summary) {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
.elementor[data-elementor-type="wp-post"] .hd-gallery__grid--horizontal {
  max-width: 100%;
  min-width: 0;
}
:is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
.elementor[data-elementor-type="wp-post"] .hd-gallery__more > summary {
  width: fit-content;
}

@media (max-width: 900px) {
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] :is(.page-hero, .editorial-card, .editorial-card--right, .catalog-hero) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .editorial-card--right figure {
    grid-row: 1;
    order: initial;
  }
}

@media (max-width: 620px) {
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  :is(main#content, main.site-main, #content.site-main)
  .elementor[data-elementor-type="wp-post"] > .e-con:first-child,
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  :is(main#content, main.site-main, #content.site-main)
  .elementor[data-elementor-type="wp-post"] > .elementor-element.e-con:first-child {
    --width: calc(100% - 32px) !important;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    padding-top: 24px !important;
    padding-bottom: 48px !important;
  }

  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .page-hero {
    gap: 22px !important;
    margin-top: 22px !important;
    padding: 22px 16px !important;
    border-radius: 22px !important;
  }
  /* 3.6.20: el H1 móvil ya no se bloquea con !important.
   * cultural.css aporta el fallback y Elementor puede modificar la instancia. */
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .hero-introduction {
    max-width: 100% !important;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .contact-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .contact-actions a {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .editorial-card {
    gap: 20px !important;
    padding: 18px 16px !important;
    border-radius: 22px !important;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .editorial-card figure {
    width: 100%;
    max-width: 100%;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .section-heading--row,
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .location-section {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .location-section {
    gap: 18px !important;
    padding: 22px 16px !important;
    border-radius: 22px !important;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .location-section > a {
    width: 100% !important;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] :is(.gallery-grid, .related-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .contact-actions {
    grid-template-columns: 1fr !important;
  }
  :is(body.single-hd_hacienda, body.single-hd_museo, body.single-hd_templo)
  .elementor[data-elementor-type="wp-post"] .related-grid {
    grid-template-columns: 1fr;
  }
}


/*
 * 3.4.7 — Guardia final de márgenes culturales.
 * La versión anterior dependía de la clase avanzada guardada por Elementor y
 * algunas fichas de Museos habían sido creadas antes de que esa clase se
 * guardara con la clave interna correcta (_css_classes). Aquí el ancho se fija
 * también sobre el main del CPT, que WordPress controla y no Elementor.
 */
body.hd-cultural-single :is(main#content, main.site-main, #content.site-main) {
  width: min(calc(100% - 48px), 1180px) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* El documento de Elementor ocupa el main ya centrado; no vuelve a sumar ancho. */
body.hd-cultural-single :is(main#content, main.site-main, #content.site-main)
.elementor[data-elementor-type="wp-post"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: 0 !important;
}

body.hd-cultural-single :is(main#content, main.site-main, #content.site-main)
.elementor[data-elementor-type="wp-post"] > :is(.e-con, .elementor-element.e-con):first-child {
  --width: 100% !important;
  --max-width: 100% !important;
  --container-max-width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: 0 !important;
  padding-top: 34px !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

/* Respaldo para fichas antiguas cuyo main no usa las clases estándar de Hello. */
body.hd-cultural-single .elementor[data-elementor-type="wp-post"] > .hd-cultural-page,
body.hd-cultural-single .elementor[data-elementor-type="wp-post"] > .e-con.hd-cultural-page,
body.hd-cultural-single .elementor[data-elementor-type="wp-post"] > .elementor-element.hd-cultural-page {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

@media (max-width: 620px) {
  body.hd-cultural-single :is(main#content, main.site-main, #content.site-main) {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
  }
  body.hd-cultural-single :is(main#content, main.site-main, #content.site-main)
  .elementor[data-elementor-type="wp-post"] > :is(.e-con, .elementor-element.e-con):first-child {
    padding-top: 24px !important;
    padding-bottom: 0 !important;
  }
}


/* 3.4.8 — Cierre estructural antes del Footer B.
 * El espacio vive en el documento Elementor, no en una clase interna de la
 * primera sección, para que ninguna página nieta cultural pueda perderlo. */
body.hd-cultural-single .elementor[data-elementor-type="wp-post"] {
  box-sizing:border-box !important;
  padding-bottom:72px !important;
}
body.hd-cultural-single .elementor[data-elementor-type="wp-post"] > :first-child {
  padding-bottom:0 !important;
}
@media (max-width:620px) {
  body.hd-cultural-single .elementor[data-elementor-type="wp-post"] {
    padding-bottom:48px !important;
  }
}
