/* -------------------------------------------------------------------------
   Cuidémonos — estilos de las secciones de la portada.
   Tokens en style.css. Componentes base en main.css.
   ------------------------------------------------------------------------- */

.section-title--rust { color: var(--color-primary-dark); }

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  cursor: pointer;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}
.play-btn:hover { transform: scale(1.08); background: #fff; }
.play-btn--lg { width: 88px; height: 88px; }
.play-btn--sm { width: 48px; height: 48px; z-index: 2; pointer-events: none; }
/* Cubre TODO el video como zona clickeable; el play queda de adorno centrado. */
.video-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.video-cover .play-btn { pointer-events: none; }
.video-cover:hover .play-btn { transform: scale(1.08); background: #fff; }
.video-cover:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* Nuestro Progreso ------------------------------------------------------- */
.progreso {
  background: var(--color-primary);
  color: #fff;
  padding-block: var(--space-section);
}
.progreso__title {
  font-size: var(--text-h2);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.progreso-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 2rem;
  background: #fff;
  color: var(--color-text);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.progreso-card__media { position: relative; min-height: 320px; }
.progreso-card__media picture,
.progreso-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.progreso-card__media img { object-fit: cover; }
.progreso-card__logos {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.progreso-card__logos img { position: static; width: auto; height: 30px; }
.progreso-card__body { padding: 2rem 2rem 2rem 0; }
.progreso-card__eyebrow {
  color: var(--color-primary);
  font-weight: var(--weight-strong);
  font-size: var(--text-base);
  margin: 0 0 0.4rem;
}
.progreso-card__name {
  font-family: var(--font-head);
  font-weight: var(--weight-strong);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.1875rem);
  margin: 0 0 0.6rem;
}
.progreso-card__desc { font-size: var(--text-base); margin: 0 0 1.5rem; }
.progreso-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-block: 1.25rem;
}
.stat { padding: 0 1.25rem; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--color-border); }
.stat__value {
  display: block;
  font-family: var(--font-head);
  font-weight: var(--weight-strong);
  font-size: clamp(1.75rem, 1rem + 2.2vw, 2.5rem);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat__label { font-size: 1.05rem; color: var(--color-text); font-weight: 300; line-height: 1.25; }
.progreso-card__progress { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.25rem; }
.progreso-card__pct {
  font-family: var(--font-head);
  font-weight: var(--weight-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-primary-dark);
}
/* =========================================================================
   Componente reutilizable: barra de progreso (.progress)
   Usado en Nuestro Progreso (home) y en la Inversión (interna).
   ========================================================================= */
.progress {
  position: relative;
  flex: 1;
  height: 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ece3e0, #f4efed);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}
.progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  min-width: 26px;
  max-width: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 2px 8px rgba(218, 91, 62, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: width 800ms var(--ease), background 500ms var(--ease);
}
.progress__fill[style*="width:0%"],
.progress__fill[style*="width: 0%"] { min-width: 0; }
/* Knob indicador con pulso. */
.progress__fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  animation: cuidemonos-knob 2s ease-out infinite;
}
.progress__state {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-muted);
  font-weight: var(--weight-strong);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* Completado (100%): verde, knob verde, check y texto blanco. */
.progress.is-done .progress__fill {
  background: linear-gradient(90deg, #34b34a 0%, var(--color-success-strong) 100%);
  box-shadow: 0 2px 10px rgba(39, 155, 62, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.progress.is-done .progress__fill::after { border-color: var(--color-success-strong); animation-name: cuidemonos-knob-green; }
.progress.is-done .progress__state { color: #fff; }
.progress.is-done .progress__state::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23279b3e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  flex: 0 0 auto;
}
@keyframes cuidemonos-knob {
  0%   { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(218, 91, 62, 0.45); }
  70%  { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(218, 91, 62, 0); }
  100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(218, 91, 62, 0); }
}
@keyframes cuidemonos-knob-green {
  0%   { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(39, 155, 62, 0.5); }
  70%  { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(39, 155, 62, 0); }
  100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(39, 155, 62, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .progress__fill::after { animation: none; }
}
.progreso__more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  color: var(--color-text);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.mini-card__title { display: block; font-family: var(--font-head); font-weight: var(--weight-strong); font-size: 1.25rem; }
.mini-card__state { display: block; font-size: var(--text-base); color: var(--color-muted); font-weight: var(--weight-body); }
.mini-card__chevron { color: var(--color-primary); }

/* Prepárate (INDECI) ----------------------------------------------------- */
.preparate__sub {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-body);
  color: var(--color-ink);
  margin: 0.5rem 0 var(--space-lg);
}
.preparate__sub strong { font-weight: var(--weight-strong); }
.preparate__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.preparate__video { position: relative; border-radius: 14px; overflow: hidden; }
.preparate__video img { width: 100%; height: 100%; object-fit: cover; }
.fases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.fase {
  position: relative;
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary);
  border-radius: 16px;
  padding: 1.9rem 1.25rem 1.25rem;
  text-align: center;
}
.fase__label {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 1.5rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.fase__text { font-weight: var(--weight-body); color: var(--color-text); line-height: 1.4; }
.preparate__cta {
  display: block;
  margin-top: 2rem;
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  transition: background var(--duration) var(--ease);
}
.preparate__cta:hover { background: var(--color-primary-dark); }

/* ¿Qué pasa en Piura? ---------------------------------------------------- */
/* Noticiero = un solo slider; el destacado va primero. */
.piura__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-md); }
.piura__title { text-align: left; margin: 0; }
.piura__kicker { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.35rem 0 0; }
.piura__eyebrow { color: var(--color-primary); font-weight: var(--weight-strong); font-size: var(--text-base); }
.piura__brand { font-family: var(--font-head); font-weight: var(--weight-display); font-size: 1.05rem; color: #2a2a2a; text-transform: uppercase; letter-spacing: 0.02em; }
/* Destacado: mismo tamaño que el resto (un solo slider), con un aro de acento. */
.piura-note--feature { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.piura-note { position: relative; border-radius: 12px; overflow: hidden; min-height: 180px; }
.piura-note picture,
.piura-note img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.piura-note::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.75)); pointer-events: none; }
.piura-note__title { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
/* El enlace cubre toda la card → clickeable completa. */
.piura-note__link { position: absolute; inset: 0; display: block; cursor: pointer; }
.piura-note__img { transition: transform var(--duration, 300ms) var(--ease, ease); }
.piura-note__link:hover .piura-note__img,
.piura-note__link:focus-visible .piura-note__img { transform: scale(1.06); }
.piura-note__link:hover .play-btn--sm { transform: scale(1.12); background: #fff; }
.piura-note__link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.piura-note:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }

/* Noticias --------------------------------------------------------------- */
.noticias__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-md); }
.noticias__title { font-style: italic; text-align: left; margin: 0; }
.slider-nav { display: flex; gap: 0.6rem; }
.slider-nav__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.slider-nav__btn:hover { background: var(--color-primary); color: #fff; }
/* Slider reutilizable: fija cuántas tarjetas se ven con --slider-visible. */
.slider {
  --slider-gap: 1.5rem;
  --slider-visible: 3;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--slider-gap) * (var(--slider-visible) - 1))) / var(--slider-visible));
  gap: var(--slider-gap);
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.slider > * { scroll-snap-align: start; }
.noticias__track { --slider-visible: 4; }
.piura__clips { --slider-visible: 3; }
.piura__clips .piura-note { min-height: 180px; }

