/* ==========================================================================
   IRO AUDIOVISUAL — FABIÁN FARÍAS (A CORUÑA, GALICIA)
   Dirección artística: Interfaz monocromática editorial (negro, blanco, gris)
   con fotografías y vídeos a color real, tipografía Syne + Inter y
   composición asimétrica con cambios de escala.
   ========================================================================== */

:root {
  /* Paleta monocromática para la interfaz */
  --bg-primary: #0a0a0a;
  --bg-elevated: #111111;
  --bg-surface: #161616;
  --bg-paper: #f4f3ef;

  --text-primary: #f4f3ef;
  --text-secondary: #b8b6ae;
  --text-muted: #8c8a82;
  --text-inverse: #0a0a0a;
  --text-inverse-secondary: #383733;

  --border-subtle: #222220;
  --border-strong: #3c3c38;
  --border-inverse: #d4d2ca;

  --error-color: #f4f3ef;
  --error-bg: #191917;

  /* Combinación tipográfica: Syne (titulares editoriales) + Inter (lectura y UI) */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciado y contenedor */
  --container-max: 1320px;
  --container-pad: clamp(1.25rem, 4.5vw, 4rem);
  --section-space: clamp(2.75rem, 5vw, 4.5rem);

  /* Transiciones discretas */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-base: 360ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
}

/* Improve Text Layout and Legibility (modern-web-guidance) */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  color: var(--text-primary);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p,
blockquote,
li {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-editorial),
    border-color var(--duration-fast) var(--ease-editorial),
    background-color var(--duration-fast) var(--ease-editorial),
    opacity var(--duration-fast) var(--ease-editorial);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Enlace de salto accesible */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--container-pad);
  z-index: 1000;
  background: var(--bg-paper);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--bg-paper);
  outline-offset: 2px;
}

/* Utilidad visually-hidden para accesibilidad */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Grano analógico muy sutil (no altera el color ni la nitidez de las fotografías) */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.025;
  background-image: url('../assets/film-grain.svg');
  background-repeat: repeat;
  background-size: 240px 240px;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-padding {
  padding-block: var(--section-space);
}

.section-border {
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   CABECERA Y NAVEGACIÓN
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.1rem);
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="location"] {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.nav-link-cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inverse);
  background-color: var(--bg-paper);
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--bg-paper);
}

.nav-link-cta:hover,
.nav-link-cta:focus-visible {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle-line {
  width: 1.2rem;
  height: 1px;
  background-color: var(--text-primary);
  transition: transform var(--duration-fast) var(--ease-editorial);
}

/* ==========================================================================
   BOTONES EDITORIALES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-editorial),
    color var(--duration-fast) var(--ease-editorial),
    border-color var(--duration-fast) var(--ease-editorial);
}

/* Accessible generated content (modern-web-guidance) */
.btn-primary::after,
.btn-inverse::after {
  content: " →";
  content: " →" / "";
}

.btn-primary {
  background-color: var(--bg-paper);
  color: var(--text-inverse);
  border-color: var(--bg-paper);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--bg-paper);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--bg-paper);
  background-color: var(--bg-elevated);
}

.btn-inverse {
  background-color: var(--text-inverse);
  color: var(--bg-paper);
  border-color: var(--text-inverse);
}

.btn-inverse:hover,
.btn-inverse:focus-visible {
  background-color: transparent;
  color: var(--text-inverse);
  border-color: var(--text-inverse);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-inline: 0.25rem;
  border-bottom: 1px solid var(--border-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--text-primary);
  border-bottom-color: var(--bg-paper);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   01. SECCIÓN INICIO — SPLIT EDITORIAL ASIMÉTRICO (OPCIÓN A)
   ========================================================================== */

.hero-section {
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.125rem, 1.45vw, 1.3rem);
  color: var(--text-primary);
  font-weight: 300;
  max-width: 54ch;
  margin-bottom: 0.9rem;
}

.hero-sublead {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 3rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.highlight-item dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.highlight-item dd {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Columna derecha del Hero: Fotografía vertical protagonista a todo color */
.hero-visual-col {
  width: 100%;
}

.hero-figure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 760px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Conserva sus colores originales */
  filter: none;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ==========================================================================
   CABECERAS DE SECCIÓN EDITORIALES
   ========================================================================== */

.section-header-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.section-intro {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 52ch;
}

/* ==========================================================================
   02. SECCIÓN PORTFOLIO (ASIMETRÍA, CAMBIOS DE ESCALA Y COLOR REAL)
   ========================================================================== */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.portfolio-filters[hidden] {
  display: none !important;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.05rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-editorial);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-btn.is-active {
  background-color: var(--bg-paper);
  color: var(--text-inverse);
  border-color: var(--bg-paper);
}

/* Galería con composiciones asimétricas, formatos combinados y cambios de escala */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.75rem, 3.2vw, 3.25rem);
  row-gap: clamp(2.75rem, 5.5vw, 5rem);
  align-items: start;
}

