/* RADAR ANTÁRTIDA V0.9.32 — Atlas Documental integral
   Capa visual plana, editorial y de alto contraste. */
:root {
  --atlas-ink: #071c28;
  --atlas-deep: #03131d;
  --atlas-teal: #0b817e;
  --atlas-teal-dark: #075f61;
  --atlas-lime: #b7df31;
  --atlas-paper: #f6f7f5;
  --atlas-white: #ffffff;
  --atlas-mist: #e8edef;
  --atlas-rule: #aebdc3;
  --atlas-muted: #4d646f;
  --atlas-sand: #e3b54f;
}

.turnstile-holder {
  min-height: 66px;
  margin: 12px 0;
  color: var(--atlas-muted, #516773);
  font-size: .875rem;
}

html { scroll-behavior: smooth; }
body {
  background: var(--atlas-paper);
  color: var(--atlas-ink);
}

/* Sin burbujas: todos los controles y contenedores usan geometría editorial. */
:is(button, input, select, textarea, summary, .btn, .language, .header-support,
  .status, .notice, .filters, .signal, .opp, .data-card, .country-card,
  .gateway-card, .future-card, .travel-card, .map-explorer, .disclosure,
  .entry, .profile, .reading, .newsletter-shell, .weather-details,
  .compact-limit-control, .compact-country-picker, .compact-country-toggle) {
  border-radius: 0 !important;
  box-shadow: none !important;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--atlas-lime) !important;
  outline-offset: 3px;
}

/* Cabecera documental. */
.topbar {
  background: var(--atlas-deep);
  border-bottom: 1px solid #35505b;
}
.topbar :is(.brand, .brand-caption, .header-support, .language, .site-menu summary) {
  color: #fff !important;
}
.header-support, .language, .site-menu summary {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.58) !important;
}
.quick-nav {
  background: #fff;
  border-bottom: 1px solid var(--atlas-rule);
}
.quick-nav a {
  color: var(--atlas-ink) !important;
  border-radius: 0 !important;
}

/* Portada: fotografía panorámica, tipografía editorial y controles rectos. */
body.home-master-v1 .hero {
  min-height: 690px;
  background: var(--atlas-deep);
}
.hm-masthead {
  width: min(1560px, calc(100% - 72px));
  min-height: 76px;
  border-bottom-color: rgba(255,255,255,.48);
}
.hm-slide-photo {
  background-size: min(67vw, 1180px) auto;
  background-position: right center;
}
.hm-slide-photo::before {
  width: 58%;
  background: linear-gradient(90deg, #03131d 0%, rgba(3,19,29,.96) 61%, rgba(3,19,29,.62) 83%, transparent 100%);
}
.hm-hero-shade {
  background: linear-gradient(0deg, rgba(3,19,29,.86), transparent 46%);
}
.hm-mast-actions .header-support,
.hm-mast-actions .language,
.hm-mast-actions .site-menu summary,
.hm-primary-cta {
  border-radius: 0 !important;
  backdrop-filter: none !important;
}
.hm-primary-cta {
  min-width: 248px;
  border: 0;
  border-bottom: 2px solid #fff;
  padding: 13px 0;
  background: transparent;
}
.hm-primary-cta:hover {
  background: transparent;
  color: var(--atlas-lime) !important;
  border-bottom-color: var(--atlas-lime);
}
body.home-master-v1 .hero-copy {
  width: min(1560px, calc(100% - 72px));
  padding: 86px 0 165px;
}
body.home-master-v1 .hero h1 > span {
  font-size: clamp(4.2rem, 8.5vw, 8rem);
}
body.home-master-v1 .hero h1 > small {
  max-width: 58ch;
}
body.home-master-v1 .hero > .weather-band {
  background: rgba(3,19,29,.9);
  border-top: 1px solid rgba(255,255,255,.45);
  backdrop-filter: none;
}
.hm-instrument { border-color: rgba(255,255,255,.28) !important; }

/* Puertas principales al estilo de las placas de la referencia C. */
.hm-entry-section {
  max-width: 1560px;
  padding: 38px 36px 44px;
  background: var(--atlas-paper);
}
.hm-entry-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  text-align: left;
  border-bottom: 1px solid var(--atlas-rule);
  padding-bottom: 18px;
}
.hm-entry-head h2 { margin: 0; }
.hm-entry-head p { margin: 0 0 5px; }
.hm-entry-section .entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--atlas-rule);
  border: 1px solid var(--atlas-rule);
}
.hm-entry-section .entry {
  min-height: 270px;
  padding: 30px;
  border: 0;
  color: #fff;
  background: var(--atlas-deep);
  transform: none !important;
}
.hm-entry-section .entry::after { display: none !important; }
.hm-entry-section .entry::before {
  background:
    linear-gradient(90deg, rgba(3,19,29,.96) 0%, rgba(3,19,29,.68) 52%, rgba(3,19,29,.22) 100%),
    url('/assets/hero-ice-clean.webp') center / cover !important;
}
.hm-entry-section .entry:nth-child(even)::before {
  background:
    linear-gradient(90deg, rgba(3,19,29,.94) 0%, rgba(3,19,29,.64) 54%, rgba(3,19,29,.18) 100%),
    url('/assets/hero-irizar-clean.webp') center / cover !important;
}
.hm-entry-section .entry-icon {
  top: 27px;
  left: 30px;
  font-family: ui-monospace, monospace;
  font-size: .8rem;
  color: var(--atlas-lime);
}
.hm-entry-section .entry strong {
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  line-height: .95;
}
.hm-entry-section .entry small {
  color: #f0f5f6;
  font-size: .95rem;
}
.hm-entry-section .entry > span:last-child {
  width: auto;
  height: auto;
  border: 0;
  border-bottom: 1px solid #fff;
  padding: 0 0 4px 20px;
}

