/* ==========================================================================
   ARCHIVO FOTOGRÁFICO JOAQUÍN TUSQUETS DE CABIROL
   Hoja de estilos principal — Sistema visual completo
   ========================================================================== */

/* === Tipografías (Google Fonts) === */
/* Newsreader (display serif) + Inter (sans neutral) cargadas desde el <head> */

/* === Reset mínimo === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* === Variables de diseño === */
:root {
  /* Paleta */
  --bg: #F4F0E8;          /* paper warmth */
  --cream: #ECE4D2;       /* alternating section, warmer */
  --ink: #1D1A17;         /* warm black */
  --graphite: #6B6361;    /* slightly warmer graphite */
  --mist: #D8CFC2;        /* warmer hairlines */
  --marine: #172326;      /* deep, charcoal-petrol */
  --bronze: #7A6448;      /* warm accent */
  --bone: #EAE3D5;        /* text on dark sections */

  /* Tipografía */
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-text: 'Inter', system-ui, -apple-system, sans-serif;

  /* Espaciado base (escala de 8) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 120px;
  --space-9: 160px;
  --space-10: 200px;

  /* Anchos máximos */
  --width-text: 640px;
  --width-wide: 720px;
  --width-content: 1200px;

  /* Otros */
  --header-h: 64px;
  --transition: 200ms ease;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 80px;
  }
}

/* === Tipografía: estilos === */
.label {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marine);
}

@media (min-width: 1024px) {
  .label { font-size: 12px; }
}

.h1-hero {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--ink);
}

.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
}

.body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .body { font-size: 17px; }
}

.body-graphite {
  color: var(--graphite);
}

.caption {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--graphite);
}

@media (min-width: 1024px) {
  .caption { font-size: 14px; }
}

.italic {
  font-style: italic;
}

/* === Layout: contenedores === */
.container {
  width: 100%;
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-5);
  }
}

.container-narrow {
  width: 100%;
  max-width: var(--width-text);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 1024px) {
  .container-narrow {
    padding: 0 var(--space-5);
  }
}

.section {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

.section-large {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

@media (min-width: 1024px) {
  .section-large {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244, 241, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--mist);
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3);
  max-width: var(--width-content);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .site-header-inner {
    padding: 0 var(--space-5);
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.brand span {
  display: block;
}

@media (min-width: 1024px) {
  .brand {
    font-size: 16px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  border-bottom-color: var(--marine);
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--mist);
  margin: 0 var(--space-1);
}

.lang-switch {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.lang-switch a {
  color: var(--graphite);
}

.lang-switch a.is-active {
  color: var(--ink);
}

.lang-switch span {
  color: var(--mist);
  margin: 0 4px;
}

/* Botón hamburguesa (móvil) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 44px;
  height: 44px;
  gap: 6px;
  margin-right: -8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Overlay del menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
  font-size: 28px;
  font-weight: 300;
  font-family: var(--font-display);
  line-height: 1;
}

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.mobile-menu-nav a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink);
}

.mobile-menu-footer {
  padding-top: var(--space-4);
  padding-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu-footer .lang-switch {
  font-size: 13px;
}

.mobile-menu-footer .legal-links {
  font-size: 12px;
  color: var(--graphite);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.mobile-menu-footer .legal-links a {
  color: var(--graphite);
}

/* === Hero (homepage) === */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  margin-top: calc(var(--header-h) * -1);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3);
  padding-bottom: var(--space-5);
}

@media (min-width: 1024px) {
  .hero-text {
    padding: var(--space-7);
    padding-bottom: var(--space-7);
    max-width: 900px;
  }
}

.hero-text .label {
  color: rgba(244, 241, 236, 0.85);
  margin-bottom: var(--space-2);
}

.hero-text .h1-hero {
  color: var(--bg);
  margin-bottom: var(--space-2);
}

.hero-text .subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  line-height: 1.4;
  color: rgba(244, 241, 236, 0.85);
}

/* === Componente: Bloque de texto centrado === */
.text-block {
  text-align: center;
}

.text-block .label {
  display: block;
  margin-bottom: var(--space-3);
}

.text-block .lead {
  margin-bottom: var(--space-4);
}

.text-block .body {
  max-width: var(--width-text);
  margin: 0 auto;
}

.text-block-left {
  text-align: left;
}

.text-block-left .label {
  margin-bottom: var(--space-3);
}

.text-block-left .h2 {
  margin-bottom: var(--space-4);
}

/* === Enlaces estilizados === */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--transition);
}

