/* MARU CORP — Fotografía institucional */

.photo-feature {
  --photo-pos: center;
  position: relative;
  margin: 2.25rem auto 0;
  max-width: 1100px;
  border-radius: 1.25rem;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 21 / 9;
  background: #252b42;
  box-shadow:
    0 22px 48px rgba(37, 43, 66, 0.18),
    0 0 0 1px rgba(52, 61, 95, 0.08);
}

.photo-feature picture,
.photo-feature img {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-feature img {
  object-fit: cover;
  object-position: var(--photo-pos);
  transform: scale(1.001);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-feature:hover img {
  transform: scale(1.035);
}

.photo-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(30, 36, 64, 0.82) 0%, rgba(30, 36, 64, 0.35) 32%, transparent 58%);
}

.photo-feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 5px;
  background: linear-gradient(180deg, #e8bc4e, #e2ae39);
}

.photo-feature__caption {
  position: absolute;
  left: clamp(1.1rem, 3vw, 2rem);
  right: clamp(1.1rem, 3vw, 2rem);
  bottom: clamp(1rem, 2.6vw, 1.75rem);
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  max-width: 44rem;
}

.photo-feature__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3cf73;
}

.photo-feature__kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #e2ae39;
}

.photo-feature__caption strong {
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Variante: foto vertical/alta para columnas laterales */
.photo-feature--tall {
  aspect-ratio: 4 / 3;
  margin: 0;
  max-width: none;
}

/* Variante: overlay más ligero */
.photo-feature--light::after {
  background: linear-gradient(0deg, rgba(30, 36, 64, 0.62) 0%, rgba(30, 36, 64, 0.18) 28%, transparent 48%);
}

/* Variante: sin texto encima */
.photo-feature--plain::after {
  background: linear-gradient(0deg, rgba(30, 36, 64, 0.35), transparent 45%);
}

/* Nosotros: hero con foto (brand-premium oculta las img de .about-visual-frame) */
.page-about .about-hero-visual .photo-feature {
  aspect-ratio: 4 / 3;
  margin: 0;
}

/* Agendar: foto en la columna de contacto */
.contact-sidebar .photo-feature {
  aspect-ratio: 16 / 10;
  margin: 0 0 1.35rem;
  max-width: none;
  border-radius: 1rem;
}

/* Inicio: cierre con foto de fondo */
.page-home .home-close {
  position: relative;
  isolation: isolate;
}

.page-home .home-close__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-home .home-close__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-home .home-close__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(30, 36, 64, 0.94) 0%, rgba(52, 61, 95, 0.86) 55%, rgba(52, 61, 95, 0.78) 100%);
}

@media (max-width: 991px) {
  .photo-feature {
    aspect-ratio: 16 / 9;
    margin-top: 1.75rem;
    border-radius: 1rem;
  }
}

@media (max-width: 575px) {
  .photo-feature {
    aspect-ratio: 4 / 3;
    margin-top: 1.35rem;
  }

  .photo-feature::after {
    background: linear-gradient(0deg, rgba(30, 36, 64, 0.88) 0%, rgba(30, 36, 64, 0.45) 45%, transparent 75%);
  }

  .photo-feature--light::after {
    background: linear-gradient(0deg, rgba(30, 36, 64, 0.7) 0%, rgba(30, 36, 64, 0.25) 40%, transparent 65%);
  }

  .photo-feature__caption strong {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-feature img {
    transition: none;
  }

  .photo-feature:hover img {
    transform: none;
  }
}