/* Indicadores y buscador: bandas técnicas, sin cápsulas. */
body.home-master-v1 .kpis,
body.home-master-v1 .search-strip,
body.home-master-v1 main > .section,
body.home-master-v1 main > .method-band,
body.home-master-v1 main > aside {
  max-width: 1280px;
}
body.home-master-v1 .kpis {
  margin-top: 0;
  border: 1px solid var(--atlas-rule);
  border-width: 1px 0;
  background: #fff;
}
body.home-master-v1 .kpis a {
  border-radius: 0 !important;
  border-right: 1px solid var(--atlas-rule);
}
body.home-master-v1 .kpis a:last-child { border-right: 0; }
.search-strip { background: var(--atlas-paper); }
.search-row input, .search-row button { min-height: 46px; }

/* Sistema de secciones: página documental a ancho controlado. */
.home-master-v1 .section {
  position: relative;
  margin-inline: calc(50% - 50vw);
  padding: clamp(52px, 6vw, 82px) max(36px, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--atlas-rule);
  overflow: hidden;
  background: var(--atlas-paper);
  color: var(--atlas-ink);
}
.home-master-v1 .section.soft { background: var(--atlas-mist); }
.home-master-v1 .section-head {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  column-gap: clamp(38px, 7vw, 104px);
  align-items: end;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--atlas-rule);
}
.home-master-v1 .section-head .overline { grid-column: 1 / -1; }
.home-master-v1 .section-head h2,
.home-master-v1 .newsletter-copy h2,
.profile h1, .reading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.035em;
}
.home-master-v1 .section-head h2 {
  max-width: 16ch;
  font-size: clamp(2.55rem, 4.5vw, 4.7rem);
  line-height: .98;
  color: var(--atlas-ink);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.home-master-v1 .section-intro {
  max-width: 68ch;
  color: var(--atlas-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}
.home-master-v1 .overline,
.profile > .overline, .reading > .overline {
  color: var(--atlas-teal-dark);
  letter-spacing: .18em;
}
.home-master-v1 .overline::before,
.profile > .overline::before, .reading > .overline::before {
  content: "";
  display: inline-block;
  width: 24px;
  border-top: 2px solid var(--atlas-teal);
  margin-right: 12px;
  transform: translateY(-3px);
}

/* Todos los módulos se convierten en placas y filas, no tarjetas flotantes. */
.home-master-v1 :is(.card-grid, .signal-grid, .country-grid, .gateway-grid,
  .future-line, .travel-grid, .service-grid, .opp-list) {
  gap: 1px;
  border: 1px solid var(--atlas-rule);
  background: var(--atlas-rule);
}
.home-master-v1 :is(.data-card, .signal, .opp, .country-card, .gateway-card,
  .future-card, .travel-card, .provider-card) {
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--atlas-ink) !important;
  box-shadow: none !important;
}
.home-master-v1 :is(.data-card, .signal, .opp, .country-card, .gateway-card,
  .future-card, .travel-card, .provider-card) :is(h3, h4, p, small, strong) {
  color: inherit !important;
}
.home-master-v1 :is(.data-card, .signal, .opp, .country-card, .gateway-card,
  .future-card, .travel-card, .provider-card) :is(.eyebrow, .muted) {
  color: var(--atlas-muted) !important;
}
.source, .text-link, .back {
  color: var(--atlas-teal-dark) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.source:hover, .text-link:hover, .back:hover { color: var(--atlas-ink) !important; }

/* Radar global: contraste corregido y lectura horizontal en escritorio. */
.home-master-v1 #radar-global {
  background: #fff;
  color: var(--atlas-ink);
}
.global-radar-head { align-items: start; }
.global-radar-status,
.global-radar-stats,
.global-radar-toolbar {
  border-radius: 0 !important;
}
.global-radar-status {
  background: var(--atlas-mist) !important;
  border: 1px solid var(--atlas-rule) !important;
  color: var(--atlas-ink) !important;
}
.global-radar-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--atlas-ink);
  background: var(--atlas-ink) !important;
}
.global-radar-stats > * {
  border-right: 1px solid #47606b !important;
  color: #fff !important;
}
.global-radar-stats > *:last-child { border-right: 0 !important; }
.global-radar-stats strong { color: var(--atlas-lime) !important; }
.global-radar-filters, .global-radar-toolbar, .filters {
  border: 1px solid var(--atlas-rule) !important;
  background: var(--atlas-mist) !important;
  color: var(--atlas-ink) !important;
}
.global-radar-filters button,
.global-radar-toolbar button,
.filters button {
  border: 0 !important;
  border-right: 1px solid var(--atlas-rule) !important;
  background: #fff !important;
  color: var(--atlas-ink) !important;
}
.global-radar-filters button[aria-pressed="true"],
.filters button[aria-pressed="true"] {
  background: var(--atlas-ink) !important;
  color: #fff !important;
}
.global-radar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--atlas-rule);
  background: var(--atlas-rule);
}
.global-radar-grid .signal {
  min-height: 290px;
  padding: 24px;
}
.global-tracking-card {
  background: var(--atlas-ink) !important;
  color: #fff !important;
}
.global-tracking-card :is(h3, p, a, small) { color: #fff !important; }
.global-news-badge, .status {
  border-radius: 0 !important;
  border: 1px solid currentColor !important;
  background: transparent !important;
}

/* Atlas unificado: mapa, bases y buques en una sola sección legible. */
.home-master-v1 #base-antartica {
  background: var(--atlas-mist);
  color: var(--atlas-ink);
}
.home-master-v1 #base-antartica :is(h2, h3, p, label, .section-intro) {
  color: var(--atlas-ink);
}
.map-explorer {
  border: 1px solid var(--atlas-rule) !important;
  background: #fff !important;
  color: var(--atlas-ink) !important;
  overflow: hidden;
}
.map-head {
  border-bottom: 1px solid var(--atlas-rule);
  background: #fff;
}
.map-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
  background: #fff;
}
.map-canvas { background: var(--atlas-deep); }
.map-sidebar {
  border-left: 1px solid var(--atlas-rule);
  background: #fff;
  color: var(--atlas-ink);
}
.map-places li {
  border-bottom: 1px solid var(--atlas-rule);
  color: var(--atlas-ink);
}
.map-places :is(strong, p, small) { color: var(--atlas-ink) !important; }
.map-number { color: var(--atlas-teal-dark) !important; }
.map-credit, .map-links {
  background: var(--atlas-mist) !important;
  color: var(--atlas-ink) !important;
  border-top: 1px solid var(--atlas-rule);
}
.map-controls { border-bottom: 1px solid var(--atlas-rule); }
.map-marker circle { fill: var(--atlas-lime); stroke: var(--atlas-ink); }
.map-marker text { fill: var(--atlas-ink); }
.disclosure {
  border: 0 !important;
  border-top: 1px solid var(--atlas-rule) !important;
  border-bottom: 1px solid var(--atlas-rule) !important;
  background: transparent !important;
  color: var(--atlas-ink) !important;
}
.disclosure summary {
  min-height: 56px;
  padding: 16px 0 !important;
  background: transparent !important;
  color: var(--atlas-ink) !important;
}
.disclosure[open] summary { border-bottom: 1px solid var(--atlas-rule); }