.link-arrow:hover {
  border-bottom-color: var(--marine);
}

.link-arrow-large {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.3;
  color: var(--ink);
  border-bottom: 1px solid var(--mist);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: border-color var(--transition);
}

.link-arrow-large:hover {
  border-bottom-color: var(--marine);
}

/* === Bloque destacado de exposición (Home) === */
.featured-block {
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  padding: var(--space-7) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-5);
  }
}

.featured-meta dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.featured-meta dt {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: var(--space-1);
}

.featured-meta dd {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

/* === Bloque imagen + texto (El archivo en Home) === */
.split-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 1024px) {
  .split-block {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.split-block-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-block-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* === Avance de la obra (3 imágenes) === */
.obra-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

@media (min-width: 1024px) {
  .obra-preview {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-7);
  }
}

.obra-preview-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 1024px) {
  .obra-preview-item:nth-child(1) {
    grid-column: 1 / span 4;
  }
  .obra-preview-item:nth-child(2) {
    grid-column: 6 / span 4;
    margin-top: var(--space-7);
  }
  .obra-preview-item:nth-child(3) {
    grid-column: 9 / span 4;
    margin-top: calc(var(--space-4) * -1);
  }
}

.obra-preview-item img,
.obra-preview-item .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* === Placeholder para fotos pendientes === */
.placeholder {
  background: linear-gradient(
    135deg,
    var(--mist) 0%,
    rgba(217, 213, 206, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--graphite);
  font-size: 14px;
}

.placeholder::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(107, 107, 107, 0.2);
}

.placeholder span {
  position: relative;
  z-index: 1;
  padding: var(--space-2);
  background: var(--bg);
  letter-spacing: 0.02em;
}

/* === Figura con pie de foto === */
.figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}

.figure img {
  width: 100%;
  height: auto;
}

.figure figcaption {
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--graphite);
  max-width: 480px;
}

@media (min-width: 1024px) {
  .figure figcaption {
    font-size: 14px;
  }
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--mist);
  margin-top: var(--space-7);
  padding-top: var(--space-7);
  padding-bottom: var(--space-5);
}

.site-footer-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .site-footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-5);
  }
}

.site-footer .brand {
  font-size: 16px;
  margin-bottom: var(--space-2);
}

.site-footer .footer-meta {
  font-size: 13px;
  color: var(--graphite);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.footer-col a:hover {
  border-bottom-color: var(--marine);
}

.site-footer-bottom {
  max-width: var(--width-content);
  margin: var(--space-6) auto 0;
  padding: var(--space-3) var(--space-3) 0;
  border-top: 1px solid var(--mist);
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--graphite);
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .site-footer-bottom {
    padding: var(--space-3) var(--space-5) 0;
  }
}

/* === Cronología (Biografía) === */
.timeline {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-5);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--mist);
}

@media (min-width: 768px) {
  .timeline-entry {
    grid-template-columns: 140px 1fr;
    gap: var(--space-4);
  }
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--marine);
}

.timeline-event {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

/* === Gallery (página La obra) === */
.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-5);
}

@media (min-width: 1024px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-3);
    row-gap: var(--space-7);
    margin-top: var(--space-7);
  }
}

@media (min-width: 1024px) {
  .gallery-item-wide {
    grid-column: 3 / span 8;
  }
  .gallery-item-left {
    grid-column: 2 / span 6;
  }
  .gallery-item-right {
    grid-column: 7 / span 5;
  }
}

.gallery-item img,
.gallery-item .placeholder {
  width: 100%;
  height: auto;
}

.gallery-item .placeholder {
  aspect-ratio: 4 / 5;
}

/* === Series (Obra) === */
.series-block {
  margin-top: var(--space-7);
}

@media (min-width: 1024px) {
  .series-block {
    margin-top: var(--space-9);
  }
}

.series-block:first-of-type {
  margin-top: 0;
}

.series-header {
  text-align: left;
  margin-bottom: var(--space-4);
  max-width: var(--width-text);
}

.series-header .label {
  display: block;
  margin-bottom: var(--space-2);
}

.series-header .h2 {
  margin-bottom: var(--space-3);
}

/* === Exposición (página índice) === */
.expo-entry {
  border-top: 1px solid var(--mist);
  padding: var(--space-5) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
}

.expo-entry:last-child {
  border-bottom: 1px solid var(--mist);
}

@media (min-width: 1024px) {
  .expo-entry {
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
  }
}

.expo-year {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--marine);
}

.expo-content .label {
  display: block;
  margin-bottom: var(--space-2);
}

