/* Inicio editorial. Cargar despues de evolucion-v6.css. */
.home .hero {
  min-height: 0;
}
/* Conservar la foto completa, sin el recorte ni el zoom del hero global. */
.home .hero-carousel .slide img {
  object-fit: contain;
  object-position: center;
  transform: none;
}
.home .hero-carousel .slide.is-active img {
  animation: none;
}
.home .hero > .container {
  display: block;
  padding-inline: var(--space-lg);
}
.home .hero-content {
  max-width: 700px;
  padding: var(--space-4xl) 0 var(--space-2xl);
  text-align: left;
}
.home .hero-content .emblem-frame {
  --emblem-size: 88px;
  width: var(--emblem-size);
  height: var(--emblem-size);
  margin: 0 0 var(--space-md);
}
.home .hero-emblem { width: 100%; height: 100%; }
.home .hero-flag { display: none; }
.home .hero-content .eyebrow { width: fit-content; }
.home .hero-content h1 {
  max-width: 700px;
  margin-bottom: var(--space-md);
  font-size: var(--text-3xl);
  line-height: 1.04;
  color: var(--marfil);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}
.home .hero-content p.lead {
  max-width: 54ch;
  margin-bottom: var(--space-lg);
  color: var(--marfil);
}
.home .hero-ctas { justify-content: flex-start; }
.home .hero-ctas .btn { min-height: 44px; font-size: var(--text-3sm); }
/* El header heredado usa 1000 y los accesos flotantes 1001. */
.home .mobile-overlay { z-index: 1002; }
.home .mobile-menu { z-index: 1003; }
.home .stat { padding: var(--space-lg) var(--space-md); }
.home .stat .num { font-size: var(--text-2xl); }
.home .stat .label { font-size: var(--text-2sm); color: var(--plata); }

