/**
 * ARCAICOS — Inicio · acabado premium (mockup / PDF)
 * Capas, curvas SVG, texturas y sombras; solo con body.page-home
 */

/* —— Tokens locales —— */
.page-home {
  --home-cream: #f9f4f0;
  --home-cream-mid: #f3ede4;
  --home-cream-deep: #e8dfd4;
  --home-shadow-soft: 0 18px 48px rgba(45, 12, 8, 0.12);
  --home-shadow-card: 0 8px 28px rgba(45, 12, 8, 0.1), 0 2px 8px rgba(45, 12, 8, 0.06);
  --home-radius-section: 0;
}

/* —— Inicio: secciones claras más transparentes que el resto del sitio —— */
body.page-home .lines-section.lines-section--pdf,
body.page-home .gallery-dashboard,
body.page-home .franchise-cta--premium,
body.page-home .section--catalog-bg {
  background-color: rgba(250, 247, 242, 0.45) !important;
  background-image: none !important;
}

body.page-home .footer.footer--home-pdf {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

/* —— Hero: fondo inicio (curva S · granate + damasco — imagen de maqueta) —— */
.page-home .hero--pdf {
  isolation: isolate;
  background-color: #4d120c;
  background-image: url('../assets/images/backgrounds/hero-inicio-curva.png');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

/* Velo suave: la imagen ya trae contraste; solo refuerza lectura en la zona izquierda */
.page-home .hero--pdf::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20, 6, 4, 0.22) 0%,
    rgba(20, 6, 4, 0.08) 32%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 0;
}

.page-home .hero--pdf::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 28% 48%,
    transparent 40%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Escritorio: fondo alineado a la izquierda + columnas logo / producto encajadas con granate | damasco */
