/* LabAncestral · inicio.css
   Estilos exclusivos de la página de inicio.
   Orden del archivo:
     1. Base y utilidades compartidas
     2. Hero
     3. Noticias
     4. Qué es · Dónde ocurre el proyecto (mapas)
     5. Video
     6. Líneas de trabajo
     7. Observatorio / Territorio
     8. Pilares
     9. Animaciones
    10. Media queries
   La plantilla inicio.html no lleva estilos en línea: todo vive acá. */


/* ============================================================
   1. BASE Y UTILIDADES COMPARTIDAS
   ============================================================ */

.home {
  display: block;
  position: relative;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #F6EFE1;
  color: #152514;
  font-family: 'IBM Plex Sans', sans-serif;
}

.home > div {
  width: 100%;
  min-width: 100%;
}

/* Los hijos de flex y grid deben poder encogerse. */
.news-grid > *,
.principles-grid > *,
.territory-grid > *,
.pillars-grid > *,
.news-list-item > div:last-child {
  min-width: 0;
}

/* Bloque de página con el ancho editorial del sitio. */
.home-section {
  padding: 90px 44px;
}

.la-wrap {
  max-width: 1240px;
  margin: 0 auto;
}

.la-wrap--rel {
  position: relative;
}

/* Encabezado de sección: título a la izquierda, enlace/índice a la derecha. */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.sec-title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
  color: #152514;
}

/* Antetítulo monoespaciado con guion (o punto) a la izquierda. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow__dash {
  display: block;
  width: 28px;
  height: 1px;
}

.eyebrow__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EE9A1C;
}

.eyebrow--sand {
  color: #9a8f74;
}

.eyebrow--sand .eyebrow__dash {
  background: #c2b48f;
}

.eyebrow--green {
  color: #7fae89;
}

.eyebrow--green .eyebrow__dash {
  background: #3a6b4b;
}

.eyebrow--gold {
  gap: 9px;
  color: #F3D9A0;
}

/* Enlace de texto con subrayado grueso. */
.link-underline {
  text-decoration: none;
  color: #16331c;
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 2px solid #EE9A1C;
  padding-bottom: 3px;
}

.link-underline--inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-underline--light {
  color: #FBF4E4;
  font-size: 15px;
  border-bottom-color: rgba(238, 154, 28, .7);
}

.link-arrow {
  font-size: 16px;
}

/* Botón redondeado. */
.btn-pill {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
}

.btn-pill--gold {
  background: #EE9A1C;
  color: #0E3D22;
  padding: 13px 24px;
}

.btn-pill--green {
  background: #18713A;
  color: #fff;
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.btn-pill__arrow {
  font-size: 17px;
}


/* ============================================================
   2. HERO
   ============================================================ */

.hero {
  position: relative;
  background: #0a2a14;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Carrusel principal.
   El fondo con la imagen de la escena 1 cubre el hero desde el primer pintado:
   si el video todavía no baja, si el navegador bloquea el autoplay o si el JS
   no corre, igual se ve la escena y no el verde plano. */
#hero-slides {
  background: #0a2a14 url("../../assets/video/escena1.c34677c44d7a.jpg") center / cover no-repeat;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 24, 10, .82) 0%, rgba(6, 24, 10, .55) 55%, rgba(6, 24, 10, .25) 100%);
  z-index: 1;
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 44px 120px;
}

.hero-copy {
  max-width: 780px;
  animation: la_rise .8s ease both;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F3D9A0;
  background: rgba(14, 61, 34, .55);
  border: 1px solid rgba(127, 174, 137, .4);
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
}

.hero-badge__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EE9A1C;
  animation: la_glow 2.4s ease-in-out infinite;
}

.home-hero-title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -.018em;
  margin: 0 0 28px;
  color: #fff;
}

.home-hero-lead {
  font-size: 22px;
  line-height: 1.6;
  color: #bcd2c4;
  max-width: 680px;
  margin: 0;
}

.home-hero-lead em {
  font-style: italic;
  color: #F2B458;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.hero-dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: background .3s;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, .6);
}

.hero-dot.hero-dot-active {
  width: 44px;
  background: #EE9A1C;
}


/* ============================================================
   3. NOTICIAS
   ============================================================ */

