/* ==========================================================================
   Torre del Oro de Sevilla
   Sistema de diseño derivado de DESIGN.md
   Adaptaciones documentadas al final del fichero.
   ========================================================================== */

:root {
  /* --- Color ------------------------------------------------------------ */
  --color-deep-indigo:    #3b1e90;
  --color-signal-blue:    #116eee;
  --color-spring-mint:    #11ee92;
  --color-hero-sky-blue:  #3a6ef0;
  --gradient-hero: linear-gradient(90deg, #3b1e90 0%, #5a3cc4 30%, #3a6ef0 100%);
  --color-charcoal:       #252b2f;
  --color-pure-black:     #000000;
  --color-canvas-mist:    #f2f7fd;
  --color-paper-white:    #ffffff;
  --color-steel-border:   #d6dee6;
  --color-slate-caption:  #666e7e;
  --color-shadow-gray:    #b3b3b3;
  --color-star:           #ffcf00;

  /* Derivados */
  --color-signal-blue-dark: #0d55bb;
  --color-mist-deep:        #e6eefb;

  /* --- Tipografía ------------------------------------------------------- */
  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;

  --text-caption:      0.688rem;
  --text-body:         0.938rem;
  --text-body-lg:      1.063rem;
  --text-subheading:   1.188rem;
  --text-heading-sm:   1.5rem;
  --text-heading:      2rem;
  --text-display:      2.75rem;

  --leading-tight: 1.14;
  --leading-snug:  1.3;
  --leading-base:  1.7;

  --fw-regular:   400;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* --- Espaciado -------------------------------------------------------- */
  --s-4: 4px;   --s-8: 8px;   --s-12: 12px; --s-16: 16px;
  --s-20: 20px; --s-24: 24px; --s-28: 28px; --s-32: 32px;
  --s-40: 40px; --s-48: 48px; --s-64: 64px; --s-120: 120px;

  /* --- Layout ----------------------------------------------------------- */
  --page-max: 1200px;
  --prose-max: 760px;
  --section-gap: 64px;
  --card-padding: 20px;

  /* --- Formas ----------------------------------------------------------- */
  --radius-input:  5px;
  --radius-card:   16px;
  --radius-button: 45px;
  --radius-circle: 9999px;

  /* --- Elevación -------------------------------------------------------- */
  --shadow-subtle: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
  --shadow-card-hover: rgba(37, 43, 47, 0.12) 0px 6px 20px -6px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-regular);
  line-height: var(--leading-base);
  color: var(--color-charcoal);
  background: var(--color-canvas-mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--leading-snug);
  font-weight: var(--fw-bold);
  color: var(--color-charcoal);
  text-wrap: balance;
}

p, ul, ol, dl, figure, table { margin: 0; }

a { color: var(--color-signal-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-signal-blue-dark); }

strong { font-weight: var(--fw-bold); }

:focus-visible {
  outline: 3px solid var(--color-signal-blue);
  outline-offset: 2px;
  border-radius: var(--radius-input);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-paper-white);
  color: var(--color-charcoal);
  padding: var(--s-12) var(--s-20);
  border-radius: 0 0 var(--radius-card) 0;
  font-weight: var(--fw-bold);
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Contenedores
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--s-20);
}

.wrap--narrow { max-width: 880px; }

/* ==========================================================================
   Cabecera
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-paper-white);
  box-shadow: var(--shadow-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-20);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark { display: block; line-height: 0; }
.brand__mark svg { border-radius: 9px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-size: var(--text-subheading);
  font-weight: var(--fw-extrabold);
  color: var(--color-signal-blue);
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--color-slate-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Navegación ----------------------------------------------------------*/

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-20);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__link {
  display: block;
  padding: var(--s-8) var(--s-12);
  font-size: var(--text-body);
  font-weight: var(--fw-bold);
  color: var(--color-charcoal);
  text-decoration: none;
  border-radius: var(--radius-button);
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

.site-nav__link:hover { background: var(--color-canvas-mist); color: var(--color-signal-blue); }

.site-nav__link.is-current {
  color: var(--color-signal-blue);
  background: var(--color-mist-deep);
}

/* --- Selector de idioma --------------------------------------------------*/

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--color-canvas-mist);
  border-radius: var(--radius-button);
  flex-shrink: 0;
}