/* Secciones y encabezados compartidos. */
.home .home-life,
.home .home-explore,
.home .home-history { padding-block: var(--space-2xl); scroll-margin-top: var(--space-4xl); }
.home .home-life { background: var(--grafito); color: var(--marfil); color-scheme: dark; }
.home .home-life :is(h2, h3, h4) { text-wrap: balance; }
.home .home-life :is(a, button, video, iframe) { scroll-margin-top: var(--space-4xl); }
.home .home-life :is(a, button) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--focus-ring) 25%, transparent);
}
.home .home-life :is(.home-text-link, .home-social-card, .home-reel-link):focus-visible {
  outline-color: var(--focus-ring);
}
.home .home-life :is(.home-section-heading, .home-reels-heading) > div,
.home .home-life .home-social-copy { min-width: 0; }
.home .home-life :is(.home-feature-copy, .home-social-copy, .home-reel-copy) { overflow-wrap: anywhere; }
.home .home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.home .home-kicker {
  margin: 0 0 var(--space-sm);
  color: var(--plata);
  font-size: var(--text-2sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.home .home-section-heading h2,
.home .home-history h2 {
  margin: 0;
  color: inherit;
  font-size: var(--text-2xl);
  line-height: 1.08;
  text-shadow: none;
}
.home .home-intro {
  max-width: 60ch;
  margin-top: var(--space-md);
  color: var(--plata);
  font-size: var(--text-base);
  line-height: 1.65;
}
.home .home-text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 44px;
  color: inherit;
  font-size: var(--text-3sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rojo);
  text-underline-offset: 0.45em;
  text-decoration-thickness: 2px;
}
.home .home-text-link > span[aria-hidden],
.home .home-social-action > span[aria-hidden],
.home .home-card-action > span[aria-hidden],
.home .home-reel-link > span[aria-hidden] { flex-shrink: 0; font-size: var(--text-md); }
.home .home-text-link:hover { text-decoration-color: currentColor; }
.home :is(.home-text-link, .home-social-card, .home-reel-link, .home-access-card):focus-visible {
  outline: 3px solid var(--rojo);
  outline-offset: 5px;
}

/* Vida del cuartel: carrusel de videos y accesos a los canales institucionales. */
.home .home-life-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-lg);
}
.home .home-feature {
  overflow: hidden;
  border: 1px solid var(--acero);
  background: var(--negro-carbono);
}
.home .home-feature-media { aspect-ratio: 16 / 9; background: var(--negro-carbono); }
.home .home-feature-media:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}
.home .home-feature-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home .home-feature-copy { padding: var(--space-lg); }
.home .home-feature h3,
.home .home-social-card h3,
.home .home-access-card h3 {
  margin: 0;
  color: inherit;
  font-size: var(--text-xl);
  line-height: 1.12;
  text-shadow: none;
}
.home .home-feature-copy > p:not(.home-kicker) {
  color: var(--plata);
  line-height: 1.65;
}
.home .home-feature-copy .home-text-link { margin-top: var(--space-sm); }
.home .home-video-carousel { min-width: 0; }
.home .home-video-carousel .home-feature-copy { min-height: calc(var(--space-5xl) + var(--space-xl)); }
.home .home-video-carousel [data-home-video-slide][hidden],
.home .home-video-controls[hidden] { display: none; }
.home .home-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin-top: var(--space-sm);
}
.home .home-video-actions .home-text-link { margin-top: 0; }
.home .home-video-controls {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--acero);
  border-bottom: 0;
  background: var(--negro-carbono);
}
.home .home-video-label {
  margin: 0 0 var(--space-sm);
  color: var(--marfil);
  font-size: var(--text-3sm);
  font-weight: 600;
}
.home .home-video-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}
.home .home-video-status {
  min-width: 0;
  margin: 0;
  color: var(--plata);
  font-size: var(--text-3sm);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.home .home-video-arrows { display: flex; flex-shrink: 0; gap: var(--space-xs); }
.home .home-video-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--plata-500);
  color: var(--marfil);
  font-size: var(--text-lg);
  line-height: 1;
}
.home .home-video-arrow svg { width: 20px; height: 20px; }
.home .home-video-dots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
}
.home .home-video-dot {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: var(--space-sm);
  border: 1px solid var(--plata-500);
  color: var(--plata);
  font-size: var(--text-3sm);
  font-weight: 600;
  line-height: 1.25;
}
.home :is(.home-video-arrow, .home-video-dot):hover {
  border-color: var(--plata);
  color: var(--marfil);
}
.home .home-video-dot[aria-current="true"] {
  border-color: var(--rojo-texto-oscuro);
  background: var(--rojo-700);
  color: var(--marfil);
}
.home :is(.home-video-arrow, .home-video-dot):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.home .home-social-list { display: grid; align-content: start; gap: var(--space-lg); }
.home .home-social-card {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--acero);
  background: var(--negro-carbono);
  color: var(--marfil);
  transition: border-color var(--duration-base) var(--ease-out);
}
.home .home-social-card > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.home .home-social-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-lg) var(--space-md);
}
.home .home-channel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  color: var(--plata);
  font-size: var(--text-2sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home .home-channel svg { width: 18px; height: 18px; flex-shrink: 0; }
.home .home-social-card h3 { font-size: var(--text-lg); }
.home .home-social-copy p { color: var(--plata); font-size: var(--text-3sm); line-height: 1.6; }
.home .home-social-action,
.home .home-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding-top: var(--space-sm);
  font-size: var(--text-3sm);
  font-weight: 600;
}
.home .home-social-card:hover { border-color: var(--plata); }
.home .home-reels-panel {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--acero);
}
.home .home-reels-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}
.home .home-reels-heading h3 {
  margin: 0;
  color: var(--marfil);
  font-size: var(--text-xl);
  line-height: 1.1;
  text-shadow: none;
}
.home .home-reels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}
.home .home-reel-card {
  overflow: hidden;
  border: 1px solid var(--acero);
  background: var(--negro-carbono);
}
.home .home-reel-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}
.home .home-reel-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.home .home-reel-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--marfil);
}
.home .home-reel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.home .home-reel-poster > span {
  position: absolute;
  inset: auto var(--space-md) var(--space-md) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(13, 13, 13, 0.82);
  color: var(--marfil);
  font-size: var(--text-3sm);
  font-weight: 700;
}
.home .home-reel-poster:hover img {
  opacity: 1;
  transform: scale(1.02);
}
.home .home-reel-copy {
  padding: var(--space-md);
}
.home .home-reel-copy h4 {
  margin: 0 0 var(--space-xs);
  color: var(--marfil);
  font-size: var(--text-md);
  line-height: 1.25;
}
.home .home-reel-copy p {
  margin: 0;
  color: var(--plata);
  font-size: var(--text-3sm);
  line-height: 1.55;
}
.home .home-reel-copy .home-text-link { margin-top: var(--space-sm); }
.home .home-reel-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.home .home-reel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 56px;
  padding: var(--space-sm);
  border: 1px solid var(--acero);
  color: var(--marfil);
  font-size: var(--text-3sm);
  font-weight: 600;
  line-height: 1.25;
  transition: border-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.home .home-reel-link:hover {
  border-color: var(--plata);
  color: var(--link-color);
}
.home .home-reel-poster:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