.news-section {
  background: #F6EFE1;
  border-bottom: 1px solid #e4d9c2;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Noticia destacada */
.news-feature {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-feature__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 74% 14%, #F6CE7E 0%, #E59A2C 18%, transparent 50%),
              linear-gradient(180deg, #c89a55 0%, #9e7038 26%, #5e8f33 27%, #3c7a2c 56%, #1d6a35 80%, #124a27 100%);
  box-shadow: 0 26px 52px -28px rgba(14, 61, 34, .5);
}

/* La imagen se ve siempre completa (contain, nunca recorta texto de afiches
   o banners) y el sobrante del marco se rellena con la misma imagen
   difuminada, así se adapta a cualquier proporción y tamaño de pantalla. */
.news-feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-media-blur {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.1) brightness(.92);
  transform: scale(1.15);   /* evita bordes claros al desenfocar */
  pointer-events: none;
}

.news-list-item__thumb .news-media-blur {
  filter: blur(10px) saturate(1.1) brightness(.92);
}

.news-feature__veil {
  position: absolute;
  inset: 0;
  /* Solo un toque en el borde inferior: la imagen ya no se recorta y un velo
     más fuerte oscurecería el texto de afiches y banners. */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 72%, rgba(8, 32, 18, .28) 100%);
}

.news-feature__tag {
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0E3D22;
  background: #EE9A1C;
  padding: 6px 11px;
  border-radius: 999px;
}

/* Marca de «con video» en la destacada: abajo a la derecha, para no tapar la
   categoría que va arriba a la izquierda. */
.news-video-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(10, 30, 16, .82);
  color: #f3ead6;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-feature__body {
  padding: 22px 4px 0;
}

.news-feature__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: #9a8f74;
  margin-bottom: 12px;
}

.news-feature__title {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: #1a2417;
}

.news-feature__excerpt {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #54503f;
  max-width: 540px;
}

/* Sin enlace "Ver más" debajo, el resumen cierra el bloque. */
.news-feature__excerpt--last {
  margin-bottom: 0;
}

/* Listado lateral */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e4d9c2;
}

.news-list-item--last {
  border-bottom: 0;
}

.news-list-item__thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 78px;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #4a9433, #1d6a35);
}

.news-list-item__thumb--sand {
  background: linear-gradient(160deg, #e0a85a, #9e7038);
}

.news-list-item__thumb--earth {
  background: linear-gradient(160deg, #2f8137, #7A4F2E);
}

.news-list-item__img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* En la miniatura de 96px no cabe texto: basta el símbolo de reproducción. */
.news-thumb-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding-left: 2px;   /* el glifo ▶ no está centrado ópticamente */
  border-radius: 50%;
  background: rgba(10, 30, 16, .82);
  color: #f3ead6;
  font-size: 9px;
}

.news-list-item__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #18713A;
}

.news-list-item__meta--gold {
  color: #C77A33;
}

.news-list-item__title {
  font-family: 'Spectral', serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: #1a2417;
  margin-top: 6px;
}

/* ------------------------------------------------------------
   Entrada en pantalla · la sección se arma como una secuencia de cine
   La clase --js la agrega inicio.js: sin JavaScript nada queda oculto.
   Cada pieza declara su turno en --d y todas arrancan cuando el
   observador marca .is-in.
   ------------------------------------------------------------ */

.news-section--js .news-in {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(9px);
  transition: opacity 1000ms cubic-bezier(.22, .61, .36, 1),
              transform 1150ms cubic-bezier(.16, .84, .44, 1),
              filter 950ms ease-out;
  transition-delay: var(--d, 0ms);
}

.news-section--js.is-in .news-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Orden de entrada: encabezado, foto destacada, su texto y, al final,
   el listado lateral bajando uno tras otro. */
.news-section--js .sec-head > div            { --d: 0ms; }
.news-section--js .sec-head .link-underline  { --d: 160ms; }
.news-section--js .news-feature__media       { --d: 240ms; }
.news-section--js .news-feature__meta        { --d: 500ms; }
.news-section--js .news-feature__title       { --d: 580ms; }
.news-section--js .news-feature__excerpt     { --d: 660ms; }
.news-section--js .news-feature__body .link-underline { --d: 740ms; }

/* La foto grande entra sin desenfoque: difuminar una imagen de ese tamaño
   cuesta caro en móviles y la entrada se nota a saltos. */
.news-section--js .news-feature__media {
  filter: none;
  transition: opacity 1100ms cubic-bezier(.22, .61, .36, 1),
              transform 1200ms cubic-bezier(.16, .84, .44, 1);
  transition-delay: var(--d, 0ms);
}

/* El listado entra desde la derecha, escalonado. */
.news-section--js .news-list-item {
  transform: translateX(26px);
  --d: 640ms;
}

.news-section--js .news-list-item:nth-child(2) { --d: 760ms; }
.news-section--js .news-list-item:nth-child(3) { --d: 880ms; }
.news-section--js .news-list-item:nth-child(4) { --d: 1000ms; }
.news-section--js .news-list-item:nth-child(5) { --d: 1120ms; }
.news-section--js .news-list-item:nth-child(n+6) { --d: 1240ms; }