/* =========================================================================
   Base de hero reutilizable (foto de fondo + overlay + contenido).
   La usan la interna de ejes y la vista de Inversión Privada.
   Cada variante define min-height, alineación, overlay y tratamiento del bg.
   ========================================================================= */
.hero-shell { position: relative; overflow: hidden; color: #fff; }
.hero-shell__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-shell__overlay { position: absolute; inset: 0; }
.hero-shell__inner { position: relative; }
.noticia-card { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.noticia-card img { width: 100%; height: 150px; object-fit: cover; }
.noticia-card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.noticia-card__title { font-family: var(--font-head); font-weight: var(--weight-strong); font-size: 1rem; margin: 0; }
.noticia-card__text { font-size: 0.8125rem; color: var(--color-muted); margin: 0; flex: 1; }
.noticia-card__link {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: var(--weight-strong);
  font-size: 0.8125rem;
  transition: background var(--duration) var(--ease);
}
.noticia-card__link:hover { background: var(--color-primary-dark); }

/* Galería ---------------------------------------------------------------- */
.galeria__filtros { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0 0 1.5rem; padding: 0; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1.5px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary-dark);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: var(--weight-body);
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.chip--active,
.chip:hover { background: var(--color-primary); color: #fff; }
.galeria__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.galeria__grid:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.galeria__more { display: flex; justify-content: center; margin-top: 1.5rem; }
.galeria__mas {
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.galeria__mas:hover { background: var(--color-primary); color: #fff; }
.galeria__item { margin: 0; border-radius: 12px; overflow: hidden; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; }
.galeria__item--big { grid-row: span 2; }

/* Sector privado + Claim -------------------------------------------------- */
.sector { background: var(--color-primary); color: #fff; padding-block: var(--space-section); text-align: left; }
.sector__title { color: #fff; font-size: var(--text-h2); text-transform: uppercase; margin: 0 0 0.5rem; }
.sector__title a { color: inherit; text-decoration: none; }
.sector__title a:hover { text-decoration: underline; }
a.sector__amount { text-decoration: none; color: inherit; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
a.sector__amount:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }
.sector__lead { max-width: 60ch; margin: 0 0 2rem; font-weight: var(--weight-body); font-size: var(--text-lg); }
.sector__amount { background: #fff; border-radius: 14px; padding: 1.5rem 2.5rem; display: flex; align-items: center; justify-content: flex-start; gap: 2rem; flex-wrap: wrap; }
.sector__label { font-family: var(--font-head); font-weight: var(--weight-strong); font-size: 1.5rem; color: var(--color-ink); white-space: nowrap; }
.sector__value { font-family: var(--font-head); font-weight: var(--weight-display); font-size: var(--text-mega); color: var(--color-ink); line-height: 1; white-space: nowrap; letter-spacing: -0.01em; }

.claim { padding-block: var(--space-section); text-align: center; }
.claim__logo { height: 40px; width: auto; margin: 0 auto 1.5rem; }
.claim__text { color: var(--color-primary-dark); text-transform: uppercase; font-size: var(--text-h2); max-width: 18ch; margin: 0 auto; }

/* Footer (diseño Figma) --------------------------------------------------- */
.site-footer { background: var(--color-dark); color: rgba(255, 255, 255, 0.85); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2rem; padding-block: var(--space-lg); }
.site-footer__brand img { width: 180px; height: auto; }
.site-footer__col h3 { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 0.9375rem; margin: 0 0 1rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__col a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.9375rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__contact { font-size: 0.9375rem; line-height: 1.8; margin: 0; }
.site-footer__contact a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.25rem; }
.site-footer__bottom p { margin: 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }

/* Responsive de secciones ------------------------------------------------ */
@media (max-width: 960px) {
  .progreso-card { grid-template-columns: 1fr; }
  .progreso-card__body { padding: 1.5rem; }
  .preparate__grid { grid-template-columns: 1fr; }
  .noticias__track { --slider-visible: 2; }
  .piura__clips { --slider-visible: 2; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .progreso__more { grid-template-columns: 1fr; }
  .noticias__track { --slider-visible: 1.15; }
  .piura__clips { --slider-visible: 1.15; }

  /* --- Barrido de centrado en cel: en una columna, títulos + textos + stats
     centrados para que no se vea desalineado (izq de desktop se ve ragged). --- */
  .progreso__title,
  .noticias__title,
  .piura__title,
  .sector__title { text-align: center; }
  /* Encabezados con flechas de slider: apilar y centrar (título arriba, nav abajo). */
  .noticias__head,
  .piura__head { flex-direction: column; align-items: center; text-align: center; }
  .piura__kicker { justify-content: center; }
  .noticias__head .slider-nav,
  .piura__head .slider-nav { justify-content: center; }
  /* Sector: lema centrado y acotado. */
  .sector__lead { text-align: center; margin-inline: auto; }
  /* Card "Nuestro Progreso": cuerpo centrado (la foto ya va arriba apilada). */
  .progreso-card__body { text-align: center; }
  .progreso-card__stats .stat { text-align: center; }
  /* Galería del home: en cel, slider horizontal (el bento deja huecos feos). */
  .galeria__grid {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 0.85rem;
    min-height: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 0.4rem;
  }
  .galeria__item { aspect-ratio: 4/3; scroll-snap-align: start; }
  .galeria__item--big { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .site-footer__grid { grid-template-columns: 1fr; }
  /* Cifra de inversión: tamaño contenido en cel (no el mega del landing). */
  .sector__amount { flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.5rem; }
  .sector__value {
    font-size: clamp(1.75rem, 5vw + 0.4rem, 2.5rem);
    white-space: normal;
    overflow-wrap: break-word;
  }
  /* Stats de "Nuestro Progreso": apilar (mismo patrón que .interna-stats). */
  .progreso-card__stats { grid-template-columns: 1fr; }
  .progreso-card__stats .stat { padding: 0.9rem 0 0; }
  .progreso-card__stats .stat:first-child { padding-top: 0; }
  .progreso-card__stats .stat + .stat { border-left: 0; border-top: 1px solid var(--color-border); }
}

/* Lightbox de video (noticiero / prepárate) ------------------------------- */
.video-modal { position: fixed; inset: 0; z-index: var(--z-modal-video); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.video-modal__overlay { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.9); backdrop-filter: blur(3px); }
.video-modal__dialog { position: relative; width: min(1000px, 100%); }
.video-modal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close:hover { background: rgba(255, 255, 255, 0.3); }

/* Botón de cerrar unificado (video + fotos): esquina fija del viewport,
   siempre alcanzable, respeta el notch. */
.video-modal__close,
.foto-modal__close {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  z-index: 3;
}
.video-modal__close:hover,
.foto-modal__close:hover { background: rgba(255, 255, 255, 0.32); }

/* Lightbox de fotos (galerías home + ejes) -------------------------------- */
/* Señal de que la foto es clickeable. */
.galeria__item img,
.interna-galeria__item img { cursor: zoom-in; }
.foto-modal { position: fixed; inset: 0; z-index: var(--z-modal-video); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.foto-modal__overlay { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.92); backdrop-filter: blur(3px); }
.foto-modal__dialog { position: relative; display: flex; align-items: center; justify-content: center; width: min(1200px, 100%); height: 100%; }
.foto-modal__stage { position: relative; margin: 0; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.foto-modal__img { max-width: min(1100px, 92vw); max-height: 84vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.foto-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
  z-index: 2;
}
.foto-modal__nav:hover { background: rgba(255, 255, 255, 0.32); }
.foto-modal__nav--prev { left: 0; }
.foto-modal__nav--next { right: 0; }
.foto-modal__counter { position: absolute; bottom: -0.25rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; font-weight: var(--weight-strong); letter-spacing: 0.03em; }
@media (max-width: 640px) {
  .foto-modal { padding: 0.75rem; }
  .foto-modal__nav { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.22); }
}