@media (min-width: 1024px) {
  .page-home .hero--pdf {
    background-position: left center;
    background-size: cover;
  }

  .page-home .hero--pdf .hero__inner {
    align-items: center;
    justify-items: stretch;
  }

  .page-home .hero--pdf .hero__content {
    justify-self: start;
    max-width: min(34rem, 46vw);
    padding-right: var(--space-4);
  }

  /* stretch: si justify-self:end el ítem encoge al “contenido” (0px con imgs absolutas) y desaparece */
  .page-home .hero--pdf .hero__image-wrap--showcase {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .page-home .hero--pdf .hero__tagline,
  .page-home .hero--pdf .hero__description,
  .page-home .hero--pdf .hero__actions {
    display: none !important;
  }
}

/* Arabescos sueltos del tema: ocultos para no competir con el fondo compuesto */
.page-home .hero--pdf .hero__decorations {
  display: none;
}

.page-home .hero--pdf .hero__inner {
  z-index: 2;
}

/* Por encima de velos decorativos; asegura interacción táctil/clic en la columna visual */
.page-home .hero--pdf .hero__image-wrap--showcase {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-home .hero--pdf .hero__content {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.page-home .hero--pdf .hero__logo-wrap img {
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

/* Marco fijo (mismo ancho/alto de bloque); contain = imagen completa sin recorte (puede quedar aire si el PNG es muy distinto) */
.page-home .hero--pdf .hero__showcase-stack {
  position: relative;
  display: block;
  flex: 0 1 auto;
  width: 100%;
  max-width: min(580px, 100%);
  margin-inline: auto;
  aspect-ratio: 580 / 480;
  overflow: visible;
  cursor: ew-resize;
  filter: drop-shadow(0 28px 72px rgba(0, 0, 0, 0.42));
  contain: layout style;
}

.page-home .hero--pdf .hero__showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: opacity 0.48s var(--ease-out-soft);
}

.page-home .hero--pdf .hero__showcase-img.is-front {
  z-index: 2;
  opacity: 1;
}

.page-home .hero--pdf .hero__showcase-img:not(.is-front) {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Onda inferior: doble capa + sombra (curva tipo mockup) */
.page-home .hero__wave--pdf {
  z-index: 4;
  height: clamp(80px, 11vw, 112px);
  filter: drop-shadow(0 -6px 20px rgba(0, 0, 0, 0.12));
}

.page-home .hero__wave--pdf path.hero__wave__layer--back {
  opacity: 0.5;
}

.page-home .hero__wave--pdf svg {
  min-height: 80px;
  display: block;
}

/* —— Catálogo líneas —— */
.page-home .lines-section.lines-section--pdf {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  border-block: none !important;
}

/* pseudo-elementos de líneas: ocultos (el fondo fijo del body es suficiente) */
.page-home .lines-section.lines-section--pdf::before,
.page-home .lines-section.lines-section--pdf::after {
  display: none !important;
}

.page-home .lines-section.lines-section--pdf .section-header {
  position: relative;
  z-index: 1;
}

.page-home .lines-section.lines-section--pdf .section-header__eyebrow {
  letter-spacing: 0.2em;
}

.page-home .lines-section.lines-section--pdf .section-header__title {
  color: var(--color-primary);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-home .lines-section.lines-section--pdf .section-header__title {
    background: linear-gradient(180deg, #4d120c 0%, #6b1a10 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.page-home .lines-section__deco-lineas {
  display: block;
  width: min(280px, 72%);
  height: auto;
  margin: 0 auto var(--space-6);
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(77, 18, 12, 0.12));
}

.page-home .line-card--pdf {
  border-radius: 0;
  border: 1px solid rgba(77, 18, 12, 0.07);
  box-shadow: var(--home-shadow-card);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo);
}

.page-home .line-card--pdf:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(45, 12, 8, 0.16), 0 4px 14px rgba(45, 12, 8, 0.08);
}

.page-home .line-card--pdf .line-card__label {
  background: linear-gradient(180deg, #5e1811 0%, #4d120c 100%);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.page-home .line-card--pdf .line-card__img-wrap {
  background: linear-gradient(180deg, #fffefb 0%, #faf6f0 100%);
}

/* —— Quienes somos —— */
.page-home .about--pdf {
  position: relative;
  padding-top: clamp(4.5rem, 10vw, 7rem);
  z-index: 2;
  background-color: #4d120c !important;
  background-image: url('../assets/images/mockup/quienes-somos-corazon.png') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-home .about--pdf .about__image--pdf {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.5);
}

/* —— Mapa —— */
.page-home .map-section--pdf {
  position: relative;
  background-color: #7a1018 !important;
  background-image: url('../assets/images/backgrounds/fondo-frutas-rojo.png') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-home .map-section__title--pdf {
  color: #ffffff;
}

.page-home .map-section__subtitle--pdf {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .map-filter__label {
  color: rgba(255, 255, 255, 0.9);
}

.page-home .map-filter__control {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.page-home .map-section--pdf .map-section__contact-item {
  color: rgba(255, 255, 255, 0.85);
}

.page-home .map-section--pdf .map-section__contact-item:hover {
  color: #ffffff;
}

.page-home .map-section__embed--pdf {
  border: none;
  border-radius: 0;
  padding: 3px;
  background: linear-gradient(135deg, #3d8a8a 0%, #1e5c5c 50%, #0f3d3d 100%);
  box-shadow: var(--home-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.page-home .map-section__embed--pdf iframe {
  border-radius: 0;
}

/* —— Franquicia CTA —— */
.page-home .franchise-cta--premium {
  position: relative;
  overflow: hidden;
}

.page-home .franchise-cta--premium > .container {
  position: relative;
  z-index: 1;
}

.page-home .franchise-cta--premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/mockup/base-banner.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-home .franchise-cta--premium::after {
  background: none !important;
}

.page-home .franchise-cta--premium .franchise-cta__image-wrap {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--home-shadow-soft);
  border: 1px solid rgba(77, 18, 12, 0.08);
}

.page-home .franchise-cta--premium .franchise-cta__image-wrap img {
  transition: transform 0.6s var(--ease-out-expo);
}

.page-home .franchise-cta--premium .franchise-cta__image-wrap:hover img {
  transform: scale(1.03);
}

/* —— Comunidad: PNG 1024×682 completo, escala uniforme (sin estirar) —— */
.page-home .community--pdf {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Misma proporción que fondo-comunidad.png (1024×682): el fondo contain encaja entero sin estirar */
  aspect-ratio: 1024 / 682;
  background-color: transparent !important;
  background-image: none !important;
}

.page-home .community--pdf::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-bg-light);
  background-image: url('../assets/images/backgrounds/galeria-damasco.png');
  background-repeat: repeat;
  background-size: clamp(480px, 55vw, 800px) auto;
  background-position: center top;
  pointer-events: none;
}

.page-home .community--pdf::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../assets/images/backgrounds/fondo-comunidad.png');
  /* Visible entera, misma escala X/Y; con la caja en 1024:682 rellena el hueco sin recorte */
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.page-home .community--pdf > * {
  position: relative;
  z-index: 2;
}

.page-home .community__pdf-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  max-width: min(1200px, 100%);
  margin-inline: auto;
  min-height: 0;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
}

.page-home .community__pdf-panel--text {
  background-color: transparent !important;
  padding-block: clamp(2.25rem, 6vw, 3.75rem);
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
}

.page-home .community__pdf-panel--photo {
  background-color: transparent !important;
}

.page-home .community__image-wrap--pdf {
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.65),
    var(--home-shadow-soft);
}

.page-home .community__title--pdf {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .page-home .community__pdf-shell {
    grid-template-columns: 1fr;
  }
}

/* —— Footer: plantas desde mockup —— */
body.page-home .footer.footer--home-pdf::after {
  background-image: url('../assets/images/mockup/plantas-base.png');
  background-size: 100% auto;
  opacity: 0.95;
}

/* —— Botones hero: contraste fuerte sobre el fondo vino —— */
.page-home .hero--pdf .btn--white {
  background: linear-gradient(180deg, #fffefb 0%, #f7f2ea 100%);
  color: var(--color-primary);
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-weight: var(--weight-bold);
}

.page-home .hero--pdf .btn--white:hover {
  background: #ffffff;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.45),
    0 2px 12px rgba(0, 0, 0, 0.25);
}

.page-home .hero--pdf .btn--outline-white {
  background: rgba(8, 4, 3, 0.55);
  color: #fffefb;
  border: 2px solid rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-home .hero--pdf .btn--outline-white:hover {
  background: rgba(18, 10, 8, 0.65);
  border-color: #ffffff;
  color: #ffffff;
}

@media (max-width: 767px) {
  .page-home .lines-section__deco-lineas {
    max-width: 200px;
    margin-bottom: var(--space-4);
  }

  .page-home .about--pdf {
    margin-top: -16px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .page-home .hero__wave--pdf {
    height: clamp(64px, 14vw, 88px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .line-card--pdf:hover {
    transform: none;
  }

  .page-home .community__social-btn--pdf:hover {
    transform: none;
  }
}

/* —— Hero inicio: dos columnas + fila de botones centrada; copy bajo logo oculto —— */
@media (max-width: 1023px) {
  .page-home .hero--pdf {
    min-height: min(88vh, 880px);
    background-size: cover;
    /* Móvil/tablet: centrar el encarte para que se vea curva + ambas zonas */
    background-position: center top;
  }

  .page-home .hero--pdf .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      'hero-logo hero-visual'
      'hero-cta hero-cta';
    align-items: center;
    text-align: left;
    gap: clamp(0.5rem, 2.5vw, 1rem);
    row-gap: clamp(1rem, 3vw, 1.5rem);
    padding-block: clamp(1.75rem, 5vw, 3.5rem);
    padding-inline: clamp(0.65rem, 2.5vw, 1rem);
    max-width: var(--container-2xl);
  }

  .page-home .hero--pdf .hero__content {
    display: contents;
  }

  .page-home .hero--pdf .hero__logo-frame {
    grid-area: hero-logo;
    margin-inline: 0;
    margin-bottom: 0;
    max-width: 100%;
    align-items: flex-start;
  }

  .page-home .hero--pdf .hero__logo-wrap {
    margin-inline: 0;
    width: min(100%, 280px);
  }

  .page-home .hero--pdf .hero__tagline,
  .page-home .hero--pdf .hero__description {
    display: none;
  }

  .page-home .hero--pdf .hero__image-wrap--showcase {
    grid-area: hero-visual;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .page-home .hero--pdf .hero__showcase-stack {
    max-width: min(280px, 44vw);
  }

  .page-home .hero--pdf .hero__actions {
    grid-area: hero-cta;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    padding-top: var(--space-2);
  }

  .page-home .hero--pdf .hero__actions .btn {
    font-size: var(--size-sm);
    padding: var(--space-4) var(--space-7);
  }

  .page-home .hero--pdf .hero__logo-deco {
    width: min(12rem, 72%);
    opacity: 0.32;
  }
}

@media (max-width: 767px) {
  .page-home .hero--pdf .hero__inner {
    padding-block: var(--space-10);
    gap: var(--space-3);
  }

  .page-home .hero--pdf .hero__logo-wrap {
    width: min(100%, 240px);
  }

  .page-home .hero--pdf .hero__showcase-stack {
    max-width: min(240px, 46vw);
  }

  .page-home .hero--pdf .hero__logo-deco {
    width: min(10rem, 70%);
    opacity: 0.28;
  }
}

@media (max-width: 479px) {
  .page-home .hero--pdf .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
    gap: var(--space-2);
    padding-inline: var(--space-3);
    padding-block: var(--space-8);
  }

  .page-home .hero--pdf .hero__logo-wrap {
    width: min(100%, 200px);
  }

  .page-home .hero--pdf .hero__showcase-stack {
    max-width: min(200px, 48vw);
  }

  .page-home .hero--pdf .hero__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 20rem;
  }

  .page-home .hero--pdf .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* —— Galería dashboard (inicio): productos + personas —— */
/* Fondo en capas sobre el propio section: el ::after opaco tapaba el damasco; así el patrón sí se ve */
.page-home .gallery-dashboard {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}

.page-home .gallery-dashboard > .container {
  position: relative;
  z-index: 1;
}

.page-home .gallery-dashboard .section-header__title {
  color: var(--color-primary);
}

.page-home .gallery-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows:
    minmax(160px, 14vw)
    minmax(160px, 14vw)
    minmax(200px, 18vw)
    minmax(200px, 18vw)
    minmax(180px, 15vw);
  gap: clamp(0.65rem, 1.4vw, 1rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.page-home .gallery-dashboard__tile {
  position: relative;
  margin: 0;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  padding: 6px;
  border: 2px solid rgba(77, 18, 12, 0.1);
  box-shadow:
    0 4px 16px rgba(45, 12, 8, 0.1),
    0 1px 3px rgba(45, 12, 8, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.page-home a.gallery-dashboard__tile {
  text-decoration: none;
  color: inherit;
}

.page-home a.gallery-dashboard__tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(45, 12, 8, 0.14);
}

.page-home .gallery-dashboard__tile--feature {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.page-home .gallery-dashboard__tile--p1 {
  grid-column: 3;
  grid-row: 1;
}

.page-home .gallery-dashboard__tile--p2 {
  grid-column: 4;
  grid-row: 1;
}

.page-home .gallery-dashboard__tile--p3 {
  grid-column: 3;
  grid-row: 2;
}

.page-home .gallery-dashboard__tile--p4 {
  grid-column: 4;
  grid-row: 2;
}

.page-home .gallery-dashboard__tile--pareja {
  grid-column: 1 / 3;
  grid-row: 3;
}

.page-home .gallery-dashboard__tile--mama-hijo {
  grid-column: 3 / 5;
  grid-row: 3;
}

.page-home .gallery-dashboard__tile--hero-shot {
  grid-column: 1 / 3;
  grid-row: 4;
}

.page-home .gallery-dashboard__tile--local {
  grid-column: 3 / 5;
  grid-row: 4;
}

.page-home .gallery-dashboard__tile--banner {
  grid-column: 1 / 5;
  grid-row: 5;
}

.page-home .gallery-dashboard__media {
  position: absolute;
  inset: 0;
  background: #f3ebe4;
  border-radius: 10px;
  overflow: hidden;
}

.page-home .gallery-dashboard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.page-home a.gallery-dashboard__tile:hover .gallery-dashboard__media img {
  transform: scale(1.03);
}

.page-home .gallery-dashboard__tile--feature .gallery-dashboard__media img,
.page-home .gallery-dashboard__tile--pareja .gallery-dashboard__media img,
.page-home .gallery-dashboard__tile--mama-hijo .gallery-dashboard__media img,
.page-home .gallery-dashboard__tile--banner .gallery-dashboard__media img {
  object-position: center 30%;
}

.page-home .gallery-dashboard__tile--product .gallery-dashboard__media {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .gallery-dashboard__tile--product .gallery-dashboard__media img {
  object-fit: contain;
  max-width: 88%;
  max-height: 88%;
}

.page-home .gallery-dashboard__tile--feature .gallery-dashboard__media,
.page-home .gallery-dashboard__tile--people-bar .gallery-dashboard__media,
.page-home .gallery-dashboard__tile--hero-shot .gallery-dashboard__media,
.page-home .gallery-dashboard__tile--local .gallery-dashboard__media {
  position: absolute;
  inset: 0;
}

.page-home .gallery-dashboard__tile--product {
  aspect-ratio: 1;
  align-self: stretch;
}

.page-home .gallery-dashboard__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.85rem, 2vw, 1.15rem);
  background: linear-gradient(0deg, rgba(30, 10, 6, 0.82) 0%, rgba(30, 10, 6, 0.2) 55%, transparent 100%);
  color: #fffefb;
  font-size: var(--size-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  pointer-events: none;
}

.page-home .gallery-dashboard__tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

.page-home .gallery-dashboard__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.5rem 0.65rem;
  background: rgba(77, 18, 12, 0.88);
  color: #fff;
  font-size: var(--size-xs);
  font-weight: var(--weight-bold);
  text-align: center;
}

.page-home .gallery-dashboard__footer-cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

@media (max-width: 1023px) {
  .page-home .gallery-dashboard__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(140px, 26vw);
  }

  .page-home .gallery-dashboard__tile--feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: min(52vw, 340px);
  }

  .page-home .gallery-dashboard__tile--p1,
  .page-home .gallery-dashboard__tile--p2,
  .page-home .gallery-dashboard__tile--p3,
  .page-home .gallery-dashboard__tile--p4 {
    grid-column: span 1;
    grid-row: auto;
  }

  .page-home .gallery-dashboard__tile--pareja,
  .page-home .gallery-dashboard__tile--mama-hijo {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: min(48vw, 320px);
  }

  .page-home .gallery-dashboard__tile--hero-shot,
  .page-home .gallery-dashboard__tile--local {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: min(44vw, 280px);
  }

  .page-home .gallery-dashboard__tile--banner {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: min(44vw, 280px);
  }
}

@media (max-width: 559px) {
  .page-home .gallery-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .page-home .gallery-dashboard__tile--p1,
  .page-home .gallery-dashboard__tile--p2,
  .page-home .gallery-dashboard__tile--p3,
  .page-home .gallery-dashboard__tile--p4 {
    grid-column: 1 / -1;
    max-width: 280px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Tiles clickeables: cursor + hover */
.page-home .gallery-dashboard__tile[data-lightbox] {
  cursor: pointer;
}

.page-home .gallery-dashboard__tile[data-lightbox]:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(45, 12, 8, 0.14);
}

.page-home .gallery-dashboard__tile[data-lightbox]:hover .gallery-dashboard__media img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gallery-dashboard__tile[data-lightbox]:hover,
  .page-home .gallery-dashboard__tile[data-lightbox]:hover .gallery-dashboard__media img {
    transform: none;
  }
}

/* —— Lightbox (modal de galería) —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 400);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 2, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

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

.lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox.is-open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2.5vw, 1.5rem);
  right: clamp(0.75rem, 2.5vw, 1.5rem);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox__nav--prev {
  left: clamp(0.5rem, 2vw, 1.25rem);
}

.lightbox__nav--next {
  right: clamp(0.5rem, 2vw, 1.25rem);
}

.lightbox__counter {
  position: absolute;
  bottom: clamp(0.75rem, 2.5vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--size-sm, 0.875rem);
  font-weight: 600;
  z-index: 2;
}

@media (max-width: 559px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .lightbox__close {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}