/* Las imágenes entran algo abiertas y se asientan: el plano "cierra"
   despacio, como una cámara que deja de empujar. */
.news-section--js .news-feature__img,
.news-section--js .news-list-item__img {
  transform: scale(1.14);
  transition: transform 1800ms cubic-bezier(.16, .84, .44, 1);
  transition-delay: var(--d, 0ms);
}

.news-section--js.is-in .news-feature__img,
.news-section--js.is-in .news-list-item__img {
  transform: none;
}

/* Un destello diagonal recorre la foto destacada una sola vez. */
.news-section--js .news-feature__media::after {
  content: "";
  position: absolute;
  inset: -40% -70%;
  pointer-events: none;
  background: linear-gradient(102deg,
              rgba(255, 255, 255, 0) 43%,
              rgba(255, 255, 255, .26) 50%,
              rgba(255, 255, 255, 0) 57%);
  transform: translateX(-120%);
}

.news-section--js.is-in .news-feature__media::after {
  animation: news-sweep 1400ms cubic-bezier(.4, 0, .25, 1) 800ms both;
}

@keyframes news-sweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}


/* ============================================================
   4. #que-es · "Dónde ocurre el proyecto"
   Mapa de Chile con la red de nodos + zoom sobre el Tamarugal.
   Todo el bloque escala con clamp(): no necesita media queries.
   ============================================================ */

.tam-section {
  position: relative;
  overflow: hidden;
  background: #0C1311;
  color: #EDE7DD;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 110px) !important;
}

.tam-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 78% 18%, rgba(224, 164, 88, .13), transparent 60%);
  pointer-events: none;
}

.tam-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  border-bottom: 1px solid rgba(237, 231, 221, .16);
  padding-bottom: 28px;
}

.tam-header__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.tam-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #E0A458;
}

.tam-title {
  margin: 0;
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: #F6F1E8;
}

.tam-intro {
  margin: 0;
  max-width: 340px;
  min-width: 240px;
  flex: 1 1 260px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.65;
  color: rgba(237, 231, 221, .68);
}

.tam-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 56px);
  align-items: start;
  margin-top: clamp(44px, 5vw, 64px);
}

.tam-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Fig. 01 va centrada dentro de su columna. */
.tam-fig--red {
  width: 100%;
  max-width: 640px;
  justify-self: center;
  align-items: center;
  gap: 26px;
}

.tam-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(237, 231, 221, .5);
  line-height: 1.7;
}

.tam-caption--center {
  text-align: center;
}

/* --- Fig. 01 · red de nodos ------------------------------- */

/* El ancho del mapa manda: pines, líneas y etiquetas se posicionan sobre él. */
.tam-map {
  position: relative;
  width: clamp(112px, 17vw, 200px);
  margin: 0 auto;
}

.tam-map__img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(.55) brightness(.82) contrast(1.05);
}

/* Recuadro dorado sobre la Provincia del Tamarugal */
.tam-map::after {
  content: "";
  position: absolute;
  left: 33%;
  top: 4.6%;
  width: 36%;
  height: 8.4%;
  border: 1.5px solid #E0A458;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(12, 19, 17, .6), 0 0 34px rgba(224, 164, 88, .45);
  pointer-events: none;
}

.tam-pin {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
}

.tam-dot,
.tam-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.tam-dot {
  background: #F6F1E8;
  box-shadow: 0 0 0 2px rgba(12, 19, 17, .75);
}

.tam-dot--on {
  background: #E0A458;
}

.tam-ring {
  border: 1.5px solid #E0A458;
  animation: tam_pulse 2.6s ease-out infinite;
}

/* Línea que une cada punto con su etiqueta */
.tam-line {
  position: absolute;
  height: 1px;
}

.tam-line--r {
  right: calc(-4px - clamp(12px, 2.6vw, 36px));
  background: linear-gradient(90deg, rgba(237, 231, 221, .3), rgba(237, 231, 221, .05));
}

.tam-line--l {
  left: calc(-4px - clamp(12px, 2.6vw, 36px));
  background: linear-gradient(90deg, rgba(237, 231, 221, .05), rgba(237, 231, 221, .3));
}

/* La del nodo propio va en dorado */
.tam-line--on {
  background: linear-gradient(90deg, rgba(224, 164, 88, .9), rgba(237, 231, 221, .05));
}