.portfolio-item.layout-opening-photo {
  grid-column: 2 / span 5;
  align-self: center;
}

.portfolio-item.layout-opening-video {
  grid-column: 7 / span 5;
}

.portfolio-item.layout-wide {
  grid-column: span 7;
}

.portfolio-item.layout-tall {
  grid-column: span 5;
  margin-top: clamp(0rem, 4vw, 4rem);
}

.portfolio-item.layout-third {
  grid-column: span 4;
}

.portfolio-item.layout-standard {
  grid-column: span 5;
}

.portfolio-item.layout-wide-offset {
  grid-column: span 7;
  margin-top: clamp(0rem, 3.5vw, 3.5rem);
}

.portfolio-item.layout-half {
  grid-column: span 6;
}

.portfolio-item.layout-half-offset {
  grid-column: span 6;
  margin-top: clamp(0rem, 3rem, 3rem);
}

.portfolio-item.layout-full {
  grid-column: span 12;
}

/* Cuando se filtra por una categoría concreta, alinear tarjetas sin desfases verticales */
.portfolio-grid.is-filtered .portfolio-item {
  margin-top: 0;
}

.portfolio-item[hidden] {
  display: none !important;
}

.portfolio-figure {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.portfolio-media-wrap {
  position: relative;
  width: 100%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.aspect-16-10 {
  aspect-ratio: 16 / 10;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-21-9 {
  aspect-ratio: 871 / 361;
}

.aspect-3-2 {
  aspect-ratio: 3 / 2;
}

.aspect-5-4 {
  aspect-ratio: 5 / 4;
}

.aspect-4-5 {
  aspect-ratio: 4 / 5;
}

.aspect-3-4 {
  aspect-ratio: 3 / 4;
}

.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

.portfolio-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Conserva siempre los colores originales de productos y marcas */
  filter: none;
  transition: transform var(--duration-base) var(--ease-editorial);
  cursor: pointer;
}

.portfolio-figure:hover .portfolio-media {
  transform: scale(1.015);
}

/* El vídeo vertical se reproduce en bucle continuo y no es interactivo ni pausable */
.portfolio-media-video {
  pointer-events: none;
  user-select: none;
  cursor: default;
}

.portfolio-figure:hover .portfolio-media-video {
  transform: none;
}

.portfolio-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.15rem;
}

.portfolio-caption-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 400;
}

.portfolio-caption-category {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   03. SECCIÓN SERVICIOS Y TARIFAS (CONTRASTE MONOCROMÁTICO BLANCO / NEGRO)
   ========================================================================== */

.packs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-bottom: 2.5rem;
}

.pack-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: clamp(2.25rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
}

/* Tarjeta sobre papel claro: mantiene la identidad blanco/negro con fuerte presencia visual */
.pack-card-light {
  background-color: var(--bg-paper);
  color: var(--text-inverse);
  border-color: var(--bg-paper);
}

.pack-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pack-card-light .pack-tag {
  color: var(--text-inverse-secondary);
}

.pack-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.pack-card-light .pack-name {
  color: var(--text-inverse);
}

.pack-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pack-card-light .pack-subtitle {
  color: var(--text-inverse-secondary);
}

.pack-price-block {
  padding-block: 1.5rem;
  margin-bottom: 2rem;
  border-block: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pack-card-light .pack-price-block {
  border-color: var(--border-inverse);
}

.pack-price {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.4vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

.pack-card-light .pack-price {
  color: var(--text-inverse);
}

.pack-price-note {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pack-card-light .pack-price-note {
  color: var(--text-inverse-secondary);
}

.pack-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.pack-features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.pack-card-light .pack-features li {
  color: var(--text-inverse-secondary);
}

.pack-features li strong {
  color: var(--text-primary);
  font-weight: 500;
}

.pack-card-light .pack-features li strong {
  color: var(--text-inverse);
}

.pack-features li::before {
  content: "—";
  content: "—" / "";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.pack-card-light .pack-features li::before {
  color: var(--text-inverse-secondary);
}

/* Condiciones de producción */
.conditions-panel {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: clamp(2rem, 3.5vw, 3rem);
}

.conditions-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.condition-item h4 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.condition-item p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   04. SECCIÓN FOTOGRAFÍA Y VÍDEO DE EVENTOS (PLIEGO EDITORIAL)
   ========================================================================== */

.events-spread {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.events-editorial-quote {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--bg-paper);
}

.events-editorial-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.38;
  color: var(--text-primary);
}

.events-pricing-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 48ch;
  margin-bottom: 2.25rem;
}

.events-index-col {
  border-top: 1px solid var(--border-strong);
  padding-top: 1.5rem;
}

.events-list-heading {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.events-types-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.events-types-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.event-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 1.75rem;
}

/* ==========================================================================
   05. SECCIÓN ¿CÓMO FUNCIONA EL PROCESO? (FILAS EDITORIALES CON ESCALA)
   ========================================================================== */

.process-section {
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.process-editorial-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.process-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 2.5vw, 2.15rem);
  border-bottom: 1px solid var(--border-subtle);
}

.process-row:first-child {
  border-top: 1px solid var(--border-subtle);
}

.process-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.process-index {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
}

.process-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: baseline;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 600;
}

