/* ==========================================================================
   styles.css — Héctor Salinas Fotografía
   Mobile-first. Puntos de corte: 640px, 768px, 1024px, 1440px.

   Índice
   1. Fuentes
   2. Variables (colores, tipografía, espacios)
   3. Base
   4. Utilidades y accesibilidad
   5. Botones y enlaces
   6. Header y navegación
   7. Home: hero
   8. Home: secciones
   9. Encabezados de página interior
   10. Sobre mí
   11. Portfolio y lightbox
   12. Servicios
   13. Área de clientes
   14. Contacto y formulario
   15. Footer
   16. 404
   17. Movimiento reducido
   ========================================================================== */

/* 1. Fuentes (alojadas en /fonts, sin dependencias externas) ------------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Variables ----------------------------------------------------------- */
:root {
  --navy: #0d1b2a;
  --navy-2: #1b263b;
  --gray-dark: #3d4650;
  --gray-mid: #6b737c;     /* texto secundario sobre claro (4.7:1 sobre blanco) */
  --gray-light: #f2f4f5;
  --line: #d9dde0;
  --white: #ffffff;
  --yellow: #f4c430;
  --on-dark-muted: #b4bcc6; /* texto secundario sobre marino (8:1) */
  --line-dark: rgba(255, 255, 255, 0.16);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --header-h: 68px;
  --section: clamp(4.5rem, 11vw, 9.5rem);

  --focus: var(--navy);
}

/* 3. Base ---------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
}

em {
  font-style: italic;
}

::selection {
  background: var(--yellow);
  color: var(--navy);
}

/* Secciones oscuras: invierten colores y foco */
.on-dark {
  background: var(--navy);
  color: var(--on-dark-muted);
  --focus: var(--yellow);
}
.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--white);
}

/* 4. Utilidades y accesibilidad ----------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Etiqueta editorial pequeña en mayúsculas */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.label::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--yellow);
}
.on-dark .label {
  color: var(--on-dark-muted);
}

/* Marcador de contenido pendiente: visible, fácil de buscar */
.pending {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-dark);
  background: #fff6d6;
  padding: 0.1em 0.4em;
  border-left: 3px solid var(--yellow);
}
.on-dark .pending {
  color: var(--navy);
}

/* 5. Botones y enlaces --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-2);
  border-color: var(--yellow);
}
.btn-outline {
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.on-dark .btn-outline {
  color: var(--white);
  border-color: var(--white);
}
.on-dark .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
/* En fondo claro, el amarillo hover pasa a marino para conservar contraste */
.on-light .btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Enlace de texto con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.2s ease;
}
.link-arrow:hover {
  text-underline-offset: 9px;
}
.link-arrow span[aria-hidden] {
  transition: transform 0.2s ease;
}
.link-arrow:hover span[aria-hidden] {
  transform: translateX(4px);
}
.on-dark .link-arrow {
  color: var(--white);
}

/* Enlaces dentro de texto corrido */
.prose a {
  color: var(--navy);
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.on-dark .prose a {
  color: var(--white);
}

/* 6. Header y navegación ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
  --focus: var(--yellow);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: block;
  flex-shrink: 0;
}
.brand img {
  width: auto;
  height: 34px;
}

.nav-toggle {
  display: none; /* visible solo con JS en móvil */
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0 0.25rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-toggle-bars {
  position: relative;
  width: 24px;
  height: 12px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle-bars::before {
  top: 0;
}
.nav-toggle-bars::after {
  top: 10px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover {
  border-bottom-color: var(--on-dark-muted);
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--yellow);
}

/* Móvil: con JS el menú se convierte en panel desplegable */
.js .nav-toggle {
  display: inline-flex;
}
.js .site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--navy);
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.js .site-nav.is-open {
  visibility: visible;
  opacity: 1;
}
.js .site-nav li {
  border-bottom: 1px solid var(--line-dark);
}
.js .site-nav a {
  width: 100%;
  min-height: 64px;
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 0;
}
.js .site-nav a[aria-current="page"] {
  border-bottom: 0;
}
.js .site-nav a[aria-current="page"]::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 1rem;
  background: var(--yellow);
}