.lang-switch__link {
  display: block;
  padding: 5px 11px;
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  color: var(--color-slate-caption);
  text-decoration: none;
  border-radius: var(--radius-button);
  transition: background-color .15s ease, color .15s ease;
}

.lang-switch__link:hover { color: var(--color-signal-blue); }

.lang-switch__link.is-current {
  background: var(--color-paper-white);
  color: var(--color-charcoal);
  box-shadow: var(--shadow-subtle);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-circle);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  padding: 13px var(--s-24);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 9px var(--s-16); font-size: var(--text-body); }

/* Mint: única acción cromática rellena del sistema */
.btn--primary {
  background: var(--color-spring-mint);
  color: var(--color-charcoal);
  box-shadow: var(--shadow-subtle);
}
.btn--primary:hover { background: #0ad683; color: var(--color-charcoal); }

.btn--outline {
  background: transparent;
  border-color: var(--color-signal-blue);
  color: var(--color-signal-blue);
}
.btn--outline:hover { background: var(--color-signal-blue); color: #fff; }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding-block: var(--s-64);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(255,255,255,.14), transparent 55%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--s-20);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-48);
  align-items: center;
}

.hero__eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--s-16);
}

.hero__title {
  font-size: var(--text-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--leading-tight);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-20);
}

.hero__lead {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 30em;
  margin-bottom: var(--s-28);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  margin-bottom: var(--s-40);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-16);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 480px;
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--s-12);
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.hero__facts strong {
  font-size: var(--text-subheading);
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1.2;
}

.hero__facts span {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.75);
}

.hero__figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.22) 0px 18px 44px -18px;
}

.hero__figure img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; }

/* ==========================================================================
   Migas y cabecera de página interior
   ========================================================================== */

.breadcrumbs {
  background: var(--color-paper-white);
  border-bottom: 1px solid var(--color-steel-border);
  padding-block: var(--s-12);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-8);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-slate-caption);
}

.breadcrumbs__list li + li::before {
  content: "›";
  margin-right: var(--s-8);
  color: var(--color-steel-border);
}

.breadcrumbs__list a { text-decoration: none; }
.breadcrumbs__list a:hover { text-decoration: underline; }

.page-head {
  background: var(--color-paper-white);
  padding-block: var(--s-48) var(--s-40);
  border-bottom: 1px solid var(--color-steel-border);
}

.page-head__title {
  font-size: var(--text-heading);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin-bottom: var(--s-16);
}

.page-head__lead {
  font-size: var(--text-subheading);
  line-height: 1.55;
  color: var(--color-slate-caption);
  max-width: 42em;
}

/* ==========================================================================
   Secciones y prosa
   ========================================================================== */

.section { padding-block: var(--s-64); }
.section--tight { padding-block: var(--s-48); }
.section--white { background: var(--color-paper-white); }

.section__head { margin-bottom: var(--s-32); max-width: 44em; }

.section__title {
  font-size: var(--text-heading-sm);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-12);
}

.section__intro { color: var(--color-slate-caption); }

.prose {
  max-width: var(--prose-max);
  margin-inline: auto;
}

.prose > * + * { margin-top: var(--s-20); }

.prose h2 {
  font-size: var(--text-heading-sm);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.01em;
  margin-top: var(--s-48);
  padding-top: var(--s-8);
}

.prose h3 {
  font-size: var(--text-subheading);
  font-weight: var(--fw-bold);
  margin-top: var(--s-32);
}

.prose h2 + p, .prose h3 + p { margin-top: var(--s-12); }

.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: var(--s-8); }

.prose figure { margin-block: var(--s-32); }

.prose figure img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
}

.prose figcaption {
  margin-top: var(--s-8);
  font-size: var(--text-body);
  color: var(--color-slate-caption);
  text-align: center;
}

.lead-para {
  font-size: var(--text-subheading);
  line-height: 1.6;
  color: var(--color-charcoal);
}

