/*
 * Páginas interiores (hero + contenido + galerías modulares).
 * Orden en <head>: primero css/common.css, después este archivo (variables y base en common).
 */

/* ===========================
   Page hero shell — foto + bloque blanco centrado en desktop (laterales con imagen al solapar)
   =========================== */
.page-hero-shell {
  position: relative;
  overflow: visible;
  /* Escritorio: 75% del viewport, nunca por debajo de 780px */
  --page-hero-desktop-image-height: max(780px, 75vh);
}

/* Solo la zona de foto: la península queda fuera de la capa absoluta (no puede taparla) */
.page-hero-image-block {
  position: relative;
  z-index: 0;
  /* Móvil / base: proporcional al viewport */
  height: 74vh;
  height: 74dvh;
  min-height: 380px;
  max-height: none;
}

/* Velo sobre la foto de cabecera */
.page-hero-image-block::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
}

.page-hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Contenedor <picture>: rellena la capa para que el <img> interno conserve object-fit */
.page-hero-bg-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Imagen nativa: evita fallos de background y anula height:auto global del img */
.page-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
  max-height: none;
  z-index: 0;
}

/* Contenedor transparente: en desktop no pinta blanco a todo el ancho */
.page-intro-bridge {
  position: relative;
  z-index: 2;
  background: transparent;
  margin-top: -7.5rem;
  padding: 2.5rem 1.5rem 2.65rem;
  display: flex;
  justify-content: center;
  overflow: visible;
}

/* Desktop: caja blanca ~80% centrada; a los lados se ve la foto en la zona de solapamiento */
.page-intro-inner {
  width: 86%;
  max-width: 1200px;
  margin: 0;
  background: var(--color-white);
  padding: 3.5rem 7.5rem 2.65rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  column-gap: 1.35rem;
  overflow: visible;
}

/* Título centrado en vertical respecto a la fila (= altura del párrafo) */
.page-hero-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
  color: var(--color-text-emphasis);
  margin: 0;
  display: flex;
  align-items: center;
}

.page-hero-title--recuerdos span {
  display: block;
}

.page-hero-text {
  margin: 0;
  padding: 0;
  /*font-family: var(--font-body);*/
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-emphasis);
}

/* Península escritorio: línea vía border-left del párrafo; proporción fija 1/4 · 3/4 con --fixed-split.
   En móvil sin borde, columna única. */
@media (min-width: 769px) {
  /* Escritorio: ver --page-hero-desktop-image-height en .page-hero-shell */
  .page-hero-image-block {
    height: var(--page-hero-desktop-image-height);
    min-height: var(--page-hero-desktop-image-height);
    max-height: var(--page-hero-desktop-image-height);
  }

  .page-hero-text {
    border-left: 1px solid rgba(119, 119, 119, .2);
    padding: 2rem;
  }

  .page-intro-bridge--fixed-split .page-intro-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  }

  .page-intro-bridge--fixed-split .page-hero-title {
    justify-content: flex-start;
    min-width: 0;
  }

  .page-intro-bridge--fixed-split .page-hero-text {
    min-width: 0;
  }
}

/* Primera columna de texto continúa el blanco del hero sin salto visual fuerte */
.page-body > .page-content:first-of-type {
  padding-top: 2rem;
}

/* ===========================
   Page content
   =========================== */
.page-body {
  background: var(--color-white);
  padding-bottom: 6rem;
}

.page-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  font-size: 1rem;
  line-height: 1.75;
}

.page-content p + p { margin-top: 1.2rem; }

.page-content a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.2s, background 0.2s;
}

.page-content a:hover {
  color: var(--color-white);
  background: var(--color-link);
  text-decoration: none;
}

/* Workshop y páginas largas: titulares, figuras con leyenda, listas, botón CTA */
.page-section-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-emphasis);
  margin: 5rem 0 2rem;
  line-height: 1.3;
  text-align: center;
}

.page-content > .page-section-title:first-child {
  margin-top: 0;
}

.page-content ul {
  margin: 1rem 0 1.2rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.page-content li + li {
  margin-top: 0.45rem;
}

.page-pullquote {
  margin: 5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-emphasis);
}

.page-pullquote p {
  margin: 0;
}