/* Sin JS: lista simple en línea debajo del logo */
.no-js .site-header .wrap {
  flex-wrap: wrap;
  height: auto;
  padding-block: 0.75rem;
}
.no-js .site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 1100px) {
  :root {
    --header-h: 84px;
  }
  .brand img {
    height: 42px;
  }
  .js .nav-toggle {
    display: none;
  }
  .js .site-nav,
  .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    padding: 0;
    background: none;
    overflow: visible;
  }
  .site-nav ul,
  .no-js .site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 2.25rem);
  }
  .js .site-nav li {
    border: 0;
  }
  .js .site-nav a {
    width: auto;
    min-height: 44px;
    font-family: var(--sans);
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
  }
  .js .site-nav a:hover {
    border-bottom-color: var(--on-dark-muted);
  }
  .js .site-nav a[aria-current="page"] {
    border-bottom-color: var(--yellow);
  }
  .js .site-nav a[aria-current="page"]::after {
    display: none;
  }
  .site-nav .nav-cta a {
    padding: 0 1.1rem;
    border: 1px solid var(--yellow) !important;
  }
  .site-nav .nav-cta a:hover {
    background: var(--yellow);
    color: var(--navy);
  }
  .site-nav .nav-cta a[aria-current="page"] {
    background: var(--yellow);
    color: var(--navy);
  }
}

/* 7. Home: hero ---------------------------------------------------------- */
.hero {
  display: grid;
  background: var(--navy);
}
.hero-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 78svh;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-media figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(13, 27, 42, 0.72);
  padding: 0.35rem 0.6rem;
}
.hero-text {
  padding: 2.5rem var(--gutter) 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-kicker {
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(3.5rem, 15vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--white);
}
.hero h1 em {
  display: block;
  padding-left: 0.55em;
}
.hero-lead {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.35;
  color: var(--white);
}
.hero-specialties {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero-specialties span[aria-hidden] {
  color: var(--yellow);
  padding-inline: 0.4em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}

@media (min-width: 768px) {
  .hero-media {
    aspect-ratio: 16 / 11;
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    min-height: calc(100svh - var(--header-h));
  }
  .hero-media {
    order: 2;
    aspect-ratio: auto;
    height: 100%;
    min-height: 620px;
    max-height: 980px;
  }
  .hero-text {
    order: 1;
    padding: 4rem clamp(2rem, 5vw, 5rem) clamp(3rem, 7vw, 6rem) var(--gutter);
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .hero-media figcaption {
    right: auto;
    left: 0;
    bottom: 0;
    background: var(--navy);
    padding: 0.6rem 1rem;
  }
}

/* 8. Home: secciones ----------------------------------------------------- */
.section {
  padding-block: var(--section);
}
.bg-light {
  background: var(--gray-light);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head h2 {
  margin-top: 1rem;
}

/* 8a. Introducción */
.intro-grid {
  display: grid;
  gap: 2rem;
}
.intro-statement {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3.4vw, 2.75rem);
  line-height: 1.22;
  color: var(--navy);
  letter-spacing: -0.01em;
  max-width: 26em;
}
.intro-statement em {
  color: var(--gray-dark);
}
.intro-body {
  display: grid;
  gap: 1.5rem;
  max-width: 34rem;
}
@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }
  .intro-grid .label {
    grid-column: 1 / 4;
    align-self: start;
    padding-top: 0.9rem;
  }
  .intro-statement {
    grid-column: 4 / 13;
  }
  .intro-body {
    grid-column: 8 / 13;
    margin-top: 1.5rem;
  }
}

.intro-photo {
  margin: 0;
  max-width: 26rem;
}
.intro-photo img {
  width: 100%;
}
@media (min-width: 1024px) {
  .intro-body {
    align-self: start;
    align-content: start;
  }
  .intro-photo {
    grid-column: 2 / 7;
    grid-row: 2;
    max-width: none;
    margin-top: 1.5rem;
  }
}

/* 8b. Selección: mosaico asimétrico */
.mosaic {
  display: grid;
  gap: 2.5rem;
}
.mosaic figure {
  margin: 0;
}
.mosaic img {
  width: 100%;
}
.mosaic figcaption,
.photo-caption {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gray-mid);
}
.mosaic figcaption b,
.photo-caption b {
  font-weight: 600;
  color: var(--navy);
}
.mosaic .m2,
.mosaic .m4 {
  width: 82%;
  margin-left: auto;
}
.mosaic .m3 {
  width: 82%;
}
@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
  }
  .mosaic .m1 {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
  }
  .mosaic .m2 {
    grid-column: 8 / 13;
    width: auto;
    margin-top: 5rem;
  }
  .mosaic .m3 {
    grid-column: 8 / 11;
    width: auto;
  }
  .mosaic .m4 {
    grid-column: 3 / 9;
    width: auto;
    margin-top: 1rem;
  }
  .mosaic .m5 {
    grid-column: 10 / 13;
    margin-top: 8rem;
  }
}
@media (min-width: 1024px) {
  .mosaic {
    gap: 2.5rem;
  }
}

