/* Brand colors sampled from the brand manual (fuentes/manual-de-marca.pdf).
   Usage rules:
   - espiritualidad: primary (headings, UI, negative surfaces)
   - cultura / floricultura: accents and links (pass AA on white)
   - paz / cerros: large text (>= 24px) and UI only, never body text
   - naturaleza / maiz: backgrounds and decoration only, never text on white,
     and never under white text: use the -oscuro tokens for that */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/roboto-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/roboto-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette */
  --color-espiritualidad: #662483;
  --color-cultura: #be2e18;
  --color-floricultura: #b32986;
  --color-paz: #00a19a;
  --color-cerros: #957f68;
  --color-naturaleza: #95c232;
  --color-maiz: #fab600;
  /* Darker shades for white text on a band (white on the originals is ~2:1) */
  --color-naturaleza-oscuro: #587516;
  --color-maiz-oscuro: #9a6200;
  --color-integral-fin: #62385e;

  /* Yellow-section bands (gastronomia and donde-estamos heroes, gastronomia card bands).
     Pending client decision: white titles on yellow. White on #fab600 is 1.8:1 (fails even for
     large text), so the default keeps dark text. To switch to white titles on a deep gold, replace the
     two lines below with the commented pair (one-line change; body paragraphs on the band stay dark,
     see --hero-cuerpo). Alternative: #c08c00 is the brightest value on the brand hue that reaches
     3.0:1 with white (3.003), valid for large bold titles only. */
  --maiz-banda: var(--color-maiz);
  --maiz-banda-texto: var(--color-texto);
  /*
  --maiz-banda: #c08c00;
  --maiz-banda-texto: #ffffff;
  */

  /* "Integral" signature gradient, left to right */
  --gradiente-integral: linear-gradient(90deg, #00a19a, #95c232, #fab600, #be2e18, #b32986, #62385e);
  --banda-alto: 0.5rem;

  /* Semantic colors */
  --color-texto: #2a2130;
  --color-texto-suave: #5a4d63;
  --color-titulo: var(--color-espiritualidad);
  --color-enlace: var(--color-cultura);
  --color-enlace-visitado: var(--color-floricultura);
  --color-fondo: #ffffff;
  --color-superficie: #f7f2fa;
  --color-superficie-fuerte: #ebdff2;
  --color-borde: #d8cbe0;
  --color-borde-ui: #8d7a9a;
  --color-foco: var(--color-espiritualidad);
  --color-negativo: var(--color-espiritualidad);
  --color-sobre-negativo: #ffffff;
  --color-aviso: #fff1c2;

  /* Typography: one swappable family token */
  --font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --tamano-base: 1.125rem;      /* 18px on mobile */
  --interlinea: 1.6;
  --tamano-chico: 0.9375rem;
  --tamano-lead: 1.25rem;
  --tamano-h1: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  --tamano-h2: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --tamano-h3: 1.25rem;

  /* Spacing */
  --espacio-1: 0.5rem;
  --espacio-2: 1rem;
  --espacio-3: 1.5rem;
  --espacio-4: 2.5rem;
  --espacio-5: 4rem;
  --gutter: 1.25rem;

  /* Layout and shape */
  --ancho-texto: 40rem;
  --ancho-max: 72rem;
  --radio: 0.75rem;
  --radio-chico: 0.375rem;
  --objetivo-tactil: 2.75rem;   /* >= 44px */
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--tamano-base);
  line-height: var(--interlinea);
  color: var(--color-texto);
  background: var(--color-fondo);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-enlace); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:visited { color: var(--color-enlace-visitado); }
a:hover { text-decoration-thickness: 0.15em; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-foco);
  outline-offset: 3px;
  border-radius: 2px;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--color-titulo);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: var(--espacio-4) 0 var(--espacio-1);
  text-wrap: balance;
}
h1 { font-size: var(--tamano-h1); margin-top: var(--espacio-2); font-weight: 800; }
h2 { font-size: var(--tamano-h2); }
h3 { font-size: var(--tamano-h3); }
p, ul, ol { margin: 0 0 var(--espacio-2); }
strong { font-weight: 700; }

.contenedor { width: 100%; max-width: var(--ancho-max); margin-inline: auto; padding-inline: var(--gutter); }
.contenedor-texto { max-width: calc(var(--ancho-texto) + 2 * var(--gutter)); }

.saltar { position: absolute; left: -999px; top: 0; background: var(--color-negativo); color: var(--color-sobre-negativo); padding: var(--espacio-1) var(--espacio-2); z-index: 20; }
.saltar:focus { left: 0; }
.saltar:visited { color: var(--color-sobre-negativo); }

/* Signature band: the "integral" gradient */
.banda { display: block; height: var(--banda-alto); background: var(--gradiente-integral); }