.expo-content .h2 {
  margin-bottom: var(--space-2);
}

.expo-content .subtitle {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.expo-content p {
  margin-bottom: var(--space-3);
}

/* === Página de Exposición (subpáginas) === */
.expo-header {
  padding-top: var(--space-7);
  padding-bottom: var(--space-5);
}

@media (min-width: 1024px) {
  .expo-header {
    padding-top: var(--space-9);
    padding-bottom: var(--space-7);
  }
}

.expo-header .label {
  display: block;
  margin-bottom: var(--space-3);
}

.expo-header .h1 {
  font-style: italic;
  margin-bottom: var(--space-3);
  max-width: 900px;
}

.expo-header .institution {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  color: var(--graphite);
}

.expo-header .collaboration {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--graphite);
  margin-top: var(--space-1);
}

.expo-image {
  width: 100%;
  height: 80svh;
  object-fit: cover;
  margin-bottom: var(--space-3);
}

.expo-fact-sheet {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .expo-fact-sheet {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.expo-data dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.expo-data dt {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: var(--space-1);
}

.expo-data dd {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--ink);
}

/* === Prensa: lista de artículos === */
.press-list {
  display: flex;
  flex-direction: column;
}

.press-entry {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--mist);
}

.press-entry:first-child {
  border-top: 1px solid var(--mist);
}

.press-entry .label {
  display: block;
  margin-bottom: var(--space-2);
}

.press-entry h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.press-entry .meta {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--graphite);
  margin-bottom: var(--space-2);
}

/* Descargas */
.download-list {
  display: flex;
  flex-direction: column;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--mist);
  gap: var(--space-3);
}

.download-item:first-child {
  border-top: 1px solid var(--mist);
}

.download-item-name {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.download-item-meta {
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--graphite);
}

.download-item:hover .download-item-name {
  border-bottom: 1px solid var(--marine);
}

/* === Formulario de contacto === */
.contact-form {
  max-width: var(--width-text);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field label {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mist);
  padding: 10px 0;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--marine);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.checkbox-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  background: transparent;
  position: relative;
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-field input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--marine);
}

.checkbox-field label {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  color: var(--ink);
}

.checkbox-field label a {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 16px 32px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-top: var(--space-3);
  align-self: flex-start;
}

.btn:hover {
  color: var(--marine);
  border-color: var(--marine);
}

/* === Divider (línea decorativa) === */
.divider {
  width: 80px;
  height: 1px;
  background: var(--mist);
  margin: var(--space-7) auto;
  border: none;
}

/* === Page hero (cabeceras de página sin imagen) === */
.page-hero {
  padding-top: calc(var(--header-h) + var(--space-7));
  padding-bottom: var(--space-5);
}

@media (min-width: 1024px) {
  .page-hero {
    padding-top: calc(var(--header-h) + var(--space-9));
    padding-bottom: var(--space-7);
  }
}

.page-hero .label {
  display: block;
  margin-bottom: var(--space-3);
}

.page-hero .h1 {
  margin-bottom: var(--space-2);
}

.page-hero .subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  color: var(--graphite);
  margin-bottom: var(--space-3);
}

.page-hero-narrow {
  max-width: var(--width-text);
  margin: 0 auto;
  text-align: center;
}

/* === Aviso de copyright en página === */
.copyright-notice {
  background: rgba(27, 42, 58, 0.03);
  border-left: 2px solid var(--marine);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-5) 0;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.copyright-notice strong {
  font-weight: 600;
}

/* === Animación fade-in al entrar en viewport === */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Selección de texto === */
::selection {
  background: var(--marine);
  color: var(--bg);
}

/* === Print styles === */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .nav-desktop {
    display: none;
  }
}

/* === Breadcrumb === */
.breadcrumb {
  padding: calc(var(--header-h) + 24px) 0 0;
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--graphite);
}

.breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--graphite);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--transition), color var(--transition);
}

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--mist);
}

.breadcrumb span[aria-current="page"] {
  color: var(--ink);
}

/* Si la página tiene .page-hero después del breadcrumb, reducir el padding-top
   del hero porque el breadcrumb ya añade espacio del header */
.breadcrumb + main .page-hero {
  padding-top: var(--space-4);
}

@media (min-width: 1024px) {
  .breadcrumb + main .page-hero {
    padding-top: var(--space-5);
  }
}

/* === Hero on home: undo breadcrumb offset === */
.breadcrumb + main .hero {
  margin-top: 0;
}

/* === FAQ section (integrada en El archivo) === */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--mist);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--mist);
}