/* Accesos fotograficos sobre marfil. */
.home .home-explore { background: var(--marfil); color: var(--negro-carbono); }
.home .home-explore .home-kicker { color: var(--bordeaux); }
.home .home-access-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.home .home-access-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-bottom: 2px solid var(--marfil-oscuro);
  transition: border-color var(--duration-base) var(--ease-out);
}
.home .home-access-image { overflow: hidden; aspect-ratio: 4 / 3; background: var(--marfil-oscuro); }
.home .home-access-image img { width: 100%; height: 100%; object-fit: cover; }
.home .home-access-card[href="sumate.html"] img { object-position: 50% 60%; }
.home .home-access-copy { display: flex; flex: 1; flex-direction: column; padding-block: var(--space-lg) var(--space-sm); }
.home .home-card-index { margin-bottom: var(--space-sm); color: var(--bordeaux); font-family: var(--font-mono); font-size: var(--text-2sm); }
.home .home-access-card h3 { font-size: var(--text-lg); }
.home .home-access-copy p { margin-bottom: var(--space-md); color: var(--acero); font-size: var(--text-3sm); line-height: 1.6; }
.home .home-card-action { color: var(--rojo-700); }
.home .home-access-card:hover { border-color: var(--rojo); }

/* Memoria institucional; firma tricolor de tres barras finas. */
.home .home-history { background: var(--negro-carbono); color: var(--marfil); }
.home .home-history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-2xl); }
.home .home-history-photo { margin: 0; }
.home .home-history-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.home .home-history-photo figcaption { margin-top: var(--space-sm); color: var(--plata); font-size: var(--text-2sm); line-height: 1.6; }
.home .home-history-copy { position: relative; padding: var(--space-xl) var(--space-lg); }
.home .home-history-copy::before,
.home .home-history-copy::after {
  content: "";
  position: absolute;
  width: 2px;
  height: var(--space-lg);
  background: var(--verde);
  box-shadow: 5px 0 0 var(--marfil), 10px 0 0 var(--rojo);
  pointer-events: none;
}
.home .home-history-copy::before { top: 0; left: 0; }
.home .home-history-copy::after { right: var(--space-sm); bottom: 0; }
.home .home-history-copy > p:not(.home-kicker) { margin-top: var(--space-lg); color: var(--plata); line-height: 1.7; }
.home .home-history-copy .home-text-link { margin-top: var(--space-md); }

@media (min-width: 981px) {
  .home .hero > .container { padding-inline: var(--space-2xl); }
}
@media (max-width: 1100px) {
  .home .home-life-grid { gap: var(--space-md); }
  .home .home-social-list { gap: var(--space-md); }
  .home .home-social-card { grid-template-columns: 34% minmax(0, 1fr); }
  .home .home-social-copy { padding: var(--space-md); }
  .home .home-reel-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .home-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .home-history-grid { gap: var(--space-lg); }
}
@media (max-width: 760px) {
  .home .hero-content { max-width: 600px; padding-block: var(--space-4xl) var(--space-xl); }
  .home .hero-content h1 { font-size: var(--text-2xl); }
  .home .hero-content .emblem-frame { --emblem-size: 72px; }
  .home .hero-content p.lead { font-size: var(--text-base); }
  .home .stat { padding: var(--space-lg) var(--space-sm); }
  .home .stat .label { letter-spacing: 0.03em; }
  .home .home-life,
  .home .home-explore,
  .home .home-history { padding-block: var(--space-xl); }
  .home .home-section-heading { display: block; margin-bottom: var(--space-lg); }
  .home .home-section-heading > .home-text-link { margin-top: var(--space-md); }
  .home .home-life-grid,
  .home .home-history-grid { grid-template-columns: minmax(0, 1fr); }
  .home .home-social-card { grid-template-columns: 36% minmax(0, 1fr); }
  .home .home-social-list { grid-template-rows: auto; }
  .home .home-reels-heading { display: block; }
  .home .home-reels-heading > .home-text-link { margin-top: var(--space-sm); }
  .home .home-reels-grid,
  .home .home-reel-links { grid-template-columns: minmax(0, 1fr); }
  .home .home-feature-copy { padding: var(--space-lg) var(--space-md); }
  .home .home-video-carousel .home-feature-copy { min-height: 0; }
  .home .home-video-controls { padding-inline: var(--space-md); }
  .home .home-social-action { margin-top: var(--space-xs); }
  .home .home-access-grid { gap: var(--space-lg) var(--space-md); }
  .home .home-history-copy { padding-inline: var(--space-md); }
}
@media (max-width: 420px) {
  .home .hero-ctas { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .home .hero-content .eyebrow { font-size: var(--text-2sm); letter-spacing: 0.12em; }
  .home .home-access-grid { grid-template-columns: minmax(0, 1fr); }
  .home .home-access-copy { padding-top: var(--space-md); }
  .home .home-social-card { grid-template-columns: minmax(0, 1fr); }
  .home .home-social-card > img { height: auto; aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .home .home-life .home-reel-poster:hover img { transform: none; }
  .home .home-social-card,
  .home .home-reel-poster img,
  .home .home-reel-link,
  .home .home-access-card { transition: none; }
}