/* 8c. Servicios en Home: índice numerado */
.services-index {
  display: grid;
  gap: 3rem;
}
.services-aside p {
  max-width: 28rem;
  margin-top: 1.5rem;
}
.services-aside figure {
  margin: 2.5rem 0 0;
  display: none;
}
.service-rows {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.service-rows li {
  border-bottom: 1px solid var(--line-dark);
}
.service-rows a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1.6rem 0;
  text-decoration: none;
}
.service-rows .num {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--on-dark-muted);
  padding-top: 0.3rem;
}
.service-rows h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  transition: color 0.2s ease;
}
.service-rows .desc {
  font-size: 0.9375rem;
}
.service-rows a:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
@media (min-width: 1024px) {
  .services-index {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: start;
  }
  .services-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .services-aside figure {
    display: block;
    width: 70%;
  }
  .service-rows a {
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    align-items: baseline;
    padding: 2rem 0;
  }
  .service-rows .num {
    grid-row: auto;
  }
  .service-rows .desc {
    grid-column: 2 / 3;
  }
  .service-rows .go {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
  }
}
.service-rows .go {
  display: none;
}
@media (min-width: 1024px) {
  .service-rows .go {
    display: block;
  }
}

/* 8d. Proceso / diferenciadores */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}
.steps li {
  border-top: 1px solid var(--navy);
  padding-top: 1.25rem;
}
.steps .step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gray-mid);
  margin-bottom: 1rem;
}
.steps h3 {
  margin-bottom: 0.75rem;
}
.steps p {
  font-size: 0.9875rem;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 2.5rem;
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps li:nth-child(even) {
    margin-top: 3rem;
  }
}

/* 8e. Imagen a sangre con placa de texto */
.feature {
  position: relative;
  background: var(--navy);
}
.feature-media {
  margin: 0;
  height: clamp(360px, 75vw, 860px);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.feature-plate {
  background: var(--navy);
  padding: 2.5rem var(--gutter) 3rem;
}
.feature-plate h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  margin: 1rem 0 1rem;
}
.feature-plate p {
  max-width: 30rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .feature-plate {
    position: absolute;
    right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    bottom: 0;
    width: min(460px, 40vw);
    padding: 2.75rem 2.75rem 2.5rem;
  }
}

/* 8f. Cierre: contacto + clientes */
.closing {
  display: grid;
}
.closing > div {
  padding: clamp(3.5rem, 9vw, 7.5rem) var(--gutter);
}
.closing h2 {
  margin: 1.25rem 0 1.25rem;
  max-width: 14ch;
}
.closing p {
  max-width: 30rem;
  margin-bottom: 2rem;
}
.closing-contact {
  background: var(--navy-2);
}
.closing-clients {
  background: var(--gray-light);
}
@media (min-width: 1024px) {
  .closing {
    grid-template-columns: 1.15fr 1fr;
  }
  .closing-contact {
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) !important;
  }
}

/* 9. Encabezados de página interior ------------------------------------- */
.page-head {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  margin-top: 1.25rem;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.page-head .lead {
  margin-top: 1.75rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}
@media (min-width: 1024px) {
  .page-head .wrap {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 3rem;
  }
  .page-head .lead {
    margin-top: 0;
  }
}

/* 10. Sobre mí ----------------------------------------------------------- */
.about-hero {
  display: grid;
  background: var(--navy);
}
.about-photo {
  margin: 0;
  background: #000;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero-text {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  align-self: center;
}
.about-hero-text h1 {
  margin: 1.25rem 0 1.75rem;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
}
.about-hero-text p {
  max-width: 34rem;
}
.about-hero-text p + p {
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .about-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .about-photo {
    min-height: 560px;
  }
}

.about-columns {
  display: grid;
  gap: 3.5rem;
}
.about-columns h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 1rem 0 1.5rem;
}
.about-columns .prose p + p {
  margin-top: 1.1rem;
}
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--navy);
  border-left: 2px solid var(--yellow);
  padding-left: 1.5rem;
  margin: 0;
}
@media (min-width: 1024px) {
  .about-columns {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem 2rem;
  }
  .about-columns .col-a {
    grid-column: 1 / 6;
  }
  .about-columns .col-b {
    grid-column: 7 / 13;
  }
  .about-columns .col-quote {
    grid-column: 2 / 10;
  }
}