.tam-label {
  position: absolute;
  width: clamp(74px, 12.5vw, 138px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: .78;
  transition: transform 260ms cubic-bezier(.2, .7, .3, 1), opacity 260ms ease;
}

.tam-label--r {
  left: calc(100% + clamp(12px, 2.6vw, 36px));
  align-items: flex-start;
  text-align: left;
}

.tam-label--l {
  right: calc(100% + clamp(12px, 2.6vw, 36px));
  align-items: flex-end;
  text-align: right;
}

.tam-label--on {
  opacity: 1;
}

.tam-label:hover {
  transform: translateY(-50%) scale(1.07);
  opacity: 1;
}

/* Los nodos de la red enlazan a su sitio oficial: el label completo es clicable. */
a.tam-label {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.tam-label:focus-visible {
  outline: 2px solid #E0A458;
  outline-offset: 6px;
  border-radius: 4px;
  opacity: 1;
}

/* Texto del nodo propio */
.tam-label__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.tam-label__name {
  font-size: 11px;
  font-weight: 500;
  color: #E0A458;
  line-height: 1.2;
}

.tam-label__place {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(237, 231, 221, .45);
  line-height: 1.25;
}

/* Logotipos de los nodos: cada uno con su ancho óptico. */
.tam-logo {
  height: auto;
  display: block;
}

/* Los logos monocromos vienen en negro: se invierten para el fondo oscuro. */
.tam-logo--inv {
  filter: invert(1) hue-rotate(180deg) saturate(1.15) brightness(1.05);
}

.tam-logo--lab          { width: min(52px, 100%); }
.tam-logo--landata      { width: min(118px, 100%); }
.tam-logo--salares      { width: min(116px, 100%); }
.tam-logo--oceano       { width: min(128px, 100%); }
.tam-logo--andes        { width: min(84px, 100%); }
.tam-logo--subantartico { width: min(130px, 100%); }

.tam-logo--antartico {
  width: min(70px, 100%);
  filter: invert(1);
}

/* Coordenadas de cada nodo sobre el mapa de Chile (% de la imagen). */
.tam-pin--lab           { top: 7.3%;  left: 49.6%; }
.tam-line--lab          { top: 7.3%;  left: 49.6%; }
.tam-label--lab         { top: 7.3%; }

.tam-pin--landata       { top: 13%;   left: 56.2%; }
.tam-line--landata      { top: 13%;   right: 43.8%; }
.tam-label--landata     { top: 13%; }

.tam-pin--salares       { top: 21%;   left: 54.5%; }
.tam-line--salares      { top: 21%;   left: 54.5%; }
.tam-label--salares     { top: 21%; }

.tam-pin--oceano        { top: 32.5%; left: 45.6%; }
.tam-line--oceano       { top: 32.5%; left: 45.6%; }
.tam-label--oceano      { top: 32.5%; }

.tam-pin--andes         { top: 61%;   left: 34.6%; }
.tam-line--andes        { top: 61%;   right: 65.4%; }
.tam-label--andes       { top: 61%; }

.tam-pin--subantartico  { top: 83%;   left: 26.2%; }
.tam-line--subantartico { top: 83%;   left: 26.2%; }
.tam-label--subantartico{ top: 83%; }

.tam-pin--antartico     { top: 97%;   left: 67.9%; }
.tam-line--antartico    { top: 97%;   right: 32.1%; }
.tam-label--antartico   { top: 97%; }

/* --- Fig. 02 · zoom sobre el Tamarugal --------------------- */

.tam-frame {
  position: relative;
  padding: clamp(14px, 2.4vw, 26px);
  border: 1px solid rgba(224, 164, 88, .34);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(224, 164, 88, .07), rgba(224, 164, 88, .01));
}

.tam-zoom {
  position: relative;
}

.tam-zoom__img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .55));
}

.tam-area {
  position: absolute;
  left: 44%;
  top: 79%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.tam-area__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E0A458;
  box-shadow: 0 0 0 5px rgba(224, 164, 88, .22);
}

.tam-area__tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(9px, 1.1vw, 12px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0C1311;
  background: #E0A458;
  padding: 5px 10px;
  border-radius: 2px;
}

/* Miniaturas de comunas: las coordenadas son % de la imagen, así que
   todo escala solo y no hacen falta media queries. */
.tam-com {
  --s: clamp(32px, 5.4vw, 56px);
  --w: max(var(--s), 78px);
  position: absolute;
  width: var(--w);
  /* centra el círculo (no la caja) sobre el punto */
  margin-left: calc(var(--w) / -2);
  margin-top: calc(var(--s) / -2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
  cursor: default;
}

/* Estado inicial solo cuando hay JS: el observer lo revela al entrar en pantalla */
.tam-zoom--js .tam-com {
  opacity: 0;
  transform: translateY(12px) scale(.86);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--d, 0ms);
}