/* ==========================================================================
   Tarjetas
   ========================================================================== */

.card {
  display: block;
  background: var(--color-paper-white);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-subtle);
}

.card--link {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  color: inherit;
}

.card__label {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-signal-blue);
}

.card__title {
  font-size: var(--text-subheading);
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
}

.card__text {
  font-size: var(--text-body);
  color: var(--color-slate-caption);
  line-height: 1.55;
}

.card__cta {
  margin-top: auto;
  padding-top: var(--s-8);
  font-size: var(--text-body);
  font-weight: var(--fw-bold);
  color: var(--color-signal-blue);
}

.card__cta::after { content: " →"; }

/* --- Rejillas ------------------------------------------------------------*/

.grid {
  display: grid;
  gap: var(--s-20);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ==========================================================================
   Bloque de datos clave
   ========================================================================== */

.keyfacts {
  background: var(--color-paper-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
  padding: var(--s-28);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-24);
}

.keyfacts__item { display: flex; flex-direction: column; gap: var(--s-4); }

.keyfacts__label {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-slate-caption);
}

.keyfacts__value {
  font-size: var(--text-subheading);
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

.keyfacts__note { font-size: var(--text-body); color: var(--color-slate-caption); }

/* ==========================================================================
   Avisos
   ========================================================================== */

.notice {
  border-radius: var(--radius-card);
  padding: var(--s-20) var(--s-24);
  background: var(--color-mist-deep);
  border-left: 4px solid var(--color-signal-blue);
  font-size: var(--text-body-lg);
}

.notice--mint {
  background: rgba(17, 238, 146, 0.13);
  border-left-color: #0ad683;
}

.notice__title {
  display: block;
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-4);
}

/* ==========================================================================
   Tablas
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
  background: var(--color-paper-white);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
}

table.data th,
table.data td {
  padding: var(--s-12) var(--s-16);
  text-align: left;
  border-bottom: 1px solid var(--color-steel-border);
  vertical-align: top;
}

table.data thead th {
  font-weight: var(--fw-bold);
  color: var(--color-charcoal);
  background: var(--color-canvas-mist);
  white-space: nowrap;
}

table.data tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  max-width: var(--prose-max);
  margin-inline: auto;
  padding-block: var(--s-48);
}

.faq h2 {
  font-size: var(--text-heading-sm);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--s-24);
}

.faq__list { display: flex; flex-direction: column; gap: var(--s-12); }

.faq__item {
  background: var(--color-paper-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-16);
  padding: var(--s-16) var(--s-20);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-bold);
  cursor: pointer;
  list-style: none;
  line-height: 1.45;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: var(--fw-regular);
  line-height: 1;
  color: var(--color-signal-blue);
  transition: transform .2s ease;
}

.faq__item[open] .faq__q::after { transform: rotate(45deg); }

.faq__a {
  padding: 0 var(--s-20) var(--s-20);
  color: var(--color-slate-caption);
}

/* ==========================================================================
   Galería
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-16);
}

.gallery figure {
  margin: 0;
  background: var(--color-paper-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery figcaption {
  padding: var(--s-12) var(--s-16);
  font-size: var(--text-body);
  color: var(--color-slate-caption);
  line-height: 1.5;
}

/* ==========================================================================
   Enlaces relacionados
   ========================================================================== */

.related {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--s-64) var(--s-20);
}

.related h2 {
  font-size: var(--text-heading-sm);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--s-24);
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-20);
}

/* ==========================================================================
   Índice de contenidos
   ========================================================================== */

.toc {
  background: var(--color-paper-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
  padding: var(--s-20) var(--s-24);
}

.toc__title {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-slate-caption);
  margin-bottom: var(--s-12);
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-8) var(--s-20);
}

.toc a { font-size: var(--text-body); font-weight: var(--fw-bold); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ==========================================================================
   Pie
   ========================================================================== */

.site-footer {
  background: var(--color-paper-white);
  border-top: 1px solid var(--color-steel-border);
  padding-block: var(--s-48) var(--s-32);
  margin-top: var(--s-32);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s-40);
  padding-bottom: var(--s-40);
  border-bottom: 1px solid var(--color-steel-border);
}