.specialties {
  list-style: none;
  padding: 0;
  columns: 1;
  border-top: 1px solid var(--line);
}
.specialties li {
  break-inside: avoid;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
}
.specialties a {
  text-decoration: none;
}
.specialties a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
}
@media (min-width: 640px) {
  .specialties {
    columns: 2;
    column-gap: 2rem;
  }
}

/* 11. Portfolio y lightbox ---------------------------------------------- */
.filters {
  display: none; /* solo útil con JS */
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.js .filters {
  display: flex;
}
.filters button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dark);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.filters button:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filters button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--yellow);
}
.filters .count {
  opacity: 0.7;
  margin-left: 0.25rem;
}
@media (min-width: 1024px) {
  .filters {
    flex-wrap: wrap;
  }
}

.gallery {
  columns: 1;
  column-gap: 1.25rem;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.75rem;
}
.gallery-item a {
  display: block;
  overflow: hidden;
  background: var(--gray-light);
}
.gallery-item img {
  width: 100%;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.gallery-item a:hover img {
  transform: scale(1.02);
}
.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--gray-mid);
}
.gallery-item figcaption b {
  font-weight: 600;
  color: var(--navy);
}
@media (min-width: 640px) {
  .gallery {
    columns: 2;
    column-gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .gallery {
    columns: 3;
    column-gap: 2rem;
  }
  .gallery-item {
    margin-bottom: 2.25rem;
  }
}

.gallery-empty {
  padding: 3rem 0;
  max-width: 34rem;
}
.gallery-empty h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Lightbox basado en <dialog> */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: rgba(8, 16, 26, 0.97);
  color: var(--white);
  --focus: var(--yellow);
}
.lightbox::backdrop {
  background: rgba(8, 16, 26, 0.9);
}
.lightbox-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}
.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--gutter);
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}
.lightbox figure {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem var(--gutter) 1.25rem;
}
.lightbox-caption {
  font-size: 0.875rem;
  text-align: center;
  flex: 1;
}
.lightbox button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-dark);
}
.lightbox button:hover {
  border-color: var(--yellow);
}

/* 12. Servicios ---------------------------------------------------------- */
.service {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}
.service:last-of-type {
  border-bottom: 0;
}
.service-media {
  margin: 0;
}
.service-media img {
  width: 100%;
}
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gray-mid);
}
.service h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.5rem 0 1.25rem;
}
.service-desc {
  max-width: 34rem;
}
.service h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin: 2rem 0 0.75rem;
}
.features {
  list-style: none;
  padding: 0;
  max-width: 34rem;
  border-top: 1px solid var(--line);
}
.features li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9875rem;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  outline: 1px solid var(--navy);
}
.service-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}
.service-cta small {
  font-size: 0.8125rem;
  color: var(--gray-mid);
}
@media (min-width: 900px) {
  .service {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
  }
  .service-media {
    grid-column: 1 / 6;
  }
  .service-body {
    grid-column: 7 / 13;
  }
  .service:nth-of-type(even) .service-media {
    grid-column: 8 / 13;
    order: 2;
  }
  .service:nth-of-type(even) .service-body {
    grid-column: 1 / 7;
    order: 1;
  }
  /* Ritmo: algunas imágenes más pequeñas y desplazadas */
  .service:nth-of-type(3n) .service-media {
    grid-column: 2 / 6;
  }
}