/* Viajes y futuro: únicas placas oscuras, con contraste controlado. */
.home-master-v1 #viajar,
.home-master-v1 #futuro {
  color: #fff;
  background-color: var(--atlas-deep);
  background-image:
    linear-gradient(90deg, rgba(3,19,29,.98) 0%, rgba(3,19,29,.88) 48%, rgba(3,19,29,.54) 100%),
    url('/assets/hero-ice-clean.webp');
  background-size: cover;
  background-position: center;
}
.home-master-v1 #futuro {
  background-image:
    linear-gradient(90deg, rgba(3,19,29,.98) 0%, rgba(3,19,29,.9) 54%, rgba(3,19,29,.6) 100%),
    url('/assets/hero-irizar-clean.webp');
}
.home-master-v1 #viajar .section-head,
.home-master-v1 #futuro .section-head { border-bottom-color: rgba(255,255,255,.42); }
.home-master-v1 #viajar :is(h2, h3, p, .section-intro, .overline),
.home-master-v1 #futuro :is(h2, h3, h4, p, .section-intro, .overline) { color: #fff; }
.home-master-v1 #viajar :is(.travel-card, .disclosure),
.home-master-v1 #futuro .future-card {
  background: rgba(3,19,29,.88) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.38) !important;
  backdrop-filter: none !important;
}
.home-master-v1 #viajar .disclosure summary { color: #fff !important; }
.home-master-v1 #viajar .source,
.home-master-v1 #futuro .source { color: var(--atlas-lime) !important; }
.home-master-v1 #futuro .status {
  color: #fff !important;
  border-color: var(--atlas-sand) !important;
}