.step-text {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 54ch;
  line-height: 1.65;
}

/* ==========================================================================
   06. SECCIÓN SOBRE MÍ
   ========================================================================== */

.about-section {
  padding-top: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(3rem, 5.5vw, 5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5.5vw, 5rem);
  align-items: center;
}

.about-grid.is-single {
  grid-template-columns: 1fr;
  max-width: 780px;
}

.about-portrait-col[hidden] {
  display: none !important;
}

.about-figure {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  aspect-ratio: 748 / 871;
  max-width: 440px;
  margin-inline: auto;
}

.author-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-prose {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 62ch;
}

.about-prose p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.about-prose .about-lead {
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.45;
}

/* ==========================================================================
   07. SECCIÓN CONTACTO Y FORMULARIO FUNCIONAL
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5.5vw, 5rem);
  align-items: start;
}

.contact-lead {
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 48ch;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.channel-row {
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.channel-row dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.channel-row dd {
  font-size: 1.02rem;
  color: var(--text-primary);
}

.contact-link {
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.1rem;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-bottom-color: var(--bg-paper);
}

.contact-form-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.contact-form {
  padding: clamp(2rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.optional-mark {
  color: var(--text-muted);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.required-mark {
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color var(--duration-fast) var(--ease-editorial),
    background-color var(--duration-fast) var(--ease-editorial);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--bg-paper);
  background-color: #0e0e0e;
}

/* Accessible Error Announcement (modern-web-guidance) */
.error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--error-color);
  padding-top: 0.2rem;
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--bg-paper);
  background-color: var(--error-bg);
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback)~.error-msg {
  display: block;
}

.form-feedback {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-primary);
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.form-feedback.is-success {
  border-color: var(--bg-paper);
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: #070707;
}

.footer-inner {
  padding-block: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   VISOR MODAL (LIGHTBOX)
   ========================================================================== */

.portfolio-lightbox {
  margin: auto;
  width: min(92vw, 1120px);
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 0;
}

.portfolio-lightbox::backdrop {
  background-color: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox-frame {
  padding: 1.25rem;
}

.lightbox-header,
.lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.lightbox-header {
  margin-bottom: 1rem;
}

.lightbox-title {
  color: var(--text-primary);
  font-weight: 400;
}

.lightbox-footer {
  margin-top: 1rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.lightbox-close {
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-close:hover {
  border-color: var(--bg-paper);
}

.lightbox-content {
  background-color: #060606;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 78vh;
  overflow: hidden;
}

.lightbox-content img,
.lightbox-content video {
  max-height: 78vh;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   DISEÑO RESPONSIVE (TABLET Y MÓVIL)
   ========================================================================== */

@media (max-width: 1024px) {

  /* En tablet y móvil: primero el texto del Hero y después la imagen adaptada al ancho */
  .hero-split,
  .section-header-editorial,
  .events-spread,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-row {
    grid-template-columns: 80px 1fr;
  }

  .process-content {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .conditions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-item.layout-opening-photo,
  .portfolio-item.layout-opening-video,
  .portfolio-item.layout-wide,
  .portfolio-item.layout-tall,
  .portfolio-item.layout-third,
  .portfolio-item.layout-standard,
  .portfolio-item.layout-wide-offset,
  .portfolio-item.layout-half,
  .portfolio-item.layout-half-offset {
    grid-column: span 6;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-strong);
    padding: 1.25rem var(--container-pad);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hero-highlights,
  .packs-grid {
    grid-template-columns: 1fr;
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .portfolio-item.layout-opening-photo,
  .portfolio-item.layout-opening-video,
  .portfolio-item.layout-wide,
  .portfolio-item.layout-tall,
  .portfolio-item.layout-third,
  .portfolio-item.layout-standard,
  .portfolio-item.layout-wide-offset,
  .portfolio-item.layout-half,
  .portfolio-item.layout-half-offset,
  .portfolio-item.layout-full {
    grid-column: span 12;
  }

  .footer-meta {
    align-items: flex-start;
  }
}