.also {
  display: grid;
  gap: 1.5rem;
}
.also ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.also li {
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
}
.also li strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
@media (min-width: 900px) {
  .also {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 4rem;
  }
  .also ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* 13. Área de clientes --------------------------------------------------- */
.clients {
  display: grid;
  min-height: calc(100svh - var(--header-h));
  background: var(--navy);
}
.clients-media {
  margin: 0;
  background: #000;
  max-height: 60svh;
  overflow: hidden;
}
.clients-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.clients-text {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  align-self: center;
}
.clients-text h1 {
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.95;
}
.clients-text .lead {
  max-width: 30rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--white);
}
.clients-text .btn {
  margin-top: 2.25rem;
}
.clients-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
}
.clients-help {
  list-style: none;
  padding: 0;
  margin-top: 3.5rem;
  max-width: 34rem;
  border-top: 1px solid var(--line-dark);
}
.clients-help li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.9375rem;
}
.clients-help h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.35rem;
}
@media (min-width: 1024px) {
  .clients {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .clients-media {
    max-height: none;
  }
}

/* 14. Contacto y formulario --------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 4rem;
}
.channels {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.channels li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9875rem;
}
.channels .k {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding-top: 0.2rem;
}
.channels a {
  color: var(--navy);
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.contact-aside h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 1rem 0 1.5rem;
}
.contact-aside p {
  margin-bottom: 2rem;
  max-width: 28rem;
}

.form {
  display: grid;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  gap: 1.5rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.field .opt {
  font-weight: 400;
  color: var(--gray-mid);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid #9aa2ab;
  border-radius: 0;
  color: var(--navy);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea {
  min-height: 170px;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--navy);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 0;
  border-color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--yellow);
}
.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea {
  border-color: #b3261e;
  border-width: 2px;
}
.field-error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b3261e;
}
.field-error::before {
  content: "Error: ";
}
.hp {
  position: absolute;
  left: -9999px;
}
.form-status {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--gray-light);
  border-left: 3px solid var(--navy);
  font-size: 0.9375rem;
}
.form-status:empty {
  display: none;
}
.form-status .btn {
  margin-top: 1rem;
}
.form-status.is-ok {
  border-left-color: #1f7a4d;
}
.form-status.is-error {
  border-left-color: #b3261e;
}
.form-legal {
  font-size: 0.8125rem;
  color: var(--gray-mid);
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 6rem;
  }
  .contact-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

/* 15. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-muted);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  font-size: 0.9375rem;
  --focus: var(--yellow);
}
.footer-grid {
  display: grid;
  gap: 2.75rem;
  padding-bottom: 3.5rem;
}
.footer-brand img {
  width: 220px;
  height: auto;
}
.footer-brand p {
  margin-top: 1.25rem;
  max-width: 22rem;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer li a,
.site-footer li span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* 16. 404 ---------------------------------------------------------------- */
.notfound {
  min-height: calc(80svh - var(--header-h));
  display: grid;
  align-items: center;
}
.notfound .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(6rem, 22vw, 16rem);
  line-height: 0.8;
  color: var(--gray-light);
  -webkit-text-stroke: 1px var(--line);
}
.notfound h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin: 1.5rem 0 1rem;
}
.notfound ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2rem;
}

/* 18. Selector de idioma (ES / EN) -------------------------------------- */
.brand { order: 0; }
.lang-switch {
  order: 1;
  margin-left: auto;
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.nav-toggle { order: 2; }
.site-nav { order: 3; }
.lang-switch a,
.lang-switch span[aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 44px;
  padding: 0 0.35rem;
  color: var(--on-dark-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.lang-switch span[aria-current] {
  color: var(--white);
  border-bottom-color: var(--yellow);
}
.lang-switch a:hover {
  color: var(--white);
}
.no-js .lang-switch { margin-left: auto; }
@media (min-width: 1100px) {
  .site-nav { order: 1; margin-left: auto; }
  .lang-switch {
    order: 2;
    margin-left: clamp(1rem, 1.6vw, 1.75rem);
    margin-right: 0;
    padding-left: clamp(1rem, 1.6vw, 1.75rem);
    border-left: 1px solid var(--line-dark);
  }
}

/* 19. Inicio: etiqueta de próxima temporada ------------------------------ */
.next-badge {
  grid-column: 2 / 3;
  justify-self: start;
  margin-top: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 20. Servicios: subtítulo, tipos, destacado, temporadas ---------------- */
.service-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy);
  margin: -0.5rem 0 1rem;
}
.kinds {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  max-width: 34rem;
  display: grid;
  gap: 0.6rem;
}
.kinds strong {
  color: var(--navy);
  font-weight: 600;
}
.highlight {
  margin-top: 1.75rem;
  max-width: 34rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--yellow);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--navy);
}
.seasons {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
}
.seasons li {
  position: relative;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.45;
}
.seasons h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--navy);
  line-height: 1.1;
}
.seasons .season-when {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin: 0.35rem 0 0.5rem;
}
.season-badge {
  display: none;
}
.seasons li.is-next {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-dark-muted);
}
.seasons li.is-next h4 { color: var(--white); }
.seasons li.is-next .season-when { color: var(--yellow); }
.seasons li.is-next .season-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 21. Preguntas frecuentes ---------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--navy);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.3;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 1.25rem;
  color: var(--gray-mid);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.faq details p {
  padding: 0 2rem 1.25rem 0;
  max-width: 40rem;
  font-size: 0.9875rem;
}

/* 22. Sobre mí: datos en corto ------------------------------------------ */
.facts {
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9875rem;
}
.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding-top: 0.2rem;
}
.facts dd {
  margin: 0;
  color: var(--navy);
}

/* 17. Movimiento reducido ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .gallery-item a:hover img {
    transform: none;
  }
}