/* Composición en columna de contenido: apaisada + retrato, misma altura en la fila */
.page-content-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.72fr);
  gap: 0.85rem;
  margin: 3rem 0;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  aspect-ratio: 2 / 1;
}

.page-content-duo__land,
.page-content-duo__portrait {
  overflow: hidden;
  position: relative;
  min-height: 0;
  height: 100%;
}

.page-content-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-figure {
  margin: 3rem 0;
}

.page-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.page-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-light);
  text-align: center;
}

/* Hasta 1,5× el ancho de la columna .page-content; en viewport estrecho no supera el ancho útil */
.page-content .page-figure--breakout {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(150%, 100vw - 2rem);
}

.page-cta {
  text-align: center;
  margin: 7rem 0;
}

.page-btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: var(--color-accent);
  color: var(--color-white) !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.page-btn:hover {
  filter: brightness(1.08);
}

.page-content a.page-btn:hover {
  color: var(--color-white) !important;
  background: var(--color-accent);
  text-decoration: none !important;
}

/* Contacto — formulario maquetado + retrato (sin envío aún) */
.page-contact-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.page-contact-main {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 2rem;
}

.page-contact-photo {
  flex-shrink: 0;
  display: none;
}

.page-contact-photo img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: auto;
  display: block;
}

.page-contact-form-col {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 804px;
  margin-inline: auto;
  width: 100%;
}

.page-contact-form {
  margin: 0;
  position: relative;
}

/* Honeypot anti-spam: oculto visualmente, no debe rellenarse */
.page-contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-contact-field {
  margin: 0 0 1.7rem;
}

.page-contact-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-emphasis);
  margin-bottom: 0.2rem;
}

.page-contact-required-mark {
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
}

.page-contact-input,
.page-contact-textarea,
.page-contact-select {
  width: 100%;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-emphasis);
  /* Solo color: no usar shorthand `background` aquí o anula el chevron del <select> */
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 0.65rem 0.8rem;
  border-radius: 0;
}

/* Altura alineada con inputs de una línea (padding + line-height + borde) */
.page-contact-input:not([type='hidden']),
.page-contact-select {
  min-height: calc(1.5em + 1.3rem + 2px);
}

.page-contact-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333333' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1.25rem 1.25rem;
  padding-right: 2.5rem;
}

.page-contact-textarea {
  min-height: 11rem;
  resize: vertical;
}

.page-contact-input:focus,
.page-contact-textarea:focus,
.page-contact-select:focus {
  outline: 2px solid rgba(66, 102, 148, 0.35);
  outline-offset: 1px;
  border-color: rgba(66, 102, 148, 0.45);
}

/* Móvil: ancho completo; en desktop (≥769px) el modificador pasa a 60% */
.page-contact-input--w-60 {
  width: 100%;
  max-width: 100%;
}

.page-contact-actions {
  margin: 1.25rem 0 0;
  text-align: left;
}

/* Misma familia que los campos: rectángulo naranja + sans como en el sitio original */
button.page-btn.page-btn--contact {
  cursor: pointer;
  border: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
}

@media (min-width: 769px) {
  .page-contact-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.75rem 3.5rem;
    justify-content: center;
  }

  .page-contact-photo {
    display: block;
    flex: 0 1 34%;
    max-width: 340px;
  }

  .page-contact-input--w-60 {
    width: 60%;
    max-width: 100%;
  }

  .page-contact-photo img {
    margin: 0;
    max-width: 100%;
  }

  .page-contact-form-col {
    flex: 1 1 58%;
    max-width: none;
    margin-inline: 0;
  }

  button.page-btn.page-btn--contact {
    display: inline-block;
    width: auto;
  }
}

.page-separator {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-accent);
  text-align: center;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.page-separator::before,
.page-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.4;
}

/* ===========================
   gallery-01 — La Ciudad (referencia: gallery-01.html)
   Texto cols 1–2, rail 2× apaisada 3:2, retratos 2:3, col. derecha más ancha;
   fondo #f7f7f7 65% desde la izquierda; contenido centrado.
   =========================== */
.gallery-01 {
  position: relative;
  width: 100%;
  padding: 3rem 0 4rem;
  z-index: 0;
  margin-bottom: 4rem;
}