/* Botones editoriales. */
.btn {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--atlas-ink) !important;
  background: transparent !important;
  color: var(--atlas-ink) !important;
}
.btn.primary {
  background: var(--atlas-ink) !important;
  color: #fff !important;
}
.btn:hover {
  background: var(--atlas-teal-dark) !important;
  border-color: var(--atlas-teal-dark) !important;
  color: #fff !important;
}
#viajar .btn, #futuro .btn {
  border-color: #fff !important;
  color: #fff !important;
}

/* Newsletter, método y pie. */
.home-master-v1 .newsletter-section {
  background: #fff;
  color: var(--atlas-ink);
}
.newsletter-shell {
  border: 1px solid var(--atlas-rule) !important;
  background: var(--atlas-paper) !important;
}
.newsletter-form input,
.newsletter-form button { min-height: 48px; }
.method-band { border-radius: 0 !important; }
footer {
  background: var(--atlas-deep);
  border-top: 4px solid var(--atlas-teal);
}
footer :is(p, a, .brand) { color: #fff !important; }

/* Páginas internas: misma identidad C, no una estética separada. */
body:not(.home-master-v1) main {
  max-width: none;
  padding: clamp(52px, 7vw, 92px) max(28px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(180deg, rgba(246,247,245,.97), rgba(255,255,255,.98)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(11,129,126,.05) 80px);
  border-bottom: 1px solid var(--atlas-rule);
}
.profile, .reading {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.profile h1, .reading h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: .98;
  color: var(--atlas-ink);
}
.profile .lead, .reading .lead {
  max-width: 68ch;
  color: var(--atlas-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.profile dl {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) 1fr;
  border-top: 1px solid var(--atlas-rule);
}
.profile dt, .profile dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--atlas-rule);
}
.profile .section, .reading section {
  margin-top: 34px;
  padding: 28px 0;
  border: 1px solid var(--atlas-rule);
  border-width: 1px 0;
  background: transparent;
}
.profile .notice, .reading .notice {
  padding: 16px;
  border: 1px solid var(--atlas-rule);
  background: var(--atlas-mist);
  color: var(--atlas-ink);
}

/* Evita cualquier residuo circular decorativo heredado. */
.entry::after,
.future-card::before,
.country-card::before,
.gateway-card::before,
.data-card::before { border-radius: 0 !important; }

@media (min-width: 1181px) {
  body.home-master-v1 .hero { min-height: 690px; }
  .home-master-v1 .global-radar-head .section-head { grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.1fr); }
  .home-master-v1 #radar-global .section-head h2 { max-width: 15ch; }
}

