/*
 * La Saeta de Quirón
 * Tema hijo de Quark 2.
 */

/*
 * Páginas y listados más amplios.
 *
 * La anchura es fluida, pero se limita a 1600 px para evitar líneas
 * excesivamente largas en monitores muy grandes.
 */
#body-wrapper > .container {
  max-width: min(92vw, 1600px);
}

/*
 * Elimina el efecto de tarjeta o "cajón" de las páginas normales:
 * mismo fondo que el lienzo general, sin sombra ni esquinas redondeadas.
 */
#body-wrapper > .container > .content-item {
  max-width: none;
  background: var(--q2-bg);
  border-radius: 0;
  box-shadow: none;
  padding-inline: clamp(1rem, 3vw, 3rem);
}

:root[data-theme="dark"] #body-wrapper > .container > .content-item {
  box-shadow: none;
}

/* =========================================================
   SAETA: TIPOGRAFÍA LOCAL
   ========================================================= */

/* Nunito Sans variable: cuerpo, navegación e interfaz */

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-variable-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
}

/* Fira Sans: encabezados y texto de presentación */

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/fira-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/fira-sans-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/fira-sans-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/fira-sans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Variables tipográficas globales de Quark 2 */

:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --pico-font-family-display: "Fira Sans", system-ui, sans-serif;
  --pico-font-family-sans-serif: "Nunito Sans", system-ui, sans-serif;
  --pico-font-size: 17px;
}

/* =========================================================
   SAETA: VIAJE DE ATREYU — BASE
   ========================================================= */

body.explorar-viaje {
  background: #191d35;
  color: #f3f4f8;
}

body.explorar-viaje #body-wrapper,
body.explorar-viaje #body-wrapper > .container,
body.explorar-viaje #body-wrapper > .container > .content-item {
  background: #191d35;
  color: #f3f4f8;
}

body.explorar-viaje #body-wrapper > .container > .content-item {
  border: 0;
  box-shadow: none;
}

body.explorar-viaje .content-item h1,
body.explorar-viaje .content-item h2,
body.explorar-viaje .content-item h3,
body.explorar-viaje .content-item h4,
body.explorar-viaje .content-item h5,
body.explorar-viaje .content-item h6 {
  color: #f7f7fb;
}

body.explorar-viaje .content-item p,
body.explorar-viaje .content-item li {
  color: inherit;
}

body.explorar-viaje .content-item a {
  color: #b9d6ff;
}

body.explorar-viaje .content-item a:hover,
body.explorar-viaje .content-item a:focus-visible {
  color: #ffffff;
}

body.explorar-viaje #breadcrumbs,
body.explorar-viaje #breadcrumbs a {
  color: #c8ccda;
}

/* =========================================================
   SAETA: VIAJE DE ATREYU — ACORDEONES
   ========================================================= */

body.explorar-viaje .content-item details {
  margin-block: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(229, 199, 123, 0.45);
  border-radius: 12px;
}

body.explorar-viaje .content-item details > summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  color: #e5c77b;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--pico-font-family-display);
  font-weight: 600;
  line-height: 1.35;
}

body.explorar-viaje .content-item details > summary::marker {
  color: #8ebcff;
}

body.explorar-viaje .content-item details > summary:hover {
  color: #fff0bd;
  background: rgba(255, 255, 255, 0.065);
}

body.explorar-viaje .content-item details > summary:focus-visible {
  color: #ffffff;
  outline: 2px solid #8ebcff;
  outline-offset: -4px;
}

body.explorar-viaje .content-item details[open] > summary {
  border-bottom: 1px solid rgba(229, 199, 123, 0.28);
}

body.explorar-viaje .content-item details > :not(summary) {
  margin-inline: 1.15rem;
}

body.explorar-viaje .content-item details > :not(summary):first-of-type {
  margin-top: 1rem;
}

body.explorar-viaje .content-item details > :not(summary):last-child {
  margin-bottom: 1.15rem;
}

/* =========================================================
   SAETA: VIAJE DE ATREYU — CITAS
   ========================================================= */

body.explorar-viaje .content-item blockquote {
  margin-block: 1.25rem;
  padding: 1rem 1.25rem;
  color: #eef3ff;
  background: rgba(142, 188, 255, 0.09);
  border-inline-start: 4px solid #8ebcff;
  border-radius: 0 10px 10px 0;
}

body.explorar-viaje .content-item blockquote p,
body.explorar-viaje .content-item blockquote li {
  color: inherit;
}

body.explorar-viaje .content-item blockquote > :first-child {
  margin-top: 0;
}

body.explorar-viaje .content-item blockquote > :last-child {
  margin-bottom: 0;
}

/* =========================================================
   SAETA: VIAJE DE ATREYU — LISTAS EN CITAS
   ========================================================= */

body.explorar-viaje .content-item blockquote ul,
body.explorar-viaje .content-item blockquote ol {
  color: inherit;
}

body.explorar-viaje .content-item blockquote li,
body.explorar-viaje .content-item blockquote strong,
body.explorar-viaje .content-item blockquote em {
  color: inherit;
}

body.explorar-viaje .content-item blockquote li::marker {
  color: #e5c77b;
}

/* =========================================================
   SAETA: VIAJE DE ATREYU — LISTAS GENERALES
   ========================================================= */

body.explorar-viaje .content-item ul,
body.explorar-viaje .content-item ol,
body.explorar-viaje .content-item ul li,
body.explorar-viaje .content-item ol li {
  color: #f3f4f8;
}

body.explorar-viaje .content-item ul li::marker,
body.explorar-viaje .content-item ol li::marker {
  color: #e5c77b;
}


/* =========================================================
   SAETA: IDENTIDAD CORPORATIVA Y PORTADA
   ========================================================= */

:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --saeta-navy: #191d35;
  --saeta-navy-deep: #101426;

  --saeta-blue: #8ebcff;
  --saeta-blue-soft: #b9d6ff;
  --saeta-blue-strong: #4e8fd8;

  --saeta-gold: #e5c77b;
  --saeta-gold-dark: #8a6a00;

  --saeta-ivory: #f6f3ea;

  --saeta-title-blue: #8ebcff;
  --saeta-title-gold: #e5c77b;

  /*
   * Selector provisional del color del título:
   * cambiar blue por gold permite comparar ambas versiones.
   */
  --saeta-home-title: var(--saeta-title-blue);
}

body.saeta-home .saeta-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: 0 clamp(2.5rem, 5vw, 5rem);
  background: var(--saeta-navy-deep);
  border: 1px solid rgba(229, 199, 123, 0.22);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(8, 12, 28, 0.22),
    0 2px 10px rgba(8, 12, 28, 0.16);
}