.tam-zoom--js.is-in .tam-com {
  opacity: 1;
  transform: none;
}

.tam-com__img {
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid rgba(224, 164, 88, .8);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 0 3px rgba(12, 19, 17, .5);
  filter: saturate(.92) contrast(1.03);
  transition: transform 380ms cubic-bezier(.2, .7, .3, 1),
              box-shadow 380ms ease,
              filter 380ms ease,
              border-color 380ms ease;
}

.tam-com__tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(7.5px, .92vw, 10px);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: rgba(237, 231, 221, .62);
  background: rgba(12, 19, 17, .6);
  padding: 2px 6px;
  border-radius: 2px;
  transition: color 380ms ease, background 380ms ease;
}

.tam-com:hover .tam-com__img,
.tam-com:focus-within .tam-com__img {
  transform: scale(1.2);
  border-color: #E0A458;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .6), 0 0 0 4px rgba(224, 164, 88, .24);
  filter: saturate(1.08) contrast(1.05);
}

.tam-com:hover .tam-com__tag,
.tam-com:focus-within .tam-com__tag {
  color: #F6F1E8;
  background: rgba(12, 19, 17, .88);
}

/* Botón corto sobre el mapa: vidrio oscuro (#0C1311) con filo dorado, apoyado
   en el negro de la figura. Padding y piezas en em sobre un tipo fluido, así
   la pastilla completa escala sola: no hace falta redimensionar a mano. */
.tam-map-cta {
  --mc-ink: #0C1311;
  --mc-gold: #E0A458;
  position: absolute;
  left: 50%;
  top: 92.5%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85em;
  min-height: 34px;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  padding: .72em .8em .72em 1.15em;
  border: 1px solid rgba(224, 164, 88, .42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(28, 38, 34, .94), rgba(8, 13, 12, .96));
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  backdrop-filter: blur(7px) saturate(1.1);
  color: #F6F1E8;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(10px, 1.02vw, 12px);
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(246, 241, 232, .10),
    0 16px 34px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(0, 0, 0, .5);
  transition: transform 340ms cubic-bezier(.2, .7, .3, 1),
              box-shadow 340ms ease, background 340ms ease,
              border-color 340ms ease, color 340ms ease;
}

/* Halo dorado tenue que aparece al pasar el cursor */
.tam-map-cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120% 160% at 50% 120%, rgba(224, 164, 88, .22), transparent 62%);
  opacity: 0;
  transition: opacity 340ms ease;
  pointer-events: none;
}

/* Sobre el halo (::before es positioned, así que el contenido también lo es) */
.tam-map-cta__dot,
.tam-map-cta__label,
.tam-map-cta__arrow {
  position: relative;
}

.tam-map-cta__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tam-map-cta__dot {
  width: .5em;
  height: .5em;
  flex: none;
  border-radius: 50%;
  background: var(--mc-gold);
  box-shadow: 0 0 0 .26em rgba(224, 164, 88, .16), 0 0 12px rgba(224, 164, 88, .55);
  transition: background 340ms ease, box-shadow 340ms ease;
}

/* La flecha vive en su propio disco: da peso de botón sin agrandar la pastilla */
.tam-map-cta__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85em;
  height: 1.85em;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(224, 164, 88, .34);
  background: rgba(224, 164, 88, .1);
  color: var(--mc-gold);
  font-size: 1em;
  line-height: 1;
  transition: transform 340ms cubic-bezier(.2, .7, .3, 1),
              background 340ms ease, border-color 340ms ease, color 340ms ease;
}

.tam-map-cta:hover,
.tam-map-cta:focus-visible {
  border-color: var(--mc-gold);
  color: #FFF3E0;
  transform: translate(-50%, -50%) translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(246, 241, 232, .14),
    0 20px 40px rgba(0, 0, 0, .68),
    0 0 0 1px rgba(224, 164, 88, .24);
}

.tam-map-cta:hover::before,
.tam-map-cta:focus-visible::before {
  opacity: 1;
}

.tam-map-cta:hover .tam-map-cta__arrow,
.tam-map-cta:focus-visible .tam-map-cta__arrow {
  background: var(--mc-gold);
  border-color: var(--mc-gold);
  color: var(--mc-ink);
  transform: translateX(2px);
}

.tam-map-cta:hover .tam-map-cta__dot,
.tam-map-cta:focus-visible .tam-map-cta__dot {
  box-shadow: 0 0 0 .32em rgba(224, 164, 88, .22), 0 0 16px rgba(224, 164, 88, .7);
}