@media (max-width: 980px) {
  .home-master-v1 .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-master-v1 .section-head .overline { grid-column: 1; }
  .global-radar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .map-layout { grid-template-columns: 1fr; }
  .map-sidebar { border-left: 0; border-top: 1px solid var(--atlas-rule); }
}

@media (max-width: 767px) {
  body.home-master-v1 .hero { min-height: 690px; }
  .hm-masthead { width: calc(100% - 32px); }
  .hm-mast-actions .language,
  .hm-mast-actions .site-menu summary { border-radius: 0 !important; }
  body.home-master-v1 .hero-copy {
    width: calc(100% - 44px) !important;
    padding-top: 270px;
  }
  .hm-slide-photo::before {
    width: 100%;
    background: linear-gradient(180deg, rgba(3,19,29,.16) 0%, rgba(3,19,29,.18) 34%, rgba(3,19,29,.76) 57%, #03131d 82%);
  }
  .hm-entry-section { padding: 30px 18px 34px; }
  .hm-entry-head { grid-template-columns: 1fr; gap: 6px; }
  .hm-entry-section .entry-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    overflow: visible !important;
  }
  .hm-entry-section .entry { min-height: 210px; }
  .home-master-v1 .section {
    padding: 38px max(20px, env(safe-area-inset-left));
  }
  .home-master-v1 .section-head h2 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1;
  }
  .home-master-v1 .section-intro { font-size: .95rem; }
  .global-radar-stats { grid-template-columns: repeat(2, 1fr); }
  .global-radar-stats > *:nth-child(2) { border-right: 0 !important; }
  .global-radar-grid { grid-template-columns: 1fr; }
  .global-radar-grid .signal { min-height: 0; }
  .home-master-v1 :is(.card-grid, .signal-grid, .country-grid, .gateway-grid,
    .future-line, .travel-grid, .service-grid, .opp-list) {
    display: grid;
    grid-template-columns: 1fr;
  }
  .map-sidebar { min-width: 0; }
  body:not(.home-master-v1) main {
    padding: 40px max(20px, env(safe-area-inset-left));
  }
  .profile h1, .reading h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }
  .profile dl { grid-template-columns: 1fr; }
  .profile dt { padding-bottom: 0; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .hm-entry-section .entry,
  .home-master-v1 #viajar,
  .home-master-v1 #futuro { background: Canvas; color: CanvasText; }
}

/* V0.9.32A — QA visual posterior a la publicación de prueba.
   Elimina redondeados residuales heredados y corrige proporciones de PC. */
.home-master-v1 :is(.kpis, .radar-live, .global-news-card, .newsletter-form,
  .table-wrap, .route-art, .empty, .weather-panel, .site-menu nav, .nav-link),