.faq-q {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.faq-item .body {
  color: var(--ink);
}

/* === Página del puerto (figuras grandes, layout amplio) === */
.container-puerto {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 1024px) {
  .container-puerto {
    padding: 0 var(--space-5);
  }
}

.puerto-figure {
  margin-top: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.puerto-figure:first-of-type {
  margin-top: var(--space-4);
}

@media (min-width: 1024px) {
  .puerto-figure {
    margin-top: var(--space-8);
  }
}

.puerto-figure img {
  width: 100%;
  height: auto;
}

.puerto-figure figcaption {
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 1.5;
  color: var(--graphite);
  max-width: 560px;
}

@media (min-width: 1024px) {
  .puerto-figure figcaption {
    font-size: 14px;
  }
}

/* ===========================================================
   PASADA EDITORIAL 2 — Cálidez, ritmo, contraste
   =========================================================== */

/* Section variants ------------------------------------------------- */
.section--cream { background: var(--cream); }
.section--marine {
  background: var(--marine);
  color: var(--bone);
}
.section--marine .label { color: var(--bronze); }
.section--marine .h1,
.section--marine .h2,
.section--marine .h3,
.section--marine .lead,
.section--marine .body { color: var(--bone); }
.section--marine .body-graphite { color: rgba(234, 227, 213, 0.65); }
.section--marine a {
  color: var(--bone);
  border-bottom-color: rgba(234, 227, 213, 0.3);
}
.section--marine a:hover { color: var(--bronze); }
.section--marine .link-arrow,
.section--marine .link-arrow-large { color: var(--bone); }
.section--marine .link-arrow:hover,
.section--marine .link-arrow-large:hover { color: var(--bronze); }
.section--marine .divider { background: rgba(234, 227, 213, 0.15); }

/* Hero split layout ------------------------------------------------ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--cream);
  margin-top: 0;
  position: relative;
}

.hero-split-image {
  position: relative;
  background: var(--marine);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-split-image picture { display: block; height: 100%; }

.hero-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-3);
  gap: var(--space-2);
}

.hero-split-text .label {
  color: var(--bronze);
}

.hero-split-text .h1-hero {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.hero-split-text .subtitle {
  font-family: var(--font-text);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: var(--space-1);
}

.hero-split-text .hero-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink);
  margin-top: var(--space-3);
  max-width: 380px;
}

.hero-split-text .hero-cta {
  margin-top: var(--space-4);
}

@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: 1.55fr 1fr;
    min-height: calc(100vh - var(--header-h));
    margin-top: var(--header-h);
  }
  .hero-split-image {
    aspect-ratio: auto;
    height: 100%;
  }
  .hero-split-text {
    padding: var(--space-7) var(--space-6);
  }
}

/* Feature dark block (B&W photo on marine) ------------------------- */
.feature-dark {
  background: var(--marine);
  padding: var(--space-7) 0;
}

.feature-figure {
  margin: 0 auto;
  max-width: 920px;
  padding: 0 var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-figure picture,
.feature-figure img {
  width: 100%;
  display: block;
}

.feature-figure figcaption {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--bone);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.feature-figure figcaption .credit {
  display: block;
  margin-top: 6px;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}

@media (min-width: 1024px) {
  .feature-dark { padding: var(--space-8) 0; }
  .feature-figure { padding: 0 var(--space-5); }
}

/* Bronze accents on emphasized links and dates --------------------- */
.text-accent { color: var(--bronze); }

a.text-accent {
  border-bottom: 1px solid transparent;
}

a.text-accent:hover {
  border-bottom-color: var(--bronze);
}

/* Refined figure captions ------------------------------------------ */
.figure figcaption em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}

.figure figcaption .credit-line {
  display: block;
  margin-top: 4px;
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.section--marine .figure figcaption em { color: var(--bone); }
.section--marine .figure figcaption .credit-line { color: var(--bronze); }

/* Subtle contrast separators between sections ---------------------- */
.section + .section--cream,
.section--cream + .section,
.section + .section--marine,
.section--marine + .section,
.section--marine + .section--cream,
.section--cream + .section--marine {
  border-top: 0;
}

/* Brand mark spacing ----------------------------------- */
.brand sup { display: none; }

/* Bronze accent for date emphasis in fact sheets ------------------ */
.expo-data dt {
  color: var(--bronze);
}

/* Refined breadcrumb on cream/marine sections --------------------- */
.section--marine + .breadcrumb,
.section--cream + .breadcrumb {
  background: var(--bg);
}