.tam-map-cta:active {
  transform: translate(-50%, -50%) translateY(0);
}

.tam-map-cta:focus-visible {
  outline: 2px solid rgba(246, 241, 232, .85);
  outline-offset: 3px;
}

/* Posición de cada comuna (capital comunal, % de la imagen) y su retardo
   en la aparición escalonada. */
.tam-com--camina  { left: 47.2%; top: 14.6%; --d: 60ms; }
.tam-com--colchane{ left: 84.4%; top: 13.3%; --d: 140ms; }
.tam-com--iquique { left: 12.9%; top: 46.4%; --d: 220ms; }
.tam-com--pozo    { left: 30.3%; top: 48%;   --d: 300ms; }
.tam-com--pica    { left: 51.8%; top: 56.2%; --d: 380ms; }

/* --- CTA hacia las actividades ---------------------------- */

.tam-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(44px, 5vw, 66px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid rgba(237, 231, 221, .16);
  text-align: center;
}

.tam-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: 1px solid rgba(224, 164, 88, .55);
  border-radius: 999px;
  background: rgba(224, 164, 88, .07);
  color: #F6F1E8;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(11px, 1.15vw, 13px);
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background 320ms ease, border-color 320ms ease,
              color 320ms ease, transform 320ms cubic-bezier(.2, .7, .3, 1),
              box-shadow 320ms ease;
}

.tam-cta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E0A458;
  box-shadow: 0 0 0 4px rgba(224, 164, 88, .18);
  transition: background 320ms ease, box-shadow 320ms ease;
}

.tam-cta__arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 320ms cubic-bezier(.2, .7, .3, 1);
}

.tam-cta__btn:hover,
.tam-cta__btn:focus-visible {
  background: #E0A458;
  border-color: #E0A458;
  color: #0C1311;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), 0 0 0 4px rgba(224, 164, 88, .16);
}

.tam-cta__btn:hover .tam-cta__dot,
.tam-cta__btn:focus-visible .tam-cta__dot {
  background: #0C1311;
  box-shadow: 0 0 0 4px rgba(12, 19, 17, .22);
}

.tam-cta__btn:hover .tam-cta__arrow,
.tam-cta__btn:focus-visible .tam-cta__arrow {
  transform: translateX(4px);
}

.tam-cta__note {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.6;
  color: rgba(237, 231, 221, .52);
}


/* ============================================================
   5. VIDEO
   ============================================================ */

.home-video {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0E3D22;
  border-top: 1px solid rgba(242, 180, 88, .22);
  border-bottom: 1px solid rgba(242, 180, 88, .22);
}

/* Fondo pintado: se ve mientras el video no está disponible. */
.home-video__paint {
  position: absolute;
  inset: 0;
  animation: la_pan 26s ease-in-out infinite;
  background: radial-gradient(120% 70% at 72% 8%, #F6CE7E 0%, #E59A2C 16%, rgba(180, 110, 40, 0) 46%),
              linear-gradient(180deg, #caa05a 0%, #a9763d 26%, #5e8f33 27%, #3c7a2c 50%, #236a37 70%, #103f24 100%);
}

.home-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-video__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 61, 34, .15) 0%, rgba(10, 40, 24, .35) 45%, rgba(8, 32, 18, .82) 100%);
}

/* Banda separadora: se lee de lado a lado y ocupa poca altura. */
.home-video__content {
  position: relative;
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 48px;
  row-gap: 14px;
}

.home-video__content .eyebrow {
  flex: 0 0 100%;
  margin-bottom: 0;
}

.home-video-title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.28;
  letter-spacing: -.01em;
  margin: 0;
  color: #FBF4E4;
  flex: 1 1 560px;
  max-width: none;
}

.home-video-title em {
  font-style: italic;
  font-weight: 500;
  color: #F2B458;
}

.home-video__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}


/* ============================================================
   6. ARCHIVO AUDIOVISUAL
   ============================================================ */

.av-section {
  background: radial-gradient(110% 120% at 85% 10%, #14512e 0%, #0E3D22 48%, #0a2b18 100%);
  color: #eae3d2;
}

.av-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.av-head__lead {
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
}

.av-title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
  color: #fff;
}

.av-title em {
  font-style: italic;
  color: #F2B458;
}

.av-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.av-counter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  color: #7fae89;
}

.av-arrow {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(234, 227, 210, .22);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}

.av-arrow:hover {
  background: rgba(238, 154, 28, .16);
  border-color: rgba(238, 154, 28, .6);
}

.av-arrow:first-of-type:hover { transform: translateX(-2px); }
.av-arrow:last-of-type:hover  { transform: translateX(2px); }