.home-master-v1 .entry-icon,
.home-master-v1 .entry > span:last-child,
body:not(.home-master-v1) :is(.newsletter-form, .table-wrap, .route-art,
  .empty, .weather-panel, .site-menu nav, .nav-link) {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.home-master-v1 .entry-icon {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
}
.home-master-v1 .entry > span:last-child {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  padding: 0 0 3px 18px !important;
}
.home-master-v1 .kpis { overflow: hidden; }
.home-master-v1 .radar-live {
  min-width: 172px;
  padding: 12px 14px;
  border: 1px solid var(--atlas-rule);
  background: #fff;
}
.home-master-v1 .global-radar-head {
  gap: 24px;
}
.home-master-v1 #radar-global .section-head {
  flex: 1 1 auto;
  max-width: 1000px;
  grid-template-columns: minmax(480px, 1.08fr) minmax(380px, .92fr);
  column-gap: 48px;
}
.home-master-v1 #radar-global .section-head h2 {
  width: 100%;
  max-width: 18ch;
  font-size: clamp(3rem, 4.25vw, 3.7rem);
}
.home-master-v1 .global-news-card { overflow: hidden; }

body.compact-home #paises .country-grid {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch;
}
.home-master-v1 .map-number {
  flex: 0 0 28px;
  width: 28px;
  min-width: 28px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 1100px) {
  .home-master-v1 #radar-global .section-head {
    grid-template-columns: 1fr;
  }
  .home-master-v1 #radar-global .section-head h2 { max-width: 14ch; }
}

@media (max-width: 767px) {
  body.compact-home #paises .country-grid {
    grid-template-columns: 1fr !important;
  }
  .home-master-v1 .global-radar-head { display: block; }
  .home-master-v1 .radar-live {
    position: static;
    width: 100%;
    margin: 0 0 18px;
  }
  .home-master-v1 #radar-global .section-head h2 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
}

/* V0.9.33 — Atlas fotográfico y QA de escritorio.
   Mantiene la identidad editorial C y corrige desalineaciones y contraste. */

/* Cada puerta usa una fotografía propia: evita repetición y acerca la portada
   al lenguaje de revista documental aprobado. */
.hm-entry-section .entry.hm-card-1::before {
  background:
    linear-gradient(90deg, rgba(3,19,29,.96) 0%, rgba(3,19,29,.66) 54%, rgba(3,19,29,.18) 100%),
    url('/assets/editorial/viaje-pinguino-rompehielos.webp') center / cover !important;
}
.hm-entry-section .entry.hm-card-2::before {
  background:
    linear-gradient(90deg, rgba(3,19,29,.96) 0%, rgba(3,19,29,.65) 54%, rgba(3,19,29,.16) 100%),
    url('/assets/editorial/trabajar-mcmurdo.webp') center 58% / cover !important;
}
.hm-entry-section .entry.hm-card-3::before {
  background:
    linear-gradient(90deg, rgba(3,19,29,.96) 0%, rgba(3,19,29,.62) 54%, rgba(3,19,29,.14) 100%),
    url('/assets/editorial/fauna-colonia-pinguinos.webp') center / cover !important;
}
.hm-entry-section .entry.hm-card-4::before {
  background:
    linear-gradient(90deg, rgba(3,19,29,.96) 0%, rgba(3,19,29,.62) 54%, rgba(3,19,29,.12) 100%),
    url('/assets/editorial/operar-c17-antartida.webp') center / cover !important;
}