body.saeta-home .saeta-hero__media {
  position: relative;
}

body.saeta-home .saeta-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

body.saeta-home .saeta-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 4rem);
  background:
    linear-gradient(
      90deg,
      rgba(16, 20, 38, 0.96) 0%,
      rgba(25, 29, 53, 0.78) 37%,
      rgba(25, 29, 53, 0.28) 68%,
      rgba(25, 29, 53, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(16, 20, 38, 0.78) 0%,
      rgba(16, 20, 38, 0) 56%
    );
}

body.saeta-home .saeta-hero__content {
  width: min(52rem, 66%);
  text-align: left;
}

body.saeta-home .saeta-hero__kicker {
  margin: 0 0 0.65rem;
  color: var(--saeta-gold);
  font-family: var(--pico-font-family-display);
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.saeta-home .saeta-hero h1 {
  margin: 0;
  color: var(--saeta-home-title);
  font-family: var(--pico-font-family-display);
  font-size: clamp(2.4rem, 5.5vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-align: left;
  text-wrap: balance;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(142, 188, 255, 0.16);
}

body.saeta-home .saeta-hero__lead {
  max-width: 46rem;
  margin: clamp(0.9rem, 1.8vw, 1.35rem) 0 0;
  color: var(--saeta-ivory);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 450;
  line-height: 1.5;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

@media (max-width: 760px) {
  body.saeta-home .saeta-hero {
    border-radius: 14px;
  }

  body.saeta-home .saeta-hero__overlay {
    position: static;
    display: block;
    padding: 1.4rem 1.25rem 1.65rem;
    background: var(--saeta-navy);
  }

  body.saeta-home .saeta-hero__content {
    width: 100%;
  }

  body.saeta-home .saeta-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.25rem);
  }

  body.saeta-home .saeta-hero__lead {
    font-size: 1rem;
  }
}

/* =========================================================
   SAETA: PORTADA A PANTALLA COMPLETA
   Ajuste posterior al primer prototipo.
   ========================================================= */

/* El frontispicio comienza arriba, sin el espacio reservado
   por el encabezado fijo de Quark 2. */
body.saeta-home main#start,
body.saeta-home #body-wrapper,
body.saeta-home #body-wrapper.section {
  margin-top: 0;
  padding-top: 0 !important;
}

/* Conserva una anchura cómoda para el texto normal,
   pero permite que el hero se desborde hasta los bordes. */
body.saeta-home #body-wrapper > .container {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

body.saeta-home #body-wrapper > .container > .content-item {
  width: min(92vw, 1600px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 3rem);
}

/* Barra de navegación superpuesta al frontispicio. */
body.saeta-home #header {
  position: absolute !important;
  inset: 0 0 auto;
  z-index: 1000;
  color: var(--saeta-ivory);
  background: rgba(16, 20, 38, 0.58);
  border-bottom: 1px solid rgba(229, 199, 123, 0.22);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

body.saeta-home #header a,
body.saeta-home #header button,
body.saeta-home #header .navigation a,
body.saeta-home #header .dropmenu a {
  color: var(--saeta-ivory) !important;
}

body.saeta-home #header svg {
  color: inherit;
  fill: currentColor;
}

body.saeta-home #header .active > a,
body.saeta-home #header a:hover,
body.saeta-home #header a:focus-visible {
  color: #ffffff !important;
  background: rgba(142, 188, 255, 0.16);
}

/* Hero de borde a borde. */
body.saeta-home .saeta-hero {
  width: 100vw;
  max-width: none;
  min-height: clamp(560px, 42.105vw, 800px);
  aspect-ratio: 19 / 8;
  margin:
    0
    calc(50% - 50vw)
    clamp(3rem, 6vw, 6rem);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.saeta-home .saeta-hero__media,
body.saeta-home .saeta-hero__media img {
  width: 100%;
  height: 100%;
}

body.saeta-home .saeta-hero__media img {
  object-fit: cover;
  object-position: center;
}

body.saeta-home .saeta-hero__overlay {
  padding:
    clamp(7rem, 10vw, 10rem)
    clamp(1.5rem, 7vw, 8rem)
    clamp(2.5rem, 6vw, 5rem);
}

body.saeta-home .saeta-hero__content {
  width: min(54rem, 64%);
}

/* En móvil se mantiene la imagen completa y el texto pasa debajo,
   evitando un recorte destructivo del panorama. */
@media (max-width: 760px) {
  body.saeta-home #header {
    position: relative !important;
    background: var(--saeta-navy);
  }

  body.saeta-home .saeta-hero {
    min-height: 0;
    aspect-ratio: auto;
    margin-bottom: 2.5rem;
  }

  body.saeta-home .saeta-hero__media,
  body.saeta-home .saeta-hero__media img {
    height: auto;
  }

  body.saeta-home .saeta-hero__media img {
    object-fit: contain;
  }
}

/* =========================================================
   SAETA: AJUSTES DEL FRONTISPICIO
   Barra sólida, submenú legible y cuerpo ampliado.
   ========================================================= */

/* Barra superior sólida. */
body.saeta-home #header {
  background: var(--saeta-navy) !important;
  border-bottom: 1px solid rgba(229, 199, 123, 0.38);
  box-shadow: 0 2px 12px rgba(8, 12, 28, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Desplegable de Explorar. */
body.saeta-home #header .dropmenu ul ul {
  background: var(--saeta-navy-deep) !important;
  border: 1px solid rgba(229, 199, 123, 0.34);
  box-shadow: 0 14px 32px rgba(8, 12, 28, 0.42);
}

body.saeta-home #header .dropmenu ul ul li,
body.saeta-home #header .dropmenu ul ul a {
  background: transparent !important;
}

body.saeta-home #header .dropmenu ul ul a {
  color: var(--saeta-ivory) !important;
}

body.saeta-home #header .dropmenu ul ul a:hover,
body.saeta-home #header .dropmenu ul ul a:focus-visible {
  color: #ffffff !important;
  background: rgba(142, 188, 255, 0.16) !important;
}

/* Texto general de la landing, después del frontispicio. */
body.saeta-home .content-item > .saeta-hero ~ p,
body.saeta-home .content-item > .saeta-hero ~ ul,
body.saeta-home .content-item > .saeta-hero ~ ol,
body.saeta-home .content-item > .saeta-hero ~ blockquote {
  font-size: clamp(1.08rem, 0.35vw + 1rem, 1.2rem);
  line-height: 1.72;
}

/* Algo más de presencia para los epígrafes. */
body.saeta-home .content-item > h2 {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  font-size: clamp(1.85rem, 2.5vw, 2.55rem);
}

body.saeta-home .content-item > h3 {
  font-size: clamp(1.3rem, 1.7vw, 1.65rem);
}