.gallery-01--light {
  background: transparent;
}

.gallery-01--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.gallery-01--light::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 65%;
  max-width: 100%;
  background: #f7f7f7;
  z-index: 0;
  pointer-events: none;
}

.gallery-01--dark::before {
  display: none;
}

.gallery-01__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery-01__frame {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
}

.gallery-01__grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 0.86fr) minmax(0, 1.28fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}

.gallery-01__caption {
  grid-column: 1 / 3;
  grid-row: 1;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-emphasis);
  align-self: start;
  padding: 2.5rem 20% 0 .5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.gallery-01__rail {
  grid-column: 3;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  align-self: stretch;
}

.gallery-01__land {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.gallery-01__portraits {
  grid-column: 1 / 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: center;
  min-height: 0;
  align-self: stretch;
  padding-bottom: 2.5rem;
}

.gallery-01__portrait {
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
}

/* Figuras e etiquetas: reglas compartidas gallery-01 … gallery-07 */
.gallery-01__land img,
.gallery-01__portrait img,
.gallery-02__land img,
.gallery-02__feature img,
.gallery-03__land img,
.gallery-03__feature img,
.gallery-04__primary img,
.gallery-04__cell img,
.gallery-05__land img,
.gallery-05__portrait img,
.gallery-06__land img,
.gallery-06__portrait img,
.gallery-07__land img,
.gallery-07__feature img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
}

.gallery-01__label,
.gallery-02__label,
.gallery-03__label,
.gallery-04__label,
.gallery-05__label,
.gallery-06__label,
.gallery-07__label {
  flex-shrink: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--color-text-emphasis);
  opacity: 0.55;
  align-self: start;
  white-space: nowrap;
  font-weight: 700;
}

.gallery-01__label {
  padding-left: 0.25rem;
}

/* ===========================
   gallery-02 … gallery-07
   g1: 65% izq. g2/g3: 65% der. g4: 70% izq. g5: 70% der. g6: 70% izq. g7: 70% der.
   =========================== */
.gallery-02,
.gallery-03,
.gallery-04,
.gallery-05,
.gallery-06,
.gallery-07 {
  position: relative;
  width: 100%;
  padding: 3rem 0 4rem;
  z-index: 0;
  margin-bottom: 4rem;
}

.gallery-02::before,
.gallery-03::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 65%;
  max-width: 100%;
  background: var(--color-bg-cream);
  z-index: 0;
  pointer-events: none;
}

/* Franja crema 70% a la derecha (misma geometría: g5, g7). */
.gallery-05::before,
.gallery-07::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 70%;
  max-width: 100%;
  background: var(--color-bg-cream);
  z-index: 0;
  pointer-events: none;
}

.gallery-04::before,
.gallery-06::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 70%;
  max-width: 100%;
  background: var(--color-bg-cream);
  z-index: 0;
  pointer-events: none;
}

.gallery-02__inner,
.gallery-03__inner,
.gallery-04__inner,
.gallery-05__inner,
.gallery-06__inner,
.gallery-07__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery-02__frame {
  display: grid;
  grid-template-columns: auto minmax(0, 0.95fr) minmax(0, 1.38fr);
  align-items: stretch;
  gap: 1.25rem;
}

.gallery-03__frame {
  display: grid;
  grid-template-columns: auto minmax(0, 0.88fr) minmax(0, 1.52fr);
  align-items: stretch;
  gap: 1.25rem;
}

/* Etiqueta vertical alineada arriba con el bloque de fotos (mismo criterio que .gallery-01__label). */
.gallery-02__label,
.gallery-03__label,
.gallery-04__label,
.gallery-07__label {
  padding-right: 0.35rem;
  align-self: start;
}

.gallery-02__stack,
.gallery-03__stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.gallery-02__land,
.gallery-03__land {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.gallery-02__caption {
  flex-shrink: 0;
  margin: 0 0 0.65rem;
  text-align: right;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--color-text-emphasis);
  padding: 2rem 1rem 0 20%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.gallery-03__caption {
  flex-shrink: 0;
  margin: 2rem 0 0.65rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--color-text-emphasis);
  padding-left: 0.75rem;
  padding-right: 20%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.gallery-02__main,
.gallery-03__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-bottom: 2rem;
}