/* Placas fotográficas planas: sin burbujas, radios ni marcos flotantes. */
.section-feature,
.atlas-photo-grid figure,
.programs-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0 !important;
  background: var(--atlas-deep);
}
.section-feature {
  height: clamp(230px, 28vw, 370px);
  margin-bottom: 30px;
  border: 1px solid var(--atlas-rule);
}
.section-feature img,
.atlas-photo-grid img,
.programs-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-feature--work img { object-position: center 56%; }
.section-feature--science img { object-position: center 48%; }
.section-feature--operate img { object-position: center 62%; }
.section-feature figcaption,
.atlas-photo-grid figcaption,
.programs-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 11px 14px;
  background: rgba(3,19,29,.88);
  color: #fff;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.atlas-photo-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1px;
  margin-bottom: 32px;
  border: 1px solid var(--atlas-rule);
  background: var(--atlas-rule);
}
.atlas-photo-grid figure { min-height: 270px; }
.atlas-photo-grid figure:first-child img { object-position: center 58%; }
.atlas-photo-grid figure:nth-child(2) img { object-position: center 42%; }
.atlas-photo-grid figure:nth-child(3) img { object-position: center 54%; }

/* Programas: ocupa el espacio antes vacío con una imagen documental. */
.programs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
  grid-template-areas:
    "countries photo"
    "toggle photo";
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 1px;
  border: 1px solid var(--atlas-rule);
  background: var(--atlas-rule);
}
body.compact-home #paises .programs-layout .country-grid {
  grid-area: countries;
  width: 100%;
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.programs-layout > .compact-country-toggle {
  grid-area: toggle;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 54px;
  margin: 0;
  border: 0 !important;
  border-top: 1px solid var(--atlas-rule) !important;
  background: #fff !important;
}
.programs-photo {
  grid-area: photo;
  min-height: 100%;
}
.programs-photo img { object-position: 54% center; }

/* Viajar gana una escena real distinta de la portada. */
.home-master-v1 #viajar {
  background-image:
    linear-gradient(90deg, rgba(3,19,29,.98) 0%, rgba(3,19,29,.88) 48%, rgba(3,19,29,.48) 100%),
    url('/assets/editorial/viaje-polar-star.webp');
}

/* Fila interna común para que estados, subtítulos y fuentes queden alineados. */
@media (min-width: 981px) {
  .home-master-v1 #futuro .future-line { align-items: stretch; }
  .home-master-v1 #futuro .future-card {
    display: grid;
    grid-template-rows: auto minmax(126px, 1fr) minmax(54px, auto) auto minmax(104px, 1fr) auto;
    align-items: start;
    gap: 12px;
    min-height: 100%;
    padding: 24px;
  }
  .home-master-v1 #futuro .future-card > * { margin: 0; }
  .home-master-v1 #futuro .future-card .status {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    text-align: center;
  }
  .home-master-v1 #futuro .future-card .source { align-self: end; }
}

/* Método Radar: contraste explícito, independiente de estilos heredados. */
body.home-master-v1 main > .method-band {
  padding: clamp(46px, 6vw, 72px) max(36px, calc((100vw - 1280px) / 2));
  border-top: 4px solid var(--atlas-teal);
  background: var(--atlas-deep) !important;
  color: #fff !important;
}
.home-master-v1 .method-band .section-head {
  border-bottom-color: rgba(255,255,255,.38);
}
.home-master-v1 .method-band :is(h2, p, .section-intro) {
  color: #fff !important;
}
.home-master-v1 .method-band .overline { color: var(--atlas-lime) !important; }
.home-master-v1 .method-band .btn {
  border-color: #fff !important;
  color: #fff !important;
}
.home-master-v1 .method-band .btn.primary {
  background: #fff !important;
  color: var(--atlas-deep) !important;
}

@media (max-width: 980px) {
  .programs-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "countries"
      "toggle"
      "photo";
  }
  .programs-photo { min-height: 360px; }
  .atlas-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-photo-grid figure:last-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .section-feature { height: 210px; margin-bottom: 22px; }
  .atlas-photo-grid { grid-template-columns: 1fr; }
  .atlas-photo-grid figure:last-child { grid-column: auto; }
  .atlas-photo-grid figure { min-height: 210px; }
  .programs-photo { min-height: 250px; }
  body.compact-home #paises .programs-layout .country-grid {
    grid-template-columns: 1fr !important;
  }
  .section-feature figcaption,
  .atlas-photo-grid figcaption,
  .programs-photo figcaption {
    font-size: .66rem;
    letter-spacing: .05em;
  }
}