/* Triángulos en CSS: evitan un sprite o un SVG por flecha. */
.av-arrow__tri {
  display: block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.av-arrow__tri--left {
  margin-right: 3px;
  border-right: 8px solid #EE9A1C;
}

.av-arrow__tri--right {
  margin-left: 3px;
  border-left: 8px solid #EE9A1C;
}

.av-main {
  display: flex;
  gap: 28px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.av-stage {
  flex: 1 1 600px;
  min-width: 320px;
  position: relative;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: #0a2b18;
  border: 1px solid rgba(238, 154, 28, .18);
  box-shadow: 0 40px 90px -55px rgba(0, 0, 0, .95);
}

.av-stage__cover,
.av-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.av-stage__cover {
  padding: 0;
  background: none;
  cursor: pointer;
  animation: av-slide-in .6s cubic-bezier(.2, .7, .2, 1) both;
}

.av-stage iframe {
  animation: av-fade-in .5s ease both;
}

.av-stage__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.6) brightness(.6);
}

.av-stage__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 34, 20, .6), rgba(9, 34, 20, .05));
}

/* Botón de play: círculo dorado con el triángulo dibujado en ::after. */
.av-stage__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #EE9A1C;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .7);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.av-stage__btn::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 19px solid #0E3D22;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.av-stage__cover:hover .av-stage__btn {
  transform: translate(-50%, -50%) scale(1.06);
}

.av-meta {
  flex: 1 1 260px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0;
}

.av-meta__now {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.av-meta__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(234, 227, 210, .5);
}

.av-meta__title {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.22;
  margin: 0;
  color: #fff;
  text-wrap: pretty;
}

.av-meta__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #bcd2c4;
  text-wrap: pretty;
}

.av-meta__ficha {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(234, 227, 210, .45);
}

.av-meta__cta {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #eae3d2;
  border: 1px solid rgba(238, 154, 28, .5);
  border-radius: 999px;
  padding: 13px 24px;
  transition: background .4s ease, border-color .4s ease, color .4s ease;
}

.av-meta__cta:hover {
  background: #EE9A1C;
  border-color: #EE9A1C;
  color: #0E3D22;
}

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

.av-thumb {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.av-thumb__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(150deg, #1f5a3e, #0E3D22);
  border: 1px solid rgba(234, 227, 210, .12);
  transition: border-color .4s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}

.av-thumb:hover .av-thumb__frame {
  transform: translateY(-4px);
}

.av-thumb.is-active .av-thumb__frame {
  border-color: rgba(238, 154, 28, .6);
}

.av-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.4) brightness(.5);
  transition: filter .5s ease;
}

.av-thumb.is-active .av-thumb__img {
  filter: saturate(.75) brightness(.85);
}

/* Subrayado que crece bajo la miniatura activa. */
.av-thumb__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #EE9A1C;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.av-thumb.is-active .av-thumb__bar {
  transform: scaleX(1);
}

.av-thumb__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  color: rgba(234, 227, 210, .4);
  transition: color .4s ease;
}

.av-thumb.is-active .av-thumb__num {
  color: #EE9A1C;
}

.av-thumb__title {
  font-size: 13px;
  line-height: 1.3;
  color: rgba(234, 227, 210, .62);
  transition: color .4s ease;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.av-thumb.is-active .av-thumb__title {
  color: #f7f2e7;
}

@keyframes av-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes av-slide-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .av-stage__cover,
  .av-stage iframe {
    animation: none;
  }
}

/* ============================================================
   7. OBSERVATORIO / TERRITORIO
   ============================================================ */

.territory-section {
  background: #F6EFE1;
}

.territory-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.territory-section .eyebrow {
  margin-bottom: 20px;
}

.territory-title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: #152514;
}

.territory-text {
  font-size: 16px;
  line-height: 1.65;
  color: #54503f;
  max-width: 440px;
  margin: 0 0 30px;
}

.la-m2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
  max-width: 440px;
}

.stat-card {
  background: #fff;
  border: 1px solid #ece1c9;
  border-radius: 13px;
  padding: 20px;
}

.stat-card__num {
  font-family: 'Spectral', serif;
  font-size: 36px;
  color: #18713A;
  line-height: 1;
}

.stat-card__num--gold {
  color: #EE9A1C;
}

.stat-card__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: #6b6657;
  margin-top: 7px;
}

.territory-map {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #0E3D22;
  box-shadow: 0 30px 60px -28px rgba(14, 61, 34, .55);
}

.territory-map__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.territory-map__tag {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #0E3D22;
  background: rgba(255, 255, 255, .85);
  padding: 7px 11px;
  border-radius: 7px;
}


