/* Portada aprobada: texto y fotografías en mitades iguales. */
body[data-home-layout="tres-fotos"] .home-mosaic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  height: clamp(400px, 33.333333vw, 640px);
  min-height: 0;
  padding: 0;
  background: #171717;
}
body[data-home-layout="tres-fotos"] .home-mosaic-hero::after { display: none; }
.home-mosaic-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 40px 64px;
}
body[data-home-layout="tres-fotos"] .home-mosaic-copy .hero-content {
  width: 100%;
  max-width: 568px;
  margin: 0;
  padding: 0;
  text-align: center;
}
body[data-home-layout="tres-fotos"] .home-mosaic-hero h1 {
  font-size: clamp(38px, 3.75vw, 54px);
  line-height: 1.08;
  font-weight: 600;
  text-wrap: balance;
}
body[data-home-layout="tres-fotos"] .home-mosaic-hero p {
  max-width: none;
  font-size: 19px;
  line-height: 1.6;
  color: #d0d0d0;
  text-wrap: balance;
}
.home-mosaic-copy .actions { justify-content: center; }
.home-mosaic-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  position: relative;
}
.home-mosaic-photo { display: block; position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.home-mosaic-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.home-mosaic-personas img { object-position: 100% 50%; }
.home-mosaic-empresas img { object-position: 50% 50%; }
.home-mosaic-horizonte { grid-column: 1 / -1; }
.home-mosaic-horizonte img {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  transform: translateY(-26%);
}
body[data-home-layout="tres-fotos"] .home-mosaic-photos .hero-note {
  bottom: 18px;
  right: 32px;
  color: #fff;
  background: #171717a6;
  padding: 4px 7px;
  z-index: 1;
}
@media (min-width: 1101px) and (max-width: 1300px) {
  .home-mosaic-copy { padding: 32px 40px; }
  body[data-home-layout="tres-fotos"] .home-mosaic-hero p { font-size: 18px; }
}
@media (max-width: 1100px) {
  body[data-home-layout="tres-fotos"] .home-mosaic-hero { display: flex; flex-direction: column; height: auto; }
  .home-mosaic-copy { width: 100%; padding: 44px 30px; }
  body[data-home-layout="tres-fotos"] .home-mosaic-hero h1 { font-size: clamp(34px, 5.5vw, 54px); }
  .home-mosaic-photos { width: 100%; aspect-ratio: 3 / 2; flex: none; }
}
@media (max-width: 600px) {
  .home-mosaic-copy { padding: 40px 24px; }
  body[data-home-layout="tres-fotos"] .home-mosaic-hero p { font-size: 16px; margin-top: 20px; }
  .home-mosaic-copy .actions { margin-top: 26px; }
  body[data-home-layout="tres-fotos"] .home-mosaic-photos .hero-note { display: block; right: 12px; bottom: 12px; font-size: 10px; }
}
@media (max-width: 380px) {
  .home-mosaic-copy .actions { flex-direction: column; align-items: center; }
  .home-mosaic-copy .actions .btn { width: 100%; max-width: 270px; }
}

/* Celular y tableta: primero el mosaico y después el mensaje sobre negro. */
@media (max-width: 1100px) {
 body[data-home-layout="tres-fotos"] .home-mosaic-photos { order: -1; }
}