/* =========================================================
   SAETA: AFINADO DE LEGIBILIDAD
   Capa más clara y tipografía ampliada.
   ========================================================= */

/*
 * Se conserva una protección gradual bajo el texto,
 * pero se deja respirar mucho más la imagen original.
 */
body.saeta-home .saeta-hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(16, 20, 38, 0.72) 0%,
      rgba(25, 29, 53, 0.54) 37%,
      rgba(25, 29, 53, 0.18) 68%,
      rgba(25, 29, 53, 0.03) 100%
    ),
    linear-gradient(
      0deg,
      rgba(16, 20, 38, 0.52) 0%,
      rgba(16, 20, 38, 0.08) 55%,
      rgba(16, 20, 38, 0) 78%
    );
}

/* Navegación principal algo mayor. */
body.saeta-home #header .navigation > ul > li > a,
body.saeta-home #header .dropmenu > ul > li > a {
  font-size: 1.08rem;
  font-weight: 550;
}

/* También aumenta ligeramente el desplegable. */
body.saeta-home #header .dropmenu ul ul a {
  font-size: 1.02rem;
  line-height: 1.4;
}

/* Cuerpo principal de la portada. */
body.saeta-home .content-item > .saeta-hero ~ p,
body.saeta-home .content-item > .saeta-hero ~ ul,
body.saeta-home .content-item > .saeta-hero ~ ol,
body.saeta-home .content-item > .saeta-hero ~ blockquote {
  font-size: clamp(1.16rem, 0.45vw + 1.05rem, 1.3rem);
  line-height: 1.76;
}

/* Las listas heredan el tamaño sin reducirlo internamente. */
body.saeta-home .content-item > .saeta-hero ~ ul li,
body.saeta-home .content-item > .saeta-hero ~ ol li,
body.saeta-home .content-item > .saeta-hero ~ blockquote p,
body.saeta-home .content-item > .saeta-hero ~ blockquote li {
  font-size: inherit;
}


/* =========================================================
   SAETA: FRANJAS EDITORIALES DE LA PORTADA
   ========================================================= */

:root,
:root[data-theme="light"] {
  --saeta-section-base: #fbfbfc;
  --saeta-section-tint: #edf3f9;
  --saeta-section-paper: #f6f3ea;
  --saeta-section-closing: #e7eef7;
  --saeta-section-rule: rgba(25, 29, 53, 0.13);
}

:root[data-theme="dark"] {
  --saeta-section-base: #0d1018;
  --saeta-section-tint: #141c2d;
  --saeta-section-paper: #191b21;
  --saeta-section-closing: #172139;
  --saeta-section-rule: rgba(229, 199, 123, 0.18);
}

/* Cada sección rompe el contenedor de lectura y ocupa todo el ancho. */
body.saeta-home .saeta-section {
  width: 100vw;
  box-sizing: border-box;
  margin-inline: calc(50% - 50vw);
  padding:
    clamp(3.5rem, 6vw, 6.5rem)
    max(4vw, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--saeta-section-rule);
  background: var(--saeta-section-base);
}

/* Anchura de lectura dentro de las franjas. */
body.saeta-home .saeta-section > h2,
body.saeta-home .saeta-section > h3,
body.saeta-home .saeta-section > p,
body.saeta-home .saeta-section > ul,
body.saeta-home .saeta-section > ol,
body.saeta-home .saeta-section > blockquote,
body.saeta-home .saeta-section > figure,
body.saeta-home .saeta-section > nav {
  width: min(88vw, 1180px);
  margin-inline: auto;
  box-sizing: border-box;
}

body.saeta-home .saeta-section > p,
body.saeta-home .saeta-section > ul,
body.saeta-home .saeta-section > ol,
body.saeta-home .saeta-section > blockquote,
body.saeta-home .saeta-section li {
  font-size: clamp(1.18rem, 0.45vw + 1.06rem, 1.32rem);
  line-height: 1.78;
}

body.saeta-home .saeta-section > h2 {
  margin-top: 0;
  margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
  font-size: clamp(2rem, 3vw, 2.85rem);
}

body.saeta-home .saeta-section > h3 {
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

body.saeta-home .saeta-section--tint {
  background: var(--saeta-section-tint);
}

body.saeta-home .saeta-section--paper {
  background: var(--saeta-section-paper);
}

body.saeta-home .saeta-section--closing {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(142, 188, 255, 0.18),
      transparent 34%
    ),
    var(--saeta-section-closing);
}

/* Franja oscura de colaboración humano–CC. */
body.saeta-home .saeta-section--deep {
  color: var(--saeta-ivory);
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(78, 143, 216, 0.26),
      transparent 32%
    ),
    var(--saeta-navy);
  border-top-color: rgba(229, 199, 123, 0.35);
}

body.saeta-home .saeta-section--deep h2,
body.saeta-home .saeta-section--deep h3 {
  color: var(--saeta-gold);
}

body.saeta-home .saeta-section--deep p,
body.saeta-home .saeta-section--deep li,
body.saeta-home .saeta-section--deep strong,
body.saeta-home .saeta-section--deep em {
  color: inherit;
}

/* Imagen central vinculada a UPH. */
body.saeta-home .saeta-feature-figure {
  margin-block: clamp(2.25rem, 5vw, 4.25rem);
}

body.saeta-home .saeta-feature-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid rgba(229, 199, 123, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(16, 20, 38, 0.18);
}

body.saeta-home .saeta-feature-figure figcaption {
  max-width: 62rem;
  margin: 1rem auto 0;
  color: var(--q2-text-muted);
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}

/* Puertas de entrada finales. */
body.saeta-home .saeta-entry-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