.gallery-02__feature-slot,
.gallery-03__feature-slot {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  padding-bottom: 2rem;
}

.gallery-02__feature,
.gallery-03__feature {
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-02__feature {
  aspect-ratio: 3 / 2;
}

.gallery-03__feature {
  aspect-ratio: 16 / 8;
}

/* gallery-04 (referencia: gallery-04.html) — etiqueta + retrato grande 2:3 + pareja 2:3; hueco mayor entre grande y pareja. */
.gallery-04__frame {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.gallery-04__cluster {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.gallery-04__primary {
  flex: 1.15 1 0;
  min-width: 0;
  max-width: min(100%, 480px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
}

.gallery-04__duo {
  flex: 0.72 1 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.gallery-04__cell {
  flex: 1;
  min-width: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
}

/* gallery-05 (referencia: gallery-05.html) — columnas 48% pila 3:2 | 52% retrato 2:3 + etiqueta; pila centrada en vertical. Franja como g2/g3. */
.gallery-05__frame {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.gallery-05__stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
}

.gallery-05__land {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.gallery-05__main {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
  align-self: stretch;
  gap: 1.25rem;
  min-width: 0;
  min-height: 0;
  width: 100%;
}

.gallery-05__portrait {
  flex: 0 1 auto;
  height: 100%;
  width: auto;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-05__label {
  flex-shrink: 0;
  padding-left: 0.35rem;
  align-self: start;
}

/* gallery-06 — retratos 2:3 | 2:3 | apaisadas 3:2 (tercera columna 1.06fr, entre 1.12 y 1fr). Franja 70% izq. */
.gallery-06__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.06fr) auto;
  align-items: stretch;
  gap: 1.25rem;
  min-width: 0;
}

/* Marco fijo 2:3; la imagen rellena con object-fit (regla compartida img). */
.gallery-06__portrait {
  width: 100%;
  min-width: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
}

.gallery-06__stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
  align-self: center;
  max-height: 100%;
}

/* Cada apaisada 3:2 estricto. */
.gallery-06__land {
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.gallery-06__label {
  padding-left: 0.35rem;
  align-self: start;
}

/* gallery-07 — etiqueta izq. | pila 2×3:2 (gap 0.65) | apaisada grande; gap columnas 1.25 > gap pila. Franja 70% der. (como g5).
   Columnas y aspect-ratio del feature ligeramente afinados para que la derecha supere en altura a la pila (sin saltos bruscos). */
.gallery-07__frame {
  display: grid;
  grid-template-columns: auto minmax(0, 0.97fr) minmax(0, 2.08fr);
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.gallery-07__stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
}

.gallery-07__land {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.gallery-07__feature {
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2.06;
  overflow: hidden;
  position: relative;
}

@media (min-width: 769px) and (hover: hover) {
  .gallery-01__land img,
  .gallery-01__portrait img,
  .gallery-02__land img,
  .gallery-02__feature img,
  .gallery-03__land img,
  .gallery-03__feature img,
  .gallery-04__primary img,
  .gallery-04__cell img,
  .gallery-05__land img,
  .gallery-05__portrait img,
  .gallery-06__land img,
  .gallery-06__portrait img,
  .gallery-07__land img,
  .gallery-07__feature img {
    transition: transform 0.45s ease;
  }

  .gallery-01__land:hover img,
  .gallery-01__portrait:hover img,
  .gallery-02__land:hover img,
  .gallery-02__feature:hover img,
  .gallery-03__land:hover img,
  .gallery-03__feature:hover img,
  .gallery-04__primary:hover img,
  .gallery-04__cell:hover img,
  .gallery-05__land:hover img,
  .gallery-05__portrait:hover img,
  .gallery-06__land:hover img,
  .gallery-06__portrait:hover img,
  .gallery-07__land:hover img,
  .gallery-07__feature:hover img {
    transform: scale(1.05);
  }
}

/* ===========================
   Responsive — galería en columna solo en pantallas estrechas (<768px)
   =========================== */
@media (max-width: 768px) {
  /* Móvil: blanco a todo el ancho, sin caja estrecha */
  .page-intro-bridge {
    background: var(--color-white);
    display: block;
    margin-top: 0;
    padding: 3.5rem 2rem 2.25rem;
    border-radius: 0;
  }

  .page-intro-inner {
    width: 100%;
    max-width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1rem;
  }

  .page-hero-title {
    font-size: 1.45rem;
    letter-spacing: 0.2em;
    align-items: flex-start;
  }

  .page-hero-text {
    padding: 0;
    border: none;
    font-size: 1.1rem;
  }

  .page-content { padding: 2rem; }

  .page-content-duo {
    grid-template-columns: 1fr;
    aspect-ratio: unset;
    height: auto;
    gap: 0.75rem;
  }

  .page-content-duo__land,
  .page-content-duo__portrait {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-01__frame {
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-01__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .gallery-01__caption {
    grid-column: unset;
    grid-row: unset;
    order: 1;
    padding-right: 0;
  }

  .gallery-01__rail {
    grid-column: unset;
    grid-row: unset;
    order: 2;
  }

  .gallery-01__land {
    aspect-ratio: 3 / 2;
    min-height: 200px;
  }

  .gallery-01__portraits {
    grid-column: unset;
    grid-row: unset;
    order: 3;
  }

  .gallery-01__portrait {
    aspect-ratio: 2 / 3;
    max-height: none;
    min-height: 260px;
  }

  .gallery-01__label {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    padding: 0.5rem 0 0;
    align-self: center;
  }

  .gallery-02__frame,
  .gallery-03__frame {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-04__frame {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .gallery-02__label,
  .gallery-03__label,
  .gallery-04__label,
  .gallery-07__label {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    align-self: center;
    padding-right: 0;
    order: 1;
  }

  .gallery-05__frame {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-05__stack {
    order: 2;
  }

  .gallery-05__main {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    order: 3;
  }

  .gallery-05__portrait {
    flex: none;
    height: auto;
    width: 100%;
    max-height: none;
    aspect-ratio: 2 / 3;
    min-height: 260px;
  }

  .gallery-05__label {
    order: -1;
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    align-self: center;
    padding-left: 0;
  }

  .gallery-06__frame {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-06__frame > *:nth-child(1) {
    order: 2;
  }

  .gallery-06__frame > *:nth-child(2) {
    order: 3;
  }

  .gallery-06__frame > *:nth-child(3) {
    order: 4;
  }

  .gallery-06__frame > *:nth-child(4) {
    order: 1;
  }

  .gallery-06__portrait {
    width: 100%;
    min-height: 260px;
  }

  .gallery-06__land {
    min-height: 200px;
  }

  .gallery-06__label {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    align-self: center;
    padding-left: 0;
  }

  .gallery-07__frame {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-07__stack {
    order: 2;
  }

  .gallery-07__feature {
    order: 3;
    min-height: 200px;
  }

  .gallery-07__land {
    min-height: 200px;
  }

  .gallery-02__stack,
  .gallery-03__stack {
    order: 2;
  }

  .gallery-04__cluster {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    order: 2;
  }

  .gallery-02__main,
  .gallery-03__main {
    order: 3;
  }

  .gallery-04__primary {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .gallery-04__duo {
    flex: none;
    width: 100%;
  }

  .gallery-04__cell {
    min-height: 220px;
  }

  .gallery-02__caption,
  .gallery-03__caption {
    text-align: left;
    padding-left: 0;
    padding-right: 2rem;
    margin-bottom: 0.75rem;
  }

  .gallery-02__feature-slot,
  .gallery-03__feature-slot {
    display: block;
  }

  .gallery-02__feature,
  .gallery-03__feature {
    max-height: none;
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .page-hero-title {
  font-size: 1.7rem; 
  font-weight: 500;
  padding-bottom: 1rem;}

  .page-content { padding: 2rem; }
  
  .page-section-title {font-weight: 500; font-size: 1.8rem; text-align: left; margin-bottom: 1.2rem;}
  
  .page-btn { padding: 1.5rem 2rem;}
  
  .page-cta { margin: 5rem 0;}
  
  .end { padding: 0; }
  
}