.site-footer__tagline {
  margin-top: var(--s-8);
  font-size: var(--text-body);
  color: var(--color-slate-caption);
  line-height: 1.6;
}

.site-footer__title {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-slate-caption);
  margin-bottom: var(--s-16);
}

.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li + li { margin-top: var(--s-8); }

.site-footer__links a {
  font-size: var(--text-body);
  color: var(--color-charcoal);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--color-signal-blue); text-decoration: underline; }

.site-footer__address {
  font-style: normal;
  font-size: var(--text-body);
  color: var(--color-slate-caption);
  line-height: 1.8;
}

.site-footer__legal { padding-top: var(--s-24); }

.disclaimer {
  font-size: var(--text-body);
  color: var(--color-charcoal);
  background: var(--color-canvas-mist);
  border-radius: var(--radius-card);
  padding: var(--s-16) var(--s-20);
  line-height: 1.6;
}

.site-footer__meta,
.site-footer__copy {
  margin-top: var(--s-12);
  font-size: var(--text-body);
  color: var(--color-slate-caption);
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-0  { margin-top: 0 !important; }
.mt-24 { margin-top: var(--s-24); }
.mt-32 { margin-top: var(--s-32); }
.mt-40 { margin-top: var(--s-40); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-32); }
}

/* El menú tiene 8 entradas: colapsa antes de que desborde la cabecera */
@media (max-width: 1080px) {
  :root {
    --text-display: 2.125rem;
    --text-heading: 1.75rem;
    --section-gap: 48px;
  }

  .hero__inner { grid-template-columns: 1fr; gap: var(--s-32); }
  .hero__media { order: -1; max-width: 420px; }
  .hero__figure img { aspect-ratio: 3 / 2; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); max-width: none; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-12);
    padding: var(--s-16) var(--s-20) var(--s-24);
    background: var(--color-paper-white);
    box-shadow: rgba(37, 43, 47, 0.14) 0px 14px 28px -12px;
    border-top: 1px solid var(--color-steel-border);
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link { padding: var(--s-12) var(--s-16); border-radius: var(--radius-card); }
  .site-nav__cta { align-self: flex-start; }
  .lang-switch { align-self: flex-start; }

  .section { padding-block: var(--s-48); }
  .related { padding-block: var(--s-48); }
}

@media (max-width: 560px) {
  :root {
    --text-display: 1.875rem;
    --text-heading: 1.5rem;
    --text-heading-sm: 1.313rem;
  }

  .wrap { padding-inline: var(--s-16); }
  .hero { padding-block: var(--s-40); }
  .hero__inner { padding-inline: var(--s-16); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .keyfacts { padding: var(--s-20); }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .site-nav__cta { width: 100%; }
}

/* ==========================================================================
   Preferencias del usuario
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-nav, .related, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero { background: #fff !important; color: #000; }
  .hero__title, .hero__lead { color: #000; }
}

/* ==========================================================================
   NOTAS DE ADAPTACIÓN respecto a DESIGN.md
   --------------------------------------------------------------------------
   1. Corregido el gradiente del hero: DESIGN.md indica "#3b1e9" (5 dígitos
      hexadecimales, inválido). Se usa #3b1e90, que es el valor correcto según
      la tabla de tokens.
   2. Escala tipográfica elevada. DESIGN.md fija el body en 14px, adecuado para
      una interfaz de aplicación pero insuficiente para lectura larga. El cuerpo
      pasa a 17px (1.063rem) y el interlineado a 1.7. Se conservan las
      proporciones relativas del resto de la escala.
   3. Admitida la fotografía. DESIGN.md prohíbe la fotografía en favor de
      ilustración. Un sitio sobre un monumento la necesita por SEO y por
      utilidad. Se mantiene el resto del lenguaje visual: radios, sombra única,
      canvas azulado, mint como acción principal.
   4. Poppins sustituye a Nista, tal como propone el propio DESIGN.md.
   5. El azul Signal (#116eee) nunca se usa como fondo de acción rellena, según
      la norma del sistema. La única acción cromática rellena es el mint.
   ========================================================================== */