body.saeta-home .saeta-entry-points a {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  color: var(--q2-text);
  text-decoration: none;
  background: var(--q2-bg-elev);
  border: 1px solid rgba(78, 143, 216, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(16, 20, 38, 0.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

body.saeta-home .saeta-entry-points a:hover,
body.saeta-home .saeta-entry-points a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--saeta-gold);
  box-shadow: 0 16px 34px rgba(16, 20, 38, 0.16);
}

body.saeta-home .saeta-entry-points strong {
  color: var(--saeta-blue-strong);
  font-family: var(--pico-font-family-display);
  font-size: 1.25rem;
  line-height: 1.25;
}

body.saeta-home .saeta-entry-points span {
  margin-top: 0.7rem;
  color: var(--q2-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

:root[data-theme="dark"] body.saeta-home .saeta-entry-points strong {
  color: var(--saeta-blue);
}

@media (max-width: 760px) {
  body.saeta-home .saeta-section {
    padding:
      3.25rem
      1.25rem;
  }

  body.saeta-home .saeta-section > h2,
  body.saeta-home .saeta-section > h3,
  body.saeta-home .saeta-section > p,
  body.saeta-home .saeta-section > ul,
  body.saeta-home .saeta-section > ol,
  body.saeta-home .saeta-section > blockquote,
  body.saeta-home .saeta-section > figure,
  body.saeta-home .saeta-section > nav {
    width: 100%;
  }

  body.saeta-home .saeta-entry-points {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SAETA: CORRECCIÓN DE GEOMETRÍA DE LA PORTADA
   Elimina huecos y márgenes laterales residuales.
   ========================================================= */

body.saeta-home {
  overflow-x: hidden;
}

body.saeta-home #body-wrapper > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/*
 * En la portada, el artículo deja de actuar como contenedor.
 * La anchura de lectura la gestionan las secciones interiores.
 */
body.saeta-home #body-wrapper > .container > .content-item {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* La primera franja comienza inmediatamente tras la cabecera. */
body.saeta-home .saeta-hero {
  width: 100%;
  margin: 0;
}

/*
 * Ya no es necesario calcular un desbordamiento desde un
 * contenedor estrecho: las franjas ocupan directamente el ancho.
 */
body.saeta-home .saeta-section {
  width: 100%;
  margin: 0;
}


/* =========================================================
   SAETA: ACTITUD INMERSIVA Y BRÚJULA EN TRES EJES
   ========================================================= */

body.saeta-home .saeta-section--attitude {
  position: relative;
  isolation: isolate;
  color: var(--saeta-ivory);
  background:
    linear-gradient(
      110deg,
      rgba(9, 13, 29, 0.72),
      rgba(16, 20, 38, 0.64)
    ),
    url("/SN3_for-web.webp") center center / cover no-repeat;
  border-top-color: rgba(229, 199, 123, 0.34);
}

body.saeta-home .saeta-section--attitude > h2 {
  color: var(--saeta-gold);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

body.saeta-home .saeta-pillar-grid {
  display: grid;
  width: min(92vw, 1380px);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

body.saeta-home .saeta-pillar-card {
  box-sizing: border-box;
  padding: clamp(1.45rem, 2.4vw, 2.2rem);
  border-radius: 16px;
}

body.saeta-home .saeta-pillar-card h3 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.45rem, 1.8vw, 1.8rem);
  line-height: 1.2;
}

body.saeta-home .saeta-pillar-card p,
body.saeta-home .saeta-pillar-card li {
  font-size: clamp(1.05rem, 0.25vw + 1rem, 1.17rem);
  line-height: 1.68;
}

body.saeta-home .saeta-pillar-card > :last-child {
  margin-bottom: 0;
}

body.saeta-home .saeta-pillar-card__lead {
  font-weight: 650;
}

body.saeta-home .saeta-pillar-card--glass {
  color: var(--saeta-ivory);
  background: rgba(9, 14, 31, 0.57);
  border: 1px solid rgba(229, 199, 123, 0.34);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
}

body.saeta-home .saeta-pillar-card--glass h3 {
  color: var(--saeta-blue-soft);
}

body.saeta-home .saeta-pillar-card--glass p,
body.saeta-home .saeta-pillar-card--glass strong,
body.saeta-home .saeta-pillar-card--glass em {
  color: inherit;
}

body.saeta-home .saeta-attitude-manifesto {
  width: min(86vw, 940px);
  margin: clamp(1.6rem, 3vw, 2.5rem) auto 0;
  padding: 1.2rem 1.5rem;
  color: var(--saeta-ivory);
  text-align: center;
  background: rgba(9, 14, 31, 0.55);
  border: 1px solid rgba(142, 188, 255, 0.3);
  border-inline-start-width: 4px;
  border-radius: 12px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

body.saeta-home .saeta-attitude-manifesto p {
  margin: 0;
  color: inherit;
  font-size: clamp(1.08rem, 0.45vw + 1rem, 1.24rem);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   Nuestra brújula
   --------------------------------------------------------- */

body.saeta-home .saeta-section--compass {
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(142, 188, 255, 0.18),
      transparent 32%
    ),
    var(--saeta-section-tint);
}

body.saeta-home .saeta-compass-card {
  color: var(--q2-text);
  background: var(--q2-bg-elev);
  border: 1px solid rgba(78, 143, 216, 0.26);
  box-shadow: 0 14px 34px rgba(16, 20, 38, 0.11);
}

body.saeta-home .saeta-compass-card h3 {
  color: var(--saeta-blue-strong);
}

body.saeta-home .saeta-compass-card ul {
  padding-inline-start: 1.35rem;
}

body.saeta-home .saeta-compass-card li::marker {
  color: var(--saeta-gold-dark);
}

body.saeta-home .saeta-compass-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  color: var(--q2-text);
  background: rgba(229, 199, 123, 0.14);
  border-inline-start: 4px solid var(--saeta-gold-dark);
  border-radius: 0 10px 10px 0;
}

body.saeta-home .saeta-compass-quote p {
  margin: 0;
  color: inherit;
}

/* Elimina la franja residual entre la última sección y el footer. */
body.saeta-home main#start,
body.saeta-home #body-wrapper,
body.saeta-home #body-wrapper.section,
body.saeta-home #body-wrapper > .container,
body.saeta-home #body-wrapper > .container > .content-item {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.saeta-home .saeta-section--closing {
  margin-bottom: 0 !important;
}

body.saeta-home #footer,
body.saeta-home footer {
  margin-top: 0 !important;
}

:root[data-theme="dark"] body.saeta-home .saeta-compass-card h3 {
  color: var(--saeta-blue);
}

:root[data-theme="dark"] body.saeta-home .saeta-compass-card li::marker {
  color: var(--saeta-gold);
}

@media (max-width: 980px) {
  body.saeta-home .saeta-pillar-grid {
    grid-template-columns: 1fr;
    width: min(92vw, 760px);
  }
}

@media (max-width: 760px) {
  body.saeta-home .saeta-section--attitude {
    background-position: center top;
  }

  body.saeta-home .saeta-pillar-grid,
  body.saeta-home .saeta-attitude-manifesto {
    width: 100%;
  }

  body.saeta-home .saeta-pillar-card {
    padding: 1.4rem 1.25rem;
  }
}

/* Ajuste del fondo inmersivo y retirada del manifiesto final. */
body.saeta-home .saeta-section--attitude {
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--saeta-navy-deep);
}

/* Cajas más transparentes para dejar visible el error fértil. */
body.saeta-home .saeta-pillar-card--glass {
  background: rgba(9, 14, 31, 0.34);
  border-color: rgba(229, 199, 123, 0.28);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px) saturate(108%);
  -webkit-backdrop-filter: blur(6px) saturate(108%);
}

/* Con los textos condensados, la sección necesita menos altura. */
body.saeta-home .saeta-section--attitude,
body.saeta-home .saeta-section--compass {
  padding-block: clamp(3rem, 5vw, 5rem);
}

body.saeta-home .saeta-pillar-card p {
  margin-block: 0.65rem;
}


/* =========================================================
   SAETA: HERRAMIENTAS EN DOS COLUMNAS
   ========================================================= */

body.saeta-home .saeta-tools__intro {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

body.saeta-home .saeta-tools__layout {
  display: grid;
  width: min(88vw, 1280px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

body.saeta-home .saeta-tools__figure {
  width: 100%;
  margin: 0;
}

body.saeta-home .saeta-tools__figure img {
  width: 100%;
  height: auto;
}

body.saeta-home .saeta-tools__text ul {
  margin-top: 0;
  padding-inline-start: 1.35rem;
}

body.saeta-home .saeta-tools__text p,
body.saeta-home .saeta-tools__text li {
  font-size: clamp(1.05rem, 0.25vw + 1rem, 1.17rem);
  line-height: 1.65;
}

body.saeta-home .saeta-tools__text li {
  margin-bottom: 0.55rem;
}

body.saeta-home .saeta-tools__text li::marker {
  color: var(--saeta-gold-dark);
}

body.saeta-home .saeta-tools__text > :last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  body.saeta-home .saeta-tools__layout {
    width: min(92vw, 760px);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.saeta-home .saeta-tools__layout {
    width: 100%;
  }
}


/* =========================================================
   SAETA: GENEALOGÍA INTEGRADA Y HERRAMIENTAS ACORDEÓN
   ========================================================= */

/*
 * Dos capas distintas:
 * 1. el oscurecimiento ocupa toda la sección;
 * 2. la imagen utiliza cover y conserva su proporción.
 */
body.saeta-home .saeta-section--attitude {
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: var(--saeta-navy-deep);
}

/* Genealogía integrada bajo los tres pilares. */
body.saeta-home .saeta-genealogy-band {
  width: min(92vw, 1380px);
  box-sizing: border-box;
  margin: clamp(1.25rem, 2.5vw, 2rem) auto 0;
  padding: clamp(1.1rem, 2vw, 1.55rem)
           clamp(1.25rem, 2.5vw, 2rem);
  color: var(--saeta-ivory);
  background: rgba(9, 14, 31, 0.27);
  border: 1px solid rgba(142, 188, 255, 0.26);
  border-radius: 14px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px) saturate(106%);
  -webkit-backdrop-filter: blur(5px) saturate(106%);
}

body.saeta-home .saeta-genealogy-band p {
  margin: 0;
  color: inherit;
  font-size: clamp(1.02rem, 0.25vw + 0.98rem, 1.14rem);
  line-height: 1.65;
}

body.saeta-home .saeta-genealogy-band strong {
  color: var(--saeta-gold);
}

/* ---------------------------------------------------------
   Herramientas
   --------------------------------------------------------- */

body.saeta-home .saeta-tools__layout {
  align-items: start;
}

body.saeta-home .saeta-tools__figure {
  align-self: start;
}

body.saeta-home .saeta-tools__figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

/* El pie anterior ya no existe. */
body.saeta-home .saeta-tools__figure figcaption {
  display: none;
}

body.saeta-home .saeta-tool {
  margin: 0 0 0.72rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(78, 143, 216, 0.25);
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(16, 20, 38, 0.06);
}

body.saeta-home .saeta-tool > summary {
  padding: 0.92rem 1.05rem;
  cursor: pointer;
  color: var(--saeta-blue-strong);
  background: rgba(142, 188, 255, 0.08);
  font-family: var(--pico-font-family-display);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
}

body.saeta-home .saeta-tool > summary::marker {
  color: var(--saeta-gold-dark);
}

body.saeta-home .saeta-tool > summary:hover {
  color: var(--saeta-navy);
  background: rgba(142, 188, 255, 0.16);
}

body.saeta-home .saeta-tool[open] > summary {
  border-bottom: 1px solid rgba(78, 143, 216, 0.2);
}

body.saeta-home .saeta-tool > p {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  color: var(--q2-text);
  font-size: 1.04rem;
  line-height: 1.6;
}

body.saeta-home .saeta-tools__closing {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  background: rgba(229, 199, 123, 0.12);
  border-inline-start: 4px solid var(--saeta-gold-dark);
  border-radius: 0 10px 10px 0;
}

:root[data-theme="dark"] body.saeta-home .saeta-tool {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(142, 188, 255, 0.2);
}

:root[data-theme="dark"] body.saeta-home .saeta-tool > summary {
  color: var(--saeta-blue);
  background: rgba(142, 188, 255, 0.07);
}

:root[data-theme="dark"] body.saeta-home .saeta-tool > summary:hover {
  color: #ffffff;
  background: rgba(142, 188, 255, 0.14);
}

:root[data-theme="dark"] body.saeta-home .saeta-tool > summary::marker {
  color: var(--saeta-gold);
}

:root[data-theme="dark"] body.saeta-home .saeta-tools__closing {
  border-inline-start-color: var(--saeta-gold);
}

@media (max-width: 760px) {
  body.saeta-home .saeta-genealogy-band {
    width: 100%;
  }
}


/* =========================================================
   SAETA: CENTRADO FINAL Y ACORDEONES COMPACTOS
   ========================================================= */

/*
 * Anula las anchuras anteriores basadas en vw.
 * El contenido se centra dentro del espacio real de la sección.
 */
body.saeta-home .saeta-section--attitude > h2,
body.saeta-home .saeta-section--attitude > .saeta-pillar-grid,
body.saeta-home .saeta-section--attitude > .saeta-genealogy-band {
  display: block;
  width: 100%;
  max-width: 1380px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

body.saeta-home .saeta-section--attitude > .saeta-pillar-grid {
  display: grid;
}

/* Evita que alguna regla anterior de 92vw desplace la genealogía. */
body.saeta-home .saeta-section--attitude .saeta-genealogy-band {
  width: 100%;
}

/* Entradilla y composición de Herramientas. */
body.saeta-home .saeta-tools__intro {
  margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
}

body.saeta-home .saeta-tools__layout {
  align-items: start;
}

body.saeta-home .saeta-tools__figure {
  align-self: start;
  margin: 0;
}

body.saeta-home .saeta-tools__figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

body.saeta-home .saeta-tools__figure figcaption {
  display: none;
}

/* Acordeones más compactos. */
body.saeta-home .saeta-tool {
  margin: 0 0 0.5rem;
}

body.saeta-home .saeta-tool > summary {
  padding: 0.7rem 0.9rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

body.saeta-home .saeta-tool > p {
  margin: 0;
  padding: 0.75rem 0.95rem 0.85rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* El cierre antiguo ya no forma parte del HTML. */
body.saeta-home .saeta-tools__closing {
  display: none;
}


/* =========================================================
   SAETA: BRÚJULA EXPERIMENTAL
   ========================================================= */

/*
 * Díptico visual con Nuestra actitud:
 * aquí la imagen experimental permanece más visible
 * y el cristal de las cajas es ligeramente más luminoso.
 */
body.saeta-home .saeta-section--compass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--saeta-ivory);

  background-image:
    linear-gradient(
      90deg,
      rgba(10, 15, 34, 0.82) 0%,
      rgba(16, 25, 51, 0.54) 48%,
      rgba(9, 14, 31, 0.76) 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 20, 38, 0.18) 0%,
      rgba(10, 15, 34, 0.62) 100%
    ),
    url("/EI_for-web.webp");

  background-size:
    100% 100%,
    100% 100%,
    cover;

  background-position:
    center,
    center,
    center center;

  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat;
}

/*
 * Centrado dentro del espacio interior real de la sección.
 */
body.saeta-home .saeta-section--compass > h2,
body.saeta-home .saeta-section--compass > .saeta-pillar-grid--compass {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1380px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

body.saeta-home .saeta-section--compass > h2 {
  color: var(--saeta-ivory);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(78, 143, 216, 0.2);
}

/* Cajas de cristal experimental. */
body.saeta-home .saeta-section--compass .saeta-compass-card {
  color: var(--saeta-ivory);
  background: rgba(12, 20, 43, 0.43);
  border: 1px solid rgba(185, 214, 255, 0.34);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    0 0 22px rgba(78, 143, 216, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(7px) saturate(112%);
  -webkit-backdrop-filter: blur(7px) saturate(112%);
}

body.saeta-home .saeta-section--compass .saeta-compass-card h3 {
  color: var(--saeta-blue-soft);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

body.saeta-home .saeta-section--compass .saeta-compass-card p {
  color: var(--saeta-ivory);
}

/*
 * En pantallas estrechas evitamos que el recorte pierda
 * el núcleo del montaje experimental.
 */
@media (max-width: 760px) {
  body.saeta-home .saeta-section--compass {
    background-position:
      center,
      center,
      52% center;
  }

  body.saeta-home .saeta-section--compass .saeta-compass-card {
    background: rgba(10, 16, 36, 0.58);
    backdrop-filter: blur(6px) saturate(108%);
    -webkit-backdrop-filter: blur(6px) saturate(108%);
  }
}


/* =========================================================
   SAETA: REFINAMIENTO VISUAL DE BRÚJULA
   ========================================================= */

/*
 * Menos oscurecimiento y encuadre algo más bajo:
 * se conserva la legibilidad, pero el laboratorio gana presencia.
 */
body.saeta-home .saeta-section--compass {
  background-image:
    linear-gradient(
      90deg,
      rgba(10, 15, 34, 0.64) 0%,
      rgba(16, 25, 51, 0.32) 48%,
      rgba(9, 14, 31, 0.57) 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 20, 38, 0.05) 0%,
      rgba(10, 15, 34, 0.38) 100%
    ),
    url("/EI_for-web.webp");

  background-size:
    100% 100%,
    100% 100%,
    100% auto;

  background-position:
    center,
    center,
    center 68%;

  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat;
}

/*
 * Cristal más transparente y menos desenfocado.
 */
body.saeta-home .saeta-section--compass .saeta-compass-card {
  background:
    linear-gradient(
      145deg,
      rgba(26, 39, 72, 0.28),
      rgba(8, 14, 32, 0.34)
    );

  border-color: rgba(185, 214, 255, 0.39);

  box-shadow:
    0 15px 32px rgba(0, 0, 0, 0.18),
    0 0 20px rgba(78, 143, 216, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(3px) saturate(106%);
  -webkit-backdrop-filter: blur(3px) saturate(106%);

  transform: translateZ(0);
  transform-origin: center;
  transition:
    transform 220ms ease-out,
    border-color 220ms ease-out,
    background-color 220ms ease-out,
    box-shadow 220ms ease-out;
}

/*
 * Evita cortes como “posibili-dad”, “obli-ga” o “unifi-ca”.
 */
body.saeta-home .saeta-section--compass .saeta-compass-card h3,
body.saeta-home .saeta-section--compass .saeta-compass-card p {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

body.saeta-home .saeta-section--compass .saeta-compass-card h3 {
  text-wrap: balance;
}

body.saeta-home .saeta-section--compass .saeta-compass-card p {
  text-wrap: pretty;
}

/*
 * Movimiento leve sólo en dispositivos con puntero preciso.
 * No afecta a móviles ni obliga a perseguir cajas que se mueven.
 */
@media (hover: hover) and (pointer: fine) {
  body.saeta-home
  .saeta-section--compass
  .saeta-compass-card:hover {
    transform: translateY(-5px) scale(1.012);

    border-color: rgba(185, 214, 255, 0.62);

    background:
      linear-gradient(
        145deg,
        rgba(31, 47, 86, 0.34),
        rgba(8, 14, 32, 0.39)
      );

    box-shadow:
      0 21px 42px rgba(0, 0, 0, 0.24),
      0 0 28px rgba(78, 143, 216, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.11);
  }
}

/*
 * Movimiento reducido cuando el sistema así lo solicita.
 */
@media (prefers-reduced-motion: reduce) {
  body.saeta-home .saeta-section--compass .saeta-compass-card {
    transition: none;
  }

  body.saeta-home
  .saeta-section--compass
  .saeta-compass-card:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  body.saeta-home .saeta-section--compass {
    background-size:
      100% 100%,
      100% 100%,
      auto 100%;

    background-position:
      center,
      center,
      54% center;
  }

  body.saeta-home .saeta-section--compass .saeta-compass-card {
    background: rgba(9, 15, 34, 0.48);
    backdrop-filter: blur(3px) saturate(104%);
    -webkit-backdrop-filter: blur(3px) saturate(104%);
  }
}


/* =========================================================
   SAETA: BRÚJULA FONDO EQUILIBRADO
   ========================================================= */

/*
 * Oscurecimiento ligeramente mayor para que las inscripciones
 * del montaje experimental no compitan con el contenido.
 * Se conservan el encuadre y la visibilidad del laboratorio.
 */
body.saeta-home .saeta-section--compass {
  background-image:
    linear-gradient(
      90deg,
      rgba(10, 15, 34, 0.72) 0%,
      rgba(16, 25, 51, 0.41) 48%,
      rgba(9, 14, 31, 0.65) 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 20, 38, 0.11) 0%,
      rgba(10, 15, 34, 0.47) 100%
    ),
    url("/EI_for-web.webp");
}


/* =========================================================
   SAETA: SIN BARRA DECORATIVA EN H2 DE LANDING
   ========================================================= */

/*
 * Quark2 añade una pequeña barra sobre todos los h2.
 * La landing ya posee una identidad visual suficiente.
 */
body.saeta-home .saeta-section h2::before {
  content: none;
  display: none;
}


/* =========================================================
   SAETA: INTERACCIONES, ACORDEONES Y BACK TO TOP
   ========================================================= */

/* ---------------------------------------------------------
   Volver arriba
   --------------------------------------------------------- */

.saeta-back-to-top {
  position: fixed;
  right: clamp(1rem, 2.2vw, 1.75rem);
  bottom: clamp(1rem, 2.2vw, 1.75rem);
  z-index: 90;

  display: grid;
  place-items: center;

  width: 3.15rem;
  height: 3.15rem;
  padding: 0;

  color: var(--saeta-ivory);
  background: rgba(16, 20, 38, 0.88);
  border: 1px solid rgba(185, 214, 255, 0.42);
  border-radius: 50%;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(12px) scale(0.92);

  transition:
    opacity 190ms ease,
    visibility 190ms ease,
    transform 220ms ease,
    background-color 190ms ease,
    border-color 190ms ease,
    box-shadow 190ms ease;
}

.saeta-back-to-top span {
  display: block;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}

.saeta-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.saeta-back-to-top:hover {
  color: #ffffff;
  background: rgba(25, 29, 53, 0.96);
  border-color: rgba(229, 199, 123, 0.72);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(78, 143, 216, 0.16);
}

.saeta-back-to-top:focus-visible {
  outline: 3px solid var(--saeta-gold);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   Acordeones
   --------------------------------------------------------- */

body.saeta-home .saeta-tool {
  will-change: height;
}

body.saeta-home .saeta-tool > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  list-style: none;
  user-select: none;
}

body.saeta-home .saeta-tool > summary::-webkit-details-marker {
  display: none;
}

body.saeta-home .saeta-tool > summary::marker {
  content: "";
}

body.saeta-home .saeta-tool > summary::after {
  content: "";

  flex: 0 0 auto;

  width: 0.58rem;
  height: 0.58rem;
  margin-right: 0.15rem;

  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;

  transform: rotate(45deg);
  transform-origin: center;

  transition: transform 220ms ease;
}

body.saeta-home .saeta-tool[open] > summary::after {
  transform: rotate(225deg);
}

body.saeta-home .saeta-tool__content {
  overflow: hidden;
}

body.saeta-home .saeta-tool__content > p {
  margin: 0;
  padding: 0.75rem 0.95rem 0.85rem;

  color: var(--q2-text);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Movimiento sutil de cajas
   --------------------------------------------------------- */

body.saeta-home
.saeta-section--attitude
.saeta-pillar-card--glass,
body.saeta-home .saeta-entry-points a {
  transform: translateZ(0);
  transform-origin: center;

  transition:
    transform 220ms ease-out,
    border-color 220ms ease-out,
    box-shadow 220ms ease-out,
    background-color 220ms ease-out;
}

body.saeta-home .saeta-entry-points a:focus-visible {
  outline: 3px solid var(--saeta-gold);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   Brújula móvil: mismo escalado que Nuestra actitud
   --------------------------------------------------------- */

@media (max-width: 760px) {
  body.saeta-home .saeta-section--compass {
    background-size:
      100% 100%,
      100% 100%,
      cover;

    background-position:
      center,
      center,
      52% center;
  }
}

@media (hover: hover) and (pointer: fine) {
  body.saeta-home
  .saeta-section--attitude
  .saeta-pillar-card--glass:hover,
  body.saeta-home .saeta-entry-points a:hover {
    transform: translateY(-4px) scale(1.01);
  }

  body.saeta-home
  .saeta-section--attitude
  .saeta-pillar-card--glass:hover {
    border-color: rgba(185, 214, 255, 0.45);

    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.2),
      0 0 24px rgba(78, 143, 216, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body.saeta-home .saeta-entry-points a:hover {
    box-shadow:
      0 17px 35px rgba(16, 20, 38, 0.14),
      0 0 20px rgba(78, 143, 216, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .saeta-back-to-top,
  body.saeta-home .saeta-tool > summary::after,
  body.saeta-home
  .saeta-section--attitude
  .saeta-pillar-card--glass,
  body.saeta-home .saeta-entry-points a {
    transition: none;
  }

  body.saeta-home
  .saeta-section--attitude
  .saeta-pillar-card--glass:hover,
  body.saeta-home .saeta-entry-points a:hover {
    transform: none;
  }
}


/* =========================================================
   SAETA: BRÚJULA RESPONSIVA ESTABLE
   ========================================================= */

/*
 * La imagen experimental cubre siempre la sección.
 * Así no depende de la relación cambiante entre anchura,
 * altura del contenido y proporción de la ventana.
 */
body.saeta-home .saeta-section--compass {
  background-size:
    100% 100%,
    100% 100%,
    cover;

  background-position:
    center,
    center,
    50% 62%;
}

/*
 * En anchuras intermedias desplazamos ligeramente el foco
 * para conservar detectores, preparación y zona de medición.
 */
@media (max-width: 1100px) {
  body.saeta-home .saeta-section--compass {
    background-position:
      center,
      center,
      54% 60%;
  }
}

@media (max-width: 760px) {
  body.saeta-home .saeta-section--compass {
    background-size:
      100% 100%,
      100% 100%,
      cover;

    background-position:
      center,
      center,
      52% 58%;
  }
}

@media (max-width: 480px) {
  body.saeta-home .saeta-section--compass {
    background-position:
      center,
      center,
      56% center;
  }
}


/* =========================================================
   SAETA: HERO MÓVIL INTEGRADO Y FLUIDO
   ========================================================= */

/*
 * Sustituye las antiguas reglas que separaban imagen y texto.
 * No depende de modelos concretos: responde al espacio disponible.
 */
@media (max-width: 900px) {
  body.saeta-home .saeta-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    min-height: clamp(32rem, 120vw, 44rem);
    aspect-ratio: auto;
  }

  body.saeta-home .saeta-hero__media {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
  }

  body.saeta-home .saeta-hero__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
  }

  body.saeta-home .saeta-hero__overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;

    padding:
      clamp(5rem, 16vw, 7rem)
      clamp(1.1rem, 5vw, 2.2rem)
      clamp(1.8rem, 6vw, 3rem);

    background:
      linear-gradient(
        90deg,
        rgba(16, 20, 38, 0.78) 0%,
        rgba(25, 29, 53, 0.56) 55%,
        rgba(25, 29, 53, 0.18) 100%
      ),
      linear-gradient(
        0deg,
        rgba(16, 20, 38, 0.76) 0%,
        rgba(16, 20, 38, 0.12) 62%,
        rgba(16, 20, 38, 0) 88%
      );
  }

  body.saeta-home .saeta-hero__content {
    width: 100%;
    max-width: 42rem;
  }
}

/* =========================================================
   LANDING · NUESTRA BRÚJULA
   Gradiente vertical para mejorar la legibilidad:
   más oscuro arriba, ligeramente más claro abajo.
   ========================================================= */

.saeta-section--compass {
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 14, 30, 0.88) 0%,
      rgba(11, 15, 31, 0.82) 24%,
      rgba(13, 17, 34, 0.73) 50%,
      rgba(16, 20, 38, 0.62) 76%,
      rgba(16, 20, 38, 0.58) 100%
    ),
    linear-gradient(
      90deg,
      rgba(16, 20, 38, 0.64) 0%,
      rgba(16, 20, 38, 0.32) 50%,
      rgba(16, 20, 38, 0.57) 100%
    ),
    url('/EI_for-web.webp');

  background-size:
    100% 100%,
    100% 100%,
    cover;

  background-position:
    center,
    center,
    center;

  background-repeat:
    no-repeat;
}

/* =========================================================
   LANDING · NUESTRA BRÚJULA
   Oscurecimiento vertical definitivo.
   Mantiene el encuadre existente de la imagen.
   ========================================================= */

body.saeta-home .saeta-section--compass {
  background-image:
    linear-gradient(
      180deg,
      rgba(7, 10, 24, 0.78) 0%,
      rgba(9, 13, 29, 0.68) 24%,
      rgba(11, 16, 33, 0.48) 52%,
      rgba(13, 18, 35, 0.27) 76%,
      rgba(16, 20, 38, 0.18) 100%
    ),
    linear-gradient(
      90deg,
      rgba(10, 15, 34, 0.72) 0%,
      rgba(16, 25, 51, 0.41) 48%,
      rgba(9, 14, 31, 0.65) 100%
    ),
    url("/EI_for-web.webp");
}

/* =========================================================
   LANDING · NUESTRA BRÚJULA
   Contraste vertical más acusado:
   cabecera oscura y mitad inferior más abierta.
   ========================================================= */

body.saeta-home .saeta-section--compass {
  background-image:
    linear-gradient(
      180deg,
      rgba(6, 9, 22, 0.86) 0%,
      rgba(7, 11, 26, 0.76) 22%,
      rgba(9, 13, 29, 0.48) 38%,
      rgba(11, 16, 32, 0.20) 54%,
      rgba(14, 18, 35, 0.06) 68%,
      rgba(16, 20, 38, 0.00) 100%
    ),
    linear-gradient(
      90deg,
      rgba(10, 15, 34, 0.48) 0%,
      rgba(16, 25, 51, 0.20) 48%,
      rgba(9, 14, 31, 0.42) 100%
    ),
    url("/EI_for-web.webp");
}

/* =========================================================
   LANDING · NUESTRA BRÚJULA
   Mayor desenfoque del fondo bajo las tarjetas.
   ========================================================= */

body.saeta-home
.saeta-section--compass
.saeta-compass-card {
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  backdrop-filter: blur(20px) saturate(1.08);
}

/* =========================================================
   ATLAS DEL CORPUS — OPENING
   ========================================================= */

.explorar-atlas .atlas-opening {
    position: relative;
    isolation: isolate;
    margin: 0 0 3rem;
    padding: clamp(3rem, 6vw, 5.5rem) 1.5rem;
    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            rgba(16, 20, 38, 0.94) 0%,
            rgba(25, 29, 53, 0.86) 48%,
            rgba(16, 20, 38, 0.82) 100%
        ),
        url('/explorar/atlas-del-corpus/CE_for-web.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.explorar-atlas .atlas-opening::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 74% 32%,
            rgba(142, 188, 255, 0.10),
            transparent 38%
        );
}

.explorar-atlas .atlas-opening__inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin-inline: auto;
    color: #f6f3ea;
    user-select: text;
}

.explorar-atlas .atlas-opening__header {
    max-width: 850px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.explorar-atlas .atlas-opening h1 {
    margin: 0 0 1rem;
    color: #f6f3ea;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.05;
}

.explorar-atlas .atlas-opening__lead {
    margin: 0;
    max-width: 78ch;
    color: rgba(246, 243, 234, 0.92);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.75;
}

.explorar-atlas .atlas-opening__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.explorar-atlas .atlas-glass {
    min-height: 100%;
    padding: clamp(1.4rem, 3vw, 2rem);

    background: rgba(16, 20, 38, 0.55);
    border: 1px solid rgba(246, 243, 234, 0.16);
    border-radius: 1rem;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.explorar-atlas .atlas-glass:hover {
    transform: translateY(-3px) scale(1.008);
    background: rgba(16, 20, 38, 0.64);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.21),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.explorar-atlas .atlas-glass h2 {
    margin: 0 0 1.1rem;
    color: #b9d6ff;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.explorar-atlas .atlas-glass p {
    margin: 0.45rem 0;
    color: rgba(246, 243, 234, 0.94);
    line-height: 1.6;
}

.explorar-atlas .atlas-opening__closing {
    max-width: 900px;
}

.explorar-atlas .atlas-opening__closing h2 {
    margin: 0 0 1rem;
    color: #b9d6ff;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.explorar-atlas .atlas-opening__closing p {
    margin: 0 0 1rem;
    color: rgba(246, 243, 234, 0.91);
    line-height: 1.75;
}

@media (max-width: 760px) {
    .explorar-atlas .atlas-opening {
        padding: 2.75rem 1.15rem;
        background-position: center;
    }

    .explorar-atlas .atlas-opening__cards {
        grid-template-columns: 1fr;
    }

    .explorar-atlas .atlas-glass {
        padding: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .explorar-atlas .atlas-glass {
        transition: none;
    }

    .explorar-atlas .atlas-glass:hover {
        transform: none;
    }
}


/* =========================================================
   ATLAS — VISUAL REFINEMENT 2026-08-13
   ========================================================= */

.explorar-atlas .atlas-opening {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(25, 29, 53, 0.72) 0%,
            rgba(16, 20, 38, 0.84) 58%,
            rgba(16, 20, 38, 0.90) 100%
        ),
        url('/explorar/atlas-del-corpus/CE_for-web.webp');

    background-size: cover;
    background-position: center;
}

.explorar-atlas .atlas-opening__header {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.explorar-atlas .atlas-opening__lead {
    margin-left: auto;
    margin-right: auto;
}