@media (min-width: 48em) {
  :root { --tamano-base: 1.1875rem; --gutter: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Header ---------- */
.cabecera { position: relative; background: var(--color-fondo); border-bottom: 1px solid var(--color-borde); z-index: 10; }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: var(--espacio-2); padding-block: 0.625rem; }
.marca { display: block; flex: none; }
.marca img { width: 12rem; height: auto; } /* brand manual minimum: 5 cm wide */
.nav-lista { display: none; }

.menu { position: static; }
.menu > summary {
  display: inline-flex; align-items: center; gap: 0.625rem;
  min-height: var(--objetivo-tactil); padding: 0 1rem;
  background: var(--color-negativo); color: var(--color-sobre-negativo);
  border-radius: var(--radio); font-weight: 600; cursor: pointer;
  list-style: none; user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-icono, .menu-icono::before, .menu-icono::after {
  display: block; width: 1.125rem; height: 2px; background: currentColor; border-radius: 2px; content: "";
}
.menu-icono { position: relative; }
.menu-icono::before { position: absolute; top: -6px; }
.menu-icono::after { position: absolute; top: 6px; }
.menu[open] > summary .menu-icono { background: transparent; }
.menu[open] > summary .menu-icono::before { top: 0; transform: rotate(45deg); }
.menu[open] > summary .menu-icono::after { top: 0; transform: rotate(-45deg); }
.menu > summary:focus-visible { outline-color: var(--color-espiritualidad); outline-offset: 3px; }

.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  list-style: none; margin: 0; padding: var(--espacio-1) var(--gutter) var(--espacio-2);
  background: var(--color-fondo); border-bottom: 4px solid var(--color-espiritualidad);
  box-shadow: 0 14px 24px rgba(42, 33, 48, 0.18);
}
.menu-panel > li + li { border-top: 1px solid var(--color-borde); }
.menu-panel { max-height: calc(100dvh - 5rem); overflow-y: auto; }
.menu-panel a {
  display: flex; align-items: center; min-height: 3.25rem; padding: 0.5rem 0.25rem;
  color: var(--color-texto); font-weight: 500; text-decoration: none;
}
.menu-panel a:visited { color: var(--color-texto); }
.menu-panel a[aria-current="page"] { color: var(--color-espiritualidad); font-weight: 700; box-shadow: inset 0.3rem 0 0 var(--color-espiritualidad); padding-left: 0.9rem; }
.menu-grupo { padding-block: 0.5rem 0.25rem; }
.menu-grupo ul { list-style: none; margin: 0; padding: 0; }
.menu-titulo { margin: 0; padding: 0.5rem 0.25rem 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.menu-grupo a { min-height: 3rem; padding-left: 0.75rem; }
.menu-grupo a[aria-current="page"] { padding-left: 0.9rem; }
.menu-panel > .menu-destacado { border-top: 0; padding-top: 0.75rem; }
.menu-panel .menu-destacado a, .menu-panel .menu-destacado a:visited {
  justify-content: center; border-radius: 999px; background: var(--color-espiritualidad); color: #fff; font-weight: 700; padding: 0.5rem 1rem;
}
.menu-panel .menu-destacado a[aria-current="page"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-espiritualidad); padding-left: 1rem; }

/* Grouped nav: 5 top-level items (3 are no-JS <details name="nav-grupo"> dropdowns). Measured in headless Chrome:
   the one-line list is 634px wide (gaps 16px, 44px targets); with the 12rem logo and 1rem gutters it keeps >= 35px of slack
   from 56em (896px) up, and only ~19px at 55em (< 24px), so 56em is the lowest safe start; below it the Menú is used */
@media (min-width: 56em) {
  .menu { display: none; }
  .nav-lista { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
  .nav-lista a, .nav-grupo > summary {
    display: inline-flex; align-items: center; min-height: var(--objetivo-tactil); padding: 0 0.4rem; white-space: nowrap;
    color: var(--color-floricultura); font-size: 0.95rem; font-weight: 500; text-decoration: none;
    border-bottom: 3px solid transparent;
  }
  .nav-lista a:visited { color: var(--color-floricultura); }
  .nav-lista a:hover, .nav-grupo > summary:hover, .nav-grupo[open] > summary { color: var(--color-espiritualidad); border-bottom-color: var(--color-floricultura); }
  .nav-lista a[aria-current="page"], .nav-grupo-activo > summary { color: var(--color-floricultura); font-weight: 700; border-bottom-color: var(--color-floricultura); }
  .nav-lista a:focus-visible, .nav-grupo > summary:focus-visible { outline: 3px solid var(--color-foco); outline-offset: 2px; }
  .cabecera-fila { max-width: none; padding-inline: 1rem; gap: 1rem; }

  .nav-grupo { position: relative; }
  .nav-grupo > summary { cursor: pointer; list-style: none; user-select: none; }
  .nav-grupo > summary::-webkit-details-marker { display: none; }
  .nav-grupo > summary::after {
    content: ""; flex: none; width: 0.4em; height: 0.4em; margin-left: 0.5em;
    border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.12em) rotate(45deg); transition: transform 0.15s ease;
  }
  .nav-grupo[open] > summary::after { transform: translateY(0.1em) rotate(-135deg); }
  .nav-sub {
    position: absolute; z-index: 30; top: 100%; left: -0.5rem; min-width: 100%; width: max-content; max-width: 18rem;
    list-style: none; margin: 0; padding: 0.375rem 0;
    background: var(--color-fondo); border: 1px solid var(--color-borde); border-bottom: 4px solid var(--color-espiritualidad);
    border-radius: 0 0 var(--radio) var(--radio); box-shadow: 0 14px 24px rgba(42, 33, 48, 0.18);
  }
  .nav-sub a {
    display: flex; width: 100%; padding: 0 1rem; border-bottom: 0; border-left: 4px solid transparent;
    color: var(--color-texto); font-size: 0.95rem;
  }
  .nav-sub a:visited { color: var(--color-texto); }
  .nav-sub a:hover { background: var(--color-superficie); color: var(--color-espiritualidad); border-left-color: var(--color-floricultura); }
  .nav-sub a[aria-current="page"] { color: var(--color-floricultura); border-left-color: var(--color-floricultura); }

  .nav-destacado a, .nav-destacado a:visited {
    padding-inline: 1.1rem; border-radius: 999px; border-bottom: 0;
    background: var(--color-espiritualidad); color: #fff; font-weight: 700;
  }
  .nav-destacado a:hover { background: var(--color-integral-fin); color: #fff; }
  .nav-destacado a[aria-current="page"] { background: var(--color-integral-fin); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-espiritualidad); }
}
/* fine pointers also open the dropdown on hover (a closed <details> hides its content in a slot: make that visible too) */
@media (hover: hover) and (pointer: fine) {
  .nav-grupo:hover > ul { display: block; }
  .nav-grupo:hover::details-content { content-visibility: visible; }
}
@media (min-width: 100em) {
  .cabecera-fila { padding-inline: 2rem; gap: var(--espacio-2); }
  .nav-lista { gap: 1.5rem; }
}

/* ---------- Footer (negative style) ---------- */
.pie { margin-top: var(--espacio-5); background: var(--color-negativo); color: var(--color-sobre-negativo); }
.pie a, .pie a:visited { color: var(--color-sobre-negativo); }
.pie a:focus-visible { outline-color: #fff; }
.pie-grid { display: grid; gap: var(--espacio-4); padding-block: var(--espacio-4); }
.pie-marca img { width: 12rem; height: auto; }
.pie-titulo { font-weight: 700; font-size: var(--tamano-chico); letter-spacing: 0.02em; margin-bottom: 0.5rem; opacity: 0.85; }
.pie-contacto p { margin-bottom: 0.25rem; }
.pie-contacto a { display: inline-block; padding-block: 0.4rem; }
.sociales { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--espacio-3); }
.aliados { display: flex; flex-wrap: wrap; gap: var(--espacio-2); align-items: center; }
.aliado { display: block; background: #fff; border-radius: var(--radio); padding: 0.625rem 0.875rem; }
.aliado img { height: 3.25rem; width: auto; }
/* site map: same groups as the header nav, always visible; bottom padding leaves room for the WhatsApp float */
.pie-mapa { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--espacio-3) var(--espacio-2); padding-block: var(--espacio-3) 6rem; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.pie-mapa ul { list-style: none; margin: 0; padding: 0; }
.pie-mapa p { margin: 0; }
.pie-mapa .pie-titulo { margin-bottom: 0.25rem; }
.pie-mapa a { display: flex; align-items: center; min-height: 2.75rem; }
@media (min-width: 48em) {
  .pie-mapa { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 48em) {
  .pie-grid { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: start; }
}

/* ---------- Visual helpers ---------- */
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { font-size: var(--tamano-lead); line-height: 1.5; color: var(--color-texto-suave); max-width: var(--ancho-texto); }

/* ---------- Point of interest ---------- */
.hero { margin: 0; }
.hero img { background: var(--color-superficie-fuerte); }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48em) {
  .hero { max-width: var(--ancho-max); margin-inline: auto; padding-inline: var(--gutter); }
  .hero img { aspect-ratio: 2 / 1; object-position: center 35%; border-radius: 0 0 var(--radio) var(--radio); }
}

.punto-cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem var(--espacio-2); margin-top: var(--espacio-3); }
.punto-orden { display: inline-flex; align-items: center; gap: 0.625rem; margin: 0; font-weight: 600; color: var(--color-espiritualidad); }
.insignia {
  display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: 0.25rem;
  border-radius: 999px; background: var(--color-espiritualidad); color: #fff; font-weight: 800; font-size: 1.125rem;
}
.punto-todos { display: inline-flex; align-items: center; min-height: var(--objetivo-tactil); font-weight: 500; }
.circuito { display: flex; gap: 3px; margin-top: 0.25rem; }
.circuito span { flex: 1; height: 0.375rem; border-radius: 2px; background: var(--color-superficie-fuerte); }
.circuito .actual { background: var(--color-espiritualidad); }
.punto h1 { margin-top: var(--espacio-3); }

.resumen {
  font-size: var(--tamano-lead); line-height: 1.55; font-weight: 400; color: var(--color-texto);
  background: var(--color-superficie); padding: var(--espacio-3) var(--espacio-3) var(--espacio-3) calc(var(--espacio-3) + 0.5rem);
  border-radius: var(--radio); border-left: 0.5rem solid var(--color-espiritualidad);
}

.galeria {
  list-style: none; margin: var(--espacio-4) 0; padding: 0 var(--gutter);
  display: flex; gap: var(--espacio-2); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.galeria li { flex: 0 0 85%; max-width: 28rem; scroll-snap-align: start; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radio); }
.galeria-diagrama img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.galeria:focus-visible { outline: 3px solid var(--color-foco); outline-offset: -3px; }
@media (min-width: 48em) {
  .galeria { max-width: var(--ancho-max); margin-inline: auto; }
  .galeria li { flex: 1 0 16rem; max-width: 30rem; }
}
.compartido .galeria { padding-inline: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

.prosa > :last-child { margin-bottom: 0; }
.prosa { max-width: var(--ancho-texto); }
.poema { margin: var(--espacio-3) 0; padding: var(--espacio-1) var(--espacio-3); border-left: 0.3rem solid var(--color-floricultura); font-style: italic; }
.poema-titulo { font-weight: 700; font-style: normal; }

/* Accordions */
.seccion { border: 2px solid var(--color-borde); border-radius: var(--radio); margin: var(--espacio-2) 0; background: var(--color-fondo); }
.seccion[open] { border-color: var(--color-espiritualidad); }
.seccion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--espacio-2);
  cursor: pointer; padding: 0.875rem var(--espacio-2); min-height: 3.5rem;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--color-espiritualidad);
  list-style: none;
}
.seccion summary::-webkit-details-marker { display: none; }
.seccion summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.25rem;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.15s;
}
.seccion[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.seccion[open] > summary { background: var(--color-superficie); border-radius: calc(var(--radio) - 2px) calc(var(--radio) - 2px) 0 0; }
.seccion .prosa { padding: var(--espacio-2) var(--espacio-2) var(--espacio-3); }

.compartido { margin-top: var(--espacio-5); padding: var(--espacio-3) var(--espacio-2) var(--espacio-2); background: var(--color-superficie); border-radius: var(--radio); border-top: 0.5rem solid var(--color-cerros); }
.compartido > h2 { margin-top: 0; }

/* Circuit navigation */
.recorrido { display: grid; gap: var(--espacio-2); margin-top: var(--espacio-5); }
.recorrido-paso, .recorrido-paso:visited {
  display: flex; flex-direction: column; gap: 0.125rem; min-height: 4.5rem; padding: var(--espacio-2) var(--espacio-3);
  border: 2px solid var(--color-espiritualidad); border-radius: var(--radio); text-decoration: none; color: var(--color-espiritualidad);
}
.recorrido-siguiente, .recorrido-siguiente:visited { background: var(--color-espiritualidad); color: #fff; text-align: right; }
.recorrido-anterior { text-align: left; }
.recorrido-dir { font-size: var(--tamano-chico); font-weight: 500; opacity: 0.9; }
.recorrido-nombre { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.recorrido-paso:hover { box-shadow: 0 0 0 3px var(--color-superficie-fuerte); }
.recorrido-siguiente:focus-visible { outline-color: var(--color-espiritualidad); }
.recorrido-indice { display: flex; align-items: center; justify-content: center; min-height: var(--objetivo-tactil); font-weight: 600; }
@media (min-width: 40em) {
  .recorrido { grid-template-columns: 1fr 1fr; }
  .recorrido-indice { grid-column: 1 / -1; }
  .recorrido-siguiente:only-of-type { grid-column: 2; }
}

/* ---------- Points index ---------- */
.tarjetas { list-style: none; padding: 0; margin: var(--espacio-4) 0 0; display: grid; gap: var(--espacio-3); grid-template-columns: 1fr; }
.tarjeta { position: relative; display: flex; flex-direction: column; background: var(--color-fondo); border: 2px solid var(--color-borde); border-radius: var(--radio); overflow: hidden; }
.tarjeta:focus-within, .tarjeta:hover { border-color: var(--color-espiritualidad); }
.tarjeta-foto { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--color-superficie-fuerte); }
.tarjeta-num {
  position: absolute; top: 0.75rem; left: 0.75rem; display: grid; place-items: center;
  min-width: 2.75rem; height: 2.75rem; padding-inline: 0.25rem; border-radius: 999px;
  background: var(--color-espiritualidad); color: #fff; border: 2px solid #fff;
  font-weight: 800; font-size: 1.25rem; box-shadow: 0 2px 6px rgba(42, 33, 48, 0.35);
}
.tarjeta-cuerpo { padding: var(--espacio-2) var(--espacio-2) var(--espacio-3); }
.tarjeta-titulo { font-size: 1.25rem; margin: 0 0 0.375rem; }
.tarjeta-titulo a, .tarjeta-titulo a:visited { color: var(--color-espiritualidad); text-decoration: none; }
.tarjeta-titulo a::after { content: ""; position: absolute; inset: 0; }
.tarjeta-titulo a:focus-visible { outline-offset: -3px; }
.tarjeta:has(a:focus-visible) { outline: 3px solid var(--color-foco); outline-offset: 2px; }
.tarjeta-titulo a:focus-visible { outline: none; }
.tarjeta-resumen { margin: 0; font-size: var(--tamano-chico); line-height: 1.5; color: var(--color-texto-suave); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 40em) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75em) { .tarjetas { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Buttons (>= 44px touch targets) ---------- */
.boton, .boton:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--objetivo-tactil); padding: 0.5rem 1rem;
  border: 2px solid var(--color-espiritualidad); border-radius: var(--radio);
  background: var(--color-fondo); color: var(--color-espiritualidad);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
}
.boton:hover { background: var(--color-superficie); }
.boton-primario, .boton-primario:visited { background: var(--color-espiritualidad); color: #fff; }
.boton-primario:hover { background: var(--color-integral-fin); }
.boton-icono, .boton-icono:visited { width: var(--objetivo-tactil); padding: 0; }
.icono { flex: none; }

/* ---------- Shared page blocks ---------- */
.pagina h1 { margin-top: var(--espacio-3); }
.bloque { margin-top: var(--espacio-4); }
.bloque > h2 { margin-top: 0; }
.prosa img { width: 100%; border-radius: var(--radio); margin: var(--espacio-2) 0; background: var(--color-superficie-fuerte); }
.prosa blockquote { margin: var(--espacio-3) 0; padding: var(--espacio-1) var(--espacio-3); border-left: 0.3rem solid var(--color-floricultura); background: var(--color-superficie); border-radius: 0 var(--radio) var(--radio) 0; }
.prosa blockquote p { margin: 0.5rem 0; }
.prosa ul, .prosa ol { padding-left: 1.4rem; }
.prosa li { margin-bottom: 0.25rem; }
.prosa-intro { margin-top: var(--espacio-2); }
.etiqueta-edicion {
  display: inline-block; margin: var(--espacio-3) 0 0; padding: 0.25rem 0.875rem; border-radius: 999px;
  background: var(--color-maiz); color: var(--color-texto); font-weight: 700; font-size: var(--tamano-chico);
}
.etiqueta-edicion + h1 { margin-top: var(--espacio-1); }

.video { position: relative; aspect-ratio: 16 / 9; margin: var(--espacio-3) 0 0; border-radius: var(--radio); overflow: hidden; background: var(--color-texto); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-enlace { margin-top: 0.25rem; }
.video-enlace a { display: inline-flex; align-items: center; min-height: var(--objetivo-tactil); }

.mapa { aspect-ratio: 4 / 3; border: 2px solid var(--color-borde); border-radius: var(--radio); overflow: hidden; background: var(--color-superficie-fuerte); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 48em) { .mapa { aspect-ratio: 16 / 10; } }
.mapa-accion { margin-top: var(--espacio-2); }

.bloque-contacto, .seguinos {
  margin-top: var(--espacio-4); padding: calc(var(--espacio-3) + var(--banda-alto)) var(--espacio-3) var(--espacio-3);
  background: var(--gradiente-integral) top / 100% var(--banda-alto) no-repeat, var(--color-superficie);
  border-radius: var(--radio);
}
.bloque-contacto > h2, .seguinos > h2 { margin-top: 0; }
.bloque-contacto > p:last-of-type, .seguinos > p { max-width: var(--ancho-texto); }

/* ---------- Action rows ---------- */
.acciones-fila { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--espacio-2); }
.acciones-fila .boton { flex: 0 1 auto; }

/* ---------- Listings ---------- */
.listado { margin-top: var(--espacio-4); }
.listado-titulo { margin-top: var(--espacio-5); }
.tipos ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 var(--espacio-2); }
.tipos a, .tipos a:visited {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--objetivo-tactil); padding: 0 0.875rem;
  border: 2px solid var(--color-espiritualidad); border-radius: 999px; color: var(--color-espiritualidad);
  font-weight: 600; font-size: 1rem; text-decoration: none; background: var(--color-fondo);
}
.tipos a:hover { background: var(--color-superficie); }
.tipos-n { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: 0.25rem; border-radius: 999px; background: var(--color-espiritualidad); color: #fff; font-size: 0.8125rem; font-weight: 700; }
.grupo-cabecera { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--espacio-2); margin-top: var(--espacio-4); }
.grupo-cabecera h2 { margin: 0 0 var(--espacio-1); }
.grupo-volver { display: inline-flex; align-items: center; min-height: var(--objetivo-tactil); font-size: var(--tamano-chico); font-weight: 500; }
.grupo { scroll-margin-top: 1rem; }
.fichas { list-style: none; padding: 0; margin: var(--espacio-2) 0 0; display: grid; gap: var(--espacio-3); grid-template-columns: 1fr; }
.ficha { display: flex; flex-direction: column; background: var(--color-fondo); border: 2px solid var(--color-borde); border-radius: var(--radio); overflow: hidden; }
.ficha-foto img:not(.sello) { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--color-superficie-fuerte); }
.ficha-cuerpo { display: flex; flex-direction: column; flex: 1; padding: var(--espacio-2) var(--espacio-2) var(--espacio-3); }
.ficha-cabecera { margin-bottom: 0.5rem; }
.ficha-nombre { font-size: 1.3125rem; margin: 0; color: var(--color-espiritualidad); }
.ficha-categoria { display: inline-block; margin: 0.5rem 0 0; padding: 0.125rem 0.75rem; border-radius: 999px; background: var(--color-superficie-fuerte); color: var(--color-espiritualidad); font-size: var(--tamano-chico); font-weight: 600; }
.ficha-texto, .ficha-dato { font-size: 1rem; line-height: 1.55; margin-bottom: 0.625rem; }
.ficha-dato strong { color: var(--color-espiritualidad); }
.ficha-detalle { margin: var(--espacio-1) 0 0; }
.ficha .acciones { margin-top: auto; padding-top: var(--espacio-1); }
.ficha .acciones-fila:first-child { margin-top: 0.5rem; }
.acciones-nombre { flex: 1 0 100%; margin: 0; font-weight: 600; font-size: 1rem; color: var(--color-texto-suave); }
.acciones .acciones-fila:not(.acciones-secundarias) .boton { flex: 1 1 8rem; }
.acciones-secundarias .boton { padding-inline: 0.75rem; font-size: 0.9375rem; }
.acciones-secundarias .boton-icono { padding: 0; }
.ficha-compacta { border-left: 0.5rem solid var(--color-espiritualidad); }
.ficha-compacta .ficha-cuerpo { padding-block: var(--espacio-2); }
.ficha-compacta .ficha-nombre { font-size: 1.1875rem; }
@media (min-width: 40em) { .fichas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75em) { .fichas { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Section themes (P7) ----------
   Each menu page wrapper carries .tema-<hero_color>; everything below reads only these four tokens:
   --sec        section color: bands, top borders, buttons (never body text)
   --sec-texto  title text ON --sec bands, >= 3:1 (white, except the yellow band: see --maiz-banda-texto in tokens.css)
   --sec-boton-texto  small label text ON --sec (buttons), >= 4.5:1: white, dark on yellow even if the band title turns white
   --sec-acento section color used AS TEXT or icon on white/tint (>= 4.5:1)
   --sec-tinte  light tint for panels and card bodies; body text on it is --color-texto (>= 4.5:1) */
.tema-cultura { --sec: var(--color-cultura); --sec-texto: #ffffff; --sec-boton-texto: #ffffff; --sec-acento: var(--color-cultura); --sec-tinte: #fbeeeb; }
.tema-maiz { --sec: var(--maiz-banda); --sec-texto: var(--maiz-banda-texto); --sec-boton-texto: var(--color-texto); --sec-acento: var(--color-maiz-oscuro); --sec-tinte: #fdf3d6; }
.tema-floricultura { --sec: var(--color-floricultura); --sec-texto: #ffffff; --sec-boton-texto: #ffffff; --sec-acento: var(--color-floricultura); --sec-tinte: #f5e8f3; }
.tema-espiritualidad { --sec: var(--color-espiritualidad); --sec-texto: #ffffff; --sec-boton-texto: #ffffff; --sec-acento: var(--color-espiritualidad); --sec-tinte: #f3ebf7; }
.tema-naturaleza-oscuro { --sec: var(--color-naturaleza-oscuro); --sec-texto: #ffffff; --sec-boton-texto: #ffffff; --sec-acento: var(--color-naturaleza-oscuro); --sec-tinte: #eef4dc; }

[class*="tema-"] .bloque > h2, [class*="tema-"] .listado-titulo, [class*="tema-"] .ficha-nombre { color: var(--sec-acento); }
[class*="tema-"] .prosa blockquote { border-left-color: var(--sec); background: var(--sec-tinte); }
[class*="tema-"] a:focus-visible, [class*="tema-"] summary:focus-visible { outline-color: var(--sec-acento); }

/* buttons: outlined in the section color, primary filled; hover swaps to the tint (keeps contrast) */
[class*="tema-"] .boton, [class*="tema-"] .boton:visited { border-color: var(--sec-acento); color: var(--sec-acento); background: #fff; }
[class*="tema-"] .boton:hover { background: var(--sec-tinte); }
[class*="tema-"] .boton-primario, [class*="tema-"] .boton-primario:visited { border-color: var(--sec); background: var(--sec); color: var(--sec-boton-texto); }
[class*="tema-"] .boton-primario:hover { background: var(--sec-tinte); color: var(--sec-acento); border-color: var(--sec-acento); }

/* grouped navigation and headings (hospedajes) */
[class*="tema-"] .tipos a, [class*="tema-"] .tipos a:visited { border-color: var(--sec-acento); color: var(--sec-acento); }
[class*="tema-"] .tipos a:hover { background: var(--sec-tinte); }
[class*="tema-"] .tipos-n { background: var(--sec); color: var(--sec-boton-texto); }
[class*="tema-"] .grupo-cabecera { padding-bottom: 0.25rem; border-bottom: 3px solid var(--sec); }
[class*="tema-"] .grupo-cabecera h2 { color: var(--sec-acento); }
[class*="tema-"] .grupo-volver, [class*="tema-"] .grupo-volver:visited { color: var(--sec-acento); }

/* generic card: top border in the section color */
[class*="tema-"] .ficha { border: 1px solid var(--color-borde); border-top: 0.375rem solid var(--sec); }
[class*="tema-"] .ficha-compacta { border-left: 1px solid var(--color-borde); }
[class*="tema-"] .ficha-categoria { background: var(--sec-tinte); color: var(--sec-acento); }
[class*="tema-"] .ficha-dato strong { color: var(--sec-acento); }
.ficha-contacto { background: var(--sec-tinte); }
.ficha-contacto .acciones-nombre { color: var(--color-texto); }

/* gastronomia: horizontal card, section-color band with the name, tinted body, brand rule at the bottom */
.ficha-gastro, [class*="tema-"] .ficha-gastro { border: 1px solid color-mix(in srgb, var(--sec) 40%, #fff); background: var(--sec-tinte); }
.ficha-gastro .ficha-foto { position: relative; }
.ficha-gastro .ficha-foto img:not(.sello) { aspect-ratio: 16 / 10; }
.ficha-lado { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ficha-banda { padding: 0.625rem var(--espacio-2); background: var(--sec); }
.ficha-banda .ficha-nombre, [class*="tema-"] .ficha-banda .ficha-nombre { margin: 0; color: var(--sec-texto); font-size: 1.25rem; }
.ficha-gastro .ficha-cuerpo { padding-bottom: var(--espacio-2); }
.ficha-gastro .ficha-categoria, [class*="tema-"] .ficha-gastro .ficha-categoria { background: #fff; color: var(--sec-acento); margin: 0 0 var(--espacio-1); }
.ficha-gastro .acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: var(--espacio-1); }
.ficha-gastro .acciones-fila { display: contents; }
.ficha-gastro .acciones .acciones-fila:not(.acciones-secundarias) .boton { flex: 0 1 auto; }
.regla-segmentada.regla-ficha { max-width: none; margin: 0; height: 0.3125rem; }
.sello { position: absolute; right: 0.5rem; bottom: 0.5rem; width: 4.5rem; height: auto; aspect-ratio: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
.fichas.fichas-contacto { grid-template-columns: 1fr; }
@media (min-width: 40em) { .fichas.fichas-contacto { grid-template-columns: repeat(2, 1fr); } }
.fichas.fichas-gastro { grid-template-columns: 1fr; }
@media (min-width: 64em) { .fichas.fichas-gastro { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48em) {
  .ficha-gastro { flex-direction: row; }
  .ficha-gastro .ficha-foto { flex: 0 0 40%; min-height: 14rem; }
  .ficha-gastro .ficha-foto img:not(.sello) { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* segmented brand rule under a band */
.regla-segmentada.regla-banda { max-width: none; margin: 0; height: 0.375rem; }

/* turismo rural: experience = text + photo, "¿Qué haremos?" band, tinted panel */
.fichas.fichas-experiencia { grid-template-columns: 1fr; gap: var(--espacio-4); }
.experiencia { background: #fff; border-radius: 0 0 var(--radio) var(--radio); }
.experiencia-cabeza { display: flex; flex-direction: column-reverse; }
.experiencia-texto { padding: var(--espacio-3) var(--espacio-2) var(--espacio-2); }
.experiencia .ficha-texto { font-size: 1.125rem; line-height: 1.65; }
.experiencia .ficha-nombre { font-size: var(--tamano-h2); line-height: 1.15; margin: 0 0 var(--espacio-2); }
.experiencia .ficha-foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.experiencia-banda { margin: 0; padding: 0.625rem var(--espacio-2); background: var(--sec); color: var(--sec-texto); font-size: 1.25rem; letter-spacing: 0; }
.experiencia-panel { padding: var(--espacio-2) var(--espacio-2) var(--espacio-3); background: var(--sec-tinte); }
.experiencia-panel .prosa { max-width: none; }
.experiencia-panel .prosa > :last-child { margin-bottom: 0; }
.experiencia-reservas { margin: var(--espacio-3) 0 0; font-weight: 700; color: var(--sec-acento); font-size: 1.125rem; }
.experiencia-panel .acciones { padding-top: 0; }
.experiencia-panel .acciones-fila:first-child { margin-top: 0.5rem; }
@media (min-width: 48em) {
  .experiencia-cabeza { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .experiencia-cabeza.sin-foto { grid-template-columns: 1fr; }
  .experiencia-texto { padding: var(--espacio-3) var(--espacio-3) var(--espacio-3) var(--espacio-3); }
  .experiencia .ficha-foto { position: relative; min-height: 20rem; }
  .experiencia .ficha-foto img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .experiencia-banda, .experiencia-panel { padding-inline: var(--espacio-3); }
}

/* guias: circuit card (photo, title, description) + "Circuito" band + tinted route panel */
.trayecto { margin-top: var(--espacio-4); background: #fff; border: 1px solid var(--color-borde); border-top: 0.375rem solid var(--sec); border-radius: 0 0 var(--radio) var(--radio); overflow: hidden; }
.trayecto:first-child { margin-top: var(--espacio-3); }
.trayecto-cabeza { display: flex; flex-direction: column-reverse; }
.trayecto-texto { padding: var(--espacio-3) var(--espacio-2) var(--espacio-2); }
.trayecto-titulo { margin: 0 0 var(--espacio-2); color: var(--sec-acento); font-size: var(--tamano-h2); }
.trayecto-texto > :last-child { margin-bottom: 0; }
.trayecto-foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; border-radius: 0; background: var(--color-superficie-fuerte); }
.trayecto-banda { margin: 0; padding: 0.625rem var(--espacio-2); background: var(--sec); color: var(--sec-texto); font-size: 1.25rem; letter-spacing: 0; }
.trayecto-panel { padding: var(--espacio-2) var(--espacio-2) var(--espacio-3); background: var(--sec-tinte); }
.trayecto-panel { max-width: none; }
.trayecto-panel > :last-child { margin-bottom: 0; }
.trayecto-panel p, .experiencia-panel .prosa p { max-width: 72ch; }
@media (min-width: 48em) {
  .trayecto-cabeza { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trayecto-cabeza.sin-foto { grid-template-columns: 1fr; }
  .trayecto-texto { padding: var(--espacio-3); }
  .trayecto-foto { position: relative; min-height: 18rem; }
  .trayecto-foto img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .trayecto-banda, .trayecto-panel { padding-inline: var(--espacio-3); }
}

/* data chips: Duración / Distancia / Dificultad / Exigencia, CSS-mask icons (labels are always text) */
.chips, .prosa .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: var(--espacio-2) 0; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.375rem 0.875rem 0.375rem 0.625rem; border: 1.5px solid var(--sec); border-radius: 999px; background: #fff; color: var(--color-texto); font-size: 1rem; line-height: 1.3; }
.chip-etq { font-weight: 700; color: var(--sec-acento); }
.chip-etq::after { content: ":"; }
.chip-icono { flex: none; width: 1.25rem; height: 1.25rem; background: var(--sec-acento); -webkit-mask: var(--chip-icono) center / contain no-repeat; mask: var(--chip-icono) center / contain no-repeat; }
.chip-duracion { --chip-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='M12 7v5.5l3.5 2' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.chip-distancia { --chip-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6' cy='18' r='2.5' fill='black'/%3E%3Ccircle cx='18' cy='6' r='2.5' fill='black'/%3E%3Cpath d='M8.5 18H16a3.5 3.5 0 0 0 0-7H8a3.5 3.5 0 0 1 0-7h7.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.chip-dificultad { --chip-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.5 20 9 6.5l4 7 2.5-3.5L22.5 20Z' fill='black'/%3E%3C/svg%3E"); }
.chip-exigencia { --chip-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 2 5 13.5h6L10 22l9-12h-6.5Z' fill='black'/%3E%3C/svg%3E"); }

/* ---------- Home ---------- */
.inicio-intro { padding-block: var(--espacio-4) var(--espacio-3); }
/* Invitation phrase: ~60px on desktop, magenta, medium weight (as on the old site) */
.pagina .inicio-titulo {
  max-width: 70rem; margin: 0 auto; text-align: center; text-wrap: balance;
  font-size: clamp(1.75rem, 1rem + 3.1vw, 3.75rem); line-height: 1.25; font-weight: 500; color: var(--color-floricultura);
}

/* Brand rule: six equal segments (reusable) */
.regla-segmentada { display: flex; height: 0.375rem; max-width: var(--ancho-max); margin: var(--espacio-3) auto 0; }
.regla-segmentada span { flex: 1; }
.regla-naturaleza { background: var(--color-naturaleza); }
.regla-paz { background: var(--color-paz); }
.regla-maiz { background: var(--color-maiz); }
.regla-floricultura { background: var(--color-floricultura); }
.regla-espiritualidad { background: var(--color-espiritualidad); }
.regla-cultura { background: var(--color-cultura); }

/* Full-width hero carousel: CSS scroll-snap works without JS; carrusel.js adds the controls */
.carrusel { position: relative; background: var(--color-superficie-fuerte); }
.carrusel-pista {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carrusel-pista::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .carrusel-pista { scroll-behavior: smooth; } }
.carrusel-pista:focus-visible { outline: 4px solid var(--color-foco); outline-offset: -4px; }
.carrusel-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.carrusel-slide img { width: 100%; height: 100%; object-fit: cover; background: var(--color-superficie-fuerte); }
@media (min-width: 48em) {
  .carrusel-slide { aspect-ratio: auto; height: clamp(26rem, 47vw, 42.5rem); }
}
.carrusel-flecha, .carrusel-puntos { display: none; }
.carrusel.listo .carrusel-flecha { display: block; }
.carrusel.listo .carrusel-puntos { display: flex; }
.carrusel button { font: inherit; cursor: pointer; border: 0; padding: 0; }
.carrusel button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--color-espiritualidad); }
.carrusel-flecha {
  position: absolute; top: 50%; width: 3rem; height: 3rem; margin-top: -1.5rem; border-radius: 50%;
  background: rgba(42, 33, 48, 0.62); color: #fff;
}
.carrusel-flecha:hover { background: rgba(42, 33, 48, 0.85); }
.carrusel-flecha::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 0.8rem; height: 0.8rem;
  border-top: 3px solid currentColor; border-left: 3px solid currentColor;
}
.carrusel-ant { left: 0.75rem; }
.carrusel-ant::before { transform: translate(-30%, -50%) rotate(-45deg); }
.carrusel-sig { right: 0.75rem; }
.carrusel-sig::before { transform: translate(-70%, -50%) rotate(135deg); }
.carrusel-puntos {
  position: absolute; left: 50%; bottom: 0.75rem; transform: translateX(-50%); align-items: center; gap: 0;
  padding: 0.125rem 0.5rem; border-radius: 999px; background: rgba(42, 33, 48, 0.62); max-width: calc(100% - 1.5rem);
}
.carrusel-punto { position: relative; width: 1.5rem; height: 1.75rem; background: none; }
.carrusel-punto::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 0.625rem; height: 0.625rem; margin: -0.3125rem 0 0 -0.3125rem;
  border-radius: 50%; background: rgba(255, 255, 255, 0.6);
}
.carrusel-punto[aria-current] ::before, .carrusel-punto[aria-current]::before { background: #fff; transform: scale(1.3); }
.carrusel-pausa { position: relative; width: 1.75rem; height: 1.75rem; margin-left: 0.25rem; background: none; color: #fff; }
.carrusel-pausa::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 0.75rem; height: 0.8rem; transform: translate(-50%, -50%);
  border-left: 0.25rem solid currentColor; border-right: 0.25rem solid currentColor;
}
.carrusel-pausa.en-pausa::before { width: 0; border: solid transparent; border-width: 0.45rem 0 0.45rem 0.75rem; border-left-color: currentColor; transform: translate(-35%, -50%); }

/* Section tiles: big photos with a full-width brand-color band (masonry with CSS grid only) */
.tiles-seccion { --hueco: 1rem; max-width: 106rem; margin-inline: auto; padding-inline: var(--hueco); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.tile { display: block; height: 15rem; padding-bottom: var(--hueco); }
.tile-enlace {
  --banda: var(--color-espiritualidad);
  position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radio-chico);
  background: var(--color-superficie-fuerte); text-decoration: none;
}
.tile-enlace img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile-enlace:hover img { transform: scale(1.04); }
.tile-enlace:focus-visible { outline: 4px solid var(--color-foco); outline-offset: 3px; }
.tile-banda {
  position: absolute; left: 0; right: 0; display: grid; place-items: center; min-height: 3.75rem; padding: 0.5rem 0.75rem;
  background: var(--banda); color: #fff; text-align: center;
}
.tile-arriba .tile-banda { top: 16%; }
.tile-abajo .tile-banda { bottom: 14%; }
.tile-titulo { font-size: 2.125rem; font-weight: 300; line-height: 1.15; text-wrap: balance; }
.tile-color-espiritualidad { --banda: var(--color-espiritualidad); }
.tile-color-cultura { --banda: var(--color-cultura); }
.tile-color-floricultura { --banda: var(--color-floricultura); }
.tile-color-paz { --banda: var(--color-paz); }
.tile-color-cerros { --banda: var(--color-cerros); }
.tile-color-naturaleza-oscuro { --banda: var(--color-naturaleza-oscuro); }
.tile-color-maiz-oscuro { --banda: var(--color-maiz-oscuro); }
@media (min-width: 48em) {
  .tiles-seccion { --hueco: 1.25rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); column-gap: var(--hueco); grid-auto-rows: 10px; grid-auto-flow: dense; }
  .tile { height: auto; grid-row: span var(--filas, 56); }
  .tile:nth-child(odd) { grid-column: 1; }
  .tile:nth-child(even) { grid-column: 2; }
  .tile-enlace { border-radius: var(--radio); }
  .tile-banda { min-height: 5.5rem; padding-inline: 1rem; }
  .tile-titulo { font-size: clamp(2rem, 3.6vw, 3.5rem); }
}
@media (prefers-reduced-motion: reduce) { .tile-enlace:hover img { transform: none; } }
.cta-puntos {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--espacio-2); margin-top: var(--espacio-3);
  padding: var(--espacio-3); background: var(--color-superficie); border: 2px solid var(--color-espiritualidad); border-radius: var(--radio);
}
.cta-puntos-num { display: inline-grid; place-items: center; flex: none; width: 3.75rem; height: 3.75rem; border-radius: 999px; background: var(--color-espiritualidad); color: #fff; font-size: 1.75rem; font-weight: 800; }
.cta-puntos-enlace { grid-column: 1 / -1; }
.cta-puntos-titulo { margin: 0; font-weight: 700; font-size: 1.1875rem; color: var(--color-espiritualidad); line-height: 1.3; }
.cta-puntos-enlace p { margin: 0; }
.cta-puntos-enlace a, .cta-puntos-enlace a:visited {
  display: flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.5rem 1.25rem;
  background: var(--color-espiritualidad); color: #fff; border-radius: var(--radio); font-weight: 700; text-decoration: none; text-align: center;
}
.cta-puntos-enlace a:hover { background: var(--color-integral-fin); }
@media (min-width: 48em) {
  .cta-puntos { grid-template-columns: auto 1fr auto; }
  .cta-puntos-enlace { grid-column: auto; }
}

.premio { margin-top: var(--espacio-5); }
.premio > h2 { margin-top: 0; }
.premio h3 { font-size: 1.125rem; font-weight: 500; color: var(--color-texto-suave); margin-top: 0; }
.bloque + .bloque { padding-top: var(--espacio-4); border-top: 2px solid var(--color-borde); }
.bloque-mapa { border-top: 2px solid var(--color-borde); padding-top: var(--espacio-4); }
.prosa h3 { margin-top: var(--espacio-3); }
@media (min-width: 48em) { .pagina-listado .hero img { aspect-ratio: 2.8 / 1; } }

/* ---------- WhatsApp float (site-wide, pure CSS) ---------- */
/* Official WhatsApp teal (#128C7E): white on #25D366 is only 2:1, this gives 4.1:1 for the glyph */
.whatsapp-flotante {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #128c7e; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.whatsapp-flotante:visited { color: #fff; }
.whatsapp-flotante:hover { background: #0e6f64; }
.whatsapp-flotante:focus-visible { outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 6px var(--color-espiritualidad); }
@media (min-width: 48em) { .whatsapp-flotante { right: 1.5rem; bottom: 1.5rem; width: 3.75rem; height: 3.75rem; } }

/* ---------- Menu page heroes (old-site patterns) ----------
   hero_estilo (banda-dividida | banda | superpuesto), hero_color, hero_lado come from each page's front-matter/JSON.
   Mobile: photo first, then the colored band with the text; never text over a photo.
   Yellow bands use dark text (white on #fab600 is ~1.8:1); overlay boxes are >= 90% opaque. */
/* Yellow band: --maiz-banda tokens (tokens.css) decide the title color; body text stays dark so it never drops under 4.5:1 */
.hero-color-maiz { --hero-fondo: var(--maiz-banda); --hero-texto: var(--maiz-banda-texto); --hero-cuerpo: var(--color-texto); }
.hero-color-cultura { --hero-fondo: var(--color-cultura); --hero-texto: #ffffff; }
.hero-color-floricultura { --hero-fondo: var(--color-floricultura); --hero-texto: #ffffff; }
.hero-color-espiritualidad { --hero-fondo: var(--color-espiritualidad); --hero-texto: #ffffff; }
.hero-color-naturaleza-oscuro { --hero-fondo: var(--color-naturaleza-oscuro); --hero-texto: #ffffff; }

.hero-pagina { background: var(--hero-fondo); color: var(--hero-texto); }
.hero-foto { margin: 0; }
.hero-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-superficie-fuerte); }
.hero-texto { padding: var(--espacio-4) var(--gutter); }
.hero-caja { max-width: var(--ancho-max); margin-inline: auto; }
.hero-pagina .hero-caja h1 {
  margin: 0 0 var(--espacio-2); color: inherit; font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); font-weight: 700; line-height: 1.1;
}
.hero-pagina .etiqueta-edicion { margin: 0 0 var(--espacio-1); }
.hero-bajada { margin: 0; color: var(--hero-cuerpo, var(--hero-texto)); max-width: 40rem; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); font-weight: 300; line-height: 1.4; }
.hero-prosa { max-width: none; color: var(--hero-cuerpo, var(--hero-texto)); font-size: 1.125rem; font-weight: 400; line-height: 1.6; }
.hero-prosa p { margin-bottom: var(--espacio-2); }
.hero-prosa a, .hero-prosa a:visited { color: inherit; }
.hero-prosa blockquote {
  margin: 0 0 var(--espacio-2); padding: 0; background: none; border: 0; border-radius: 0;
  font-size: 1.25rem; font-weight: 300; font-style: italic; line-height: 1.5;
}
.hero-prosa blockquote p { margin: 0 0 0.5rem; }
.hero-prosa blockquote strong { font-style: normal; font-weight: 700; }
.hero-accion { margin: var(--espacio-3) 0 0; }
.hero-pagina .hero-boton, .hero-pagina .hero-boton:visited {
  min-height: 3.25rem; padding-inline: 1.75rem; border-color: var(--hero-cuerpo, var(--hero-texto)); background: var(--hero-cuerpo, var(--hero-texto)); color: var(--hero-fondo); font-size: 1.0625rem;
}
.hero-pagina .hero-boton:hover { background: var(--hero-texto); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hero-texto) 40%, transparent); }
.hero-pagina a:focus-visible { outline-color: var(--hero-texto); }

@media (min-width: 48em) {
  .hero-texto { padding-block: var(--espacio-5); }
  .hero-prosa { font-size: 1.25rem; }

  /* split band: photo on one half, text on the other, full-width color behind */
  .hero-banda-dividida {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem) minmax(0, 39rem) minmax(0, 1fr);
  }
  .hero-banda-dividida .hero-foto { position: relative; min-height: 30rem; grid-column: 2; grid-row: 1; }
  .hero-banda-dividida .hero-foto img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .hero-banda-dividida .hero-texto { grid-column: 3; grid-row: 1; display: flex; align-items: center; padding: var(--espacio-4) var(--espacio-4); }
  .hero-banda-dividida .hero-caja { max-width: none; margin: 0; }
  .hero-banda-dividida.hero-lado-derecha .hero-foto { grid-column: 3; }
  .hero-banda-dividida.hero-lado-derecha .hero-texto { grid-column: 2; padding-left: 0; }

  /* overlay: a >= 90% opaque color box over a full-width photo */
  .hero-superpuesto { --hero-caja-opacidad: 95%; display: grid; background: none; }
  .hero-superpuesto > * { grid-area: 1 / 1; }
  .hero-superpuesto .hero-foto { position: relative; min-height: clamp(30rem, 52vw, 46rem); }
  .hero-superpuesto .hero-foto img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .hero-superpuesto .hero-texto {
    align-self: center; z-index: 1; padding-block: var(--espacio-4);
    padding-inline: max(var(--gutter), calc((100% - var(--ancho-max)) / 2 + var(--gutter)));
  }
  .hero-superpuesto .hero-caja {
    max-width: 46rem; margin: 0; padding: var(--espacio-3) 2.5rem var(--espacio-4);
    background: var(--hero-fondo);
    background: color-mix(in srgb, var(--hero-fondo) var(--hero-caja-opacidad), transparent);
  }
}

/* "Info útil" block: heading + brand rule + pin link (as on the old site) */
.bloque-info > h2 { color: var(--color-texto); }
.regla-info { max-width: none; margin: 0.5rem 0 var(--espacio-3); }
.bloque-info .prosa > p:first-child a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--objetivo-tactil); font-size: 1.25rem; font-weight: 500;
}
.bloque-info .prosa > p:first-child a::before {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; background: currentColor;
  -webkit-mask: var(--icono-pin) center / contain no-repeat; mask: var(--icono-pin) center / contain no-repeat;
}
.bloque-info { --icono-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E"); }

/* ---------- Tren Solar page ---------- */
.tren-datos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espacio-2) var(--espacio-4); margin-top: var(--espacio-3); padding: var(--espacio-2) var(--espacio-3); background: var(--sec-tinte); border-top: 0.375rem solid var(--sec); border-radius: 0 0 var(--radio) var(--radio); }
.tren-longitud, .tren-paradas-titulo { margin: 0; color: var(--color-texto); }
.tren-longitud strong { display: block; font-size: 3rem; line-height: 1; font-weight: 700; color: var(--sec-acento); }
.tren-longitud span { font-size: 1rem; font-weight: 600; }
.tren-paradas { flex: 1 1 22rem; }
.tren-paradas-titulo strong { color: var(--sec-acento); font-size: 1.5rem; }
.tren-estaciones { counter-reset: parada; list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tren-estaciones li { counter-increment: parada; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0 0.875rem 0 0.375rem; border: 2px solid var(--sec-acento); border-radius: 999px; background: #fff; color: var(--color-texto); font-weight: 600; }
.tren-estaciones li::before { content: counter(parada); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--sec); color: var(--sec-boton-texto); font-size: 0.875rem; font-weight: 700; }
.tren-estaciones .tren-actual { background: var(--sec); color: var(--sec-boton-texto); }
.tren-estaciones .tren-actual::before { background: #fff; color: var(--sec-acento); }
.tren-experiencias { display: grid; gap: var(--espacio-3); margin-top: var(--espacio-4); }
.tren-exp { background: #fff; border: 1px solid var(--color-borde); border-top: 0.375rem solid var(--sec); border-radius: 0 0 var(--radio) var(--radio); padding: var(--espacio-3) var(--espacio-2); }
.tren-exp-titulo { display: flex; flex-direction: column; margin: 0 0 var(--espacio-2); color: var(--sec-acento); line-height: 1; }
.tren-exp-etq { font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tren-exp-grados { font-size: clamp(3.5rem, 9vw, 5rem); font-weight: 700; }
.tren-exp .prosa > :last-child { margin-bottom: 0; }
.tren-sitio { margin: var(--espacio-4) 0 0; text-align: center; }
.tren-sitio .boton { min-height: 3.5rem; padding-inline: 2rem; font-size: 1.125rem; }
.tren-estacion { margin-inline: auto; }
@media (min-width: 48em) {
  .tren-experiencias { grid-template-columns: repeat(2, 1fr); }
  .tren-exp { padding: var(--espacio-3); }
}