/* ============================================================
   8. PILARES
   ============================================================ */

.pillars-section {
  background: #efe6d2;
  padding: 74px 44px;
  border-top: 1px solid #e4d9c2;
}

.pillars-section .eyebrow {
  margin-bottom: 30px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pillar-card {
  text-decoration: none;
  color: inherit;
  background: #F6EFE1;
  border: 1px solid #e4d9c2;
  border-radius: 14px;
  padding: 24px;
  display: block;
}

.pillar-card__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #EE9A1C;
  margin-bottom: 14px;
}

.pillar-card__title {
  font-family: 'Spectral', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a2417;
  margin-bottom: 7px;
}

.pillar-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b6657;
}


/* ============================================================
   9. ANIMACIONES
   ============================================================ */

@keyframes la_rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes la_pan {
  0%   { transform: scale(1.12) translate(0, 0); }
  50%  { transform: scale(1.2) translate(-2.5%, -1.8%); }
  100% { transform: scale(1.12) translate(0, 0); }
}

@keyframes tam_pulse {
  0%        { transform: scale(1);   opacity: .9; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}


/* ============================================================
   10. MEDIA QUERIES
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .news-grid,
  .territory-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .av-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .av-stage {
    height: 300px;
  }
}

/* Móvil */
@media (max-width: 700px) {
  /* #que-es maneja su propio padding fluido (.tam-section). */
  .home-section:not(.tam-section) {
    padding: 64px 20px !important;
  }

  .home-hero-content {
    padding: 120px 20px 80px !important;
  }

  .news-grid,
  .principles-grid,
  .territory-grid,
  .pillars-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .principles-grid {
    margin-top: 42px !important;
  }

  .principles-grid > div {
    padding: 26px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e0d3b6;
  }

  .principles-grid > div:last-child {
    border-bottom: 0;
  }

  .home-hero-title {
    font-size: clamp(42px, 14vw, 64px) !important;
  }

  .home-hero-lead {
    font-size: 18px !important;
  }

  .home-video {
    min-height: 0 !important;
  }

  .home-video > div:last-child {
    padding: 30px 20px !important;
    column-gap: 20px !important;
  }

  .home-video-title {
    font-size: clamp(19px, 4.6vw, 24px) !important;
  }

  .av-head {
    gap: 22px;
  }

  .av-title {
    font-size: clamp(28px, 9vw, 40px);
  }

  .av-stage {
    height: 210px;
  }

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

  .la-m2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Botón sobre el mapa: más área táctil y menos tracking en móvil */
  .tam-map-cta {
    min-height: 38px;
    gap: .7em;
    font-size: 10.5px;
    letter-spacing: .12em;
    padding: .8em .78em .8em 1.1em;
  }

}

/* Teléfonos estrechos */
@media (max-width: 420px) {
  .home-hero-badge {
    align-items: flex-start !important;
    border-radius: 16px !important;
    line-height: 1.5;
  }

  .news-list-item {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .news-list-item > div:first-child {
    width: 76px !important;
    height: 64px !important;
    flex-basis: 76px !important;
  }

  .la-m2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tam-map-cta {
    gap: .55em;
    font-size: 10px;
    letter-spacing: .1em;
    padding: .78em .7em .78em .95em;
  }
}

@supports (width: 100dvw) {
  .home,
  .home > div {
    width: 100dvw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-section--js .news-in,
  .news-section--js .news-list-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .news-section--js .news-feature__img,
  .news-section--js .news-list-item__img {
    transform: none;
    transition: none;
  }

  .news-section--js.is-in .news-feature__media::after {
    animation: none;
  }

  .tam-ring {
    animation: none;
  }

  .tam-zoom--js .tam-com {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tam-com__img,
  .tam-com__tag {
    transition: none;
  }

  .tam-cta__btn,
  .tam-cta__dot,
  .tam-cta__arrow {
    transition: none;
  }

  .tam-cta__btn:hover,
  .tam-cta__btn:focus-visible {
    transform: none;
  }

  .tam-cta__btn:hover .tam-cta__arrow,
  .tam-cta__btn:focus-visible .tam-cta__arrow {
    transform: none;
  }

  .tam-map-cta,
  .tam-map-cta::before,
  .tam-map-cta__dot,
  .tam-map-cta__arrow {
    transition: none;
  }

  .tam-map-cta:hover,
  .tam-map-cta:focus-visible {
    transform: translate(-50%, -50%);
  }

  .tam-map-cta:hover .tam-map-cta__arrow,
  .tam-map-cta:focus-visible .tam-map-cta__arrow {
    transform: none;
  }
}
