/* ==========================================================================
   HOME (/) - medidas de produccion (Playwright, 1440 / 900 / 390 px)
   ========================================================================== */

/* ---------- Animacion de entrada del hero (WoodMart "slide-from-bottom") --
   translateY 150px -> 0 en 1s cubic-bezier(0,.87,.58,1) y opacidad .25s,
   con retardos de 350 ms (titulo) y 675 ms (boton). */
@keyframes home-subir { from { transform: translateY(150px); } to { transform: none; } }
@keyframes home-aparecer { from { opacity: 0; } to { opacity: 1; } }
.animar {
  animation:
    home-subir 1s cubic-bezier(0, .87, .58, 1) var(--retardo, 0s) both,
    home-aparecer .25s ease var(--retardo, 0s) both;
}
.animar--1 { --retardo: .35s; }
.animar--2 { --retardo: .675s; }

/* ---------- 1. Hero ------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: 750px; background: var(--slide-bg);
}
.hero__fondo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__contenido {
  width: 100%; max-width: var(--contenedor); margin-inline: auto;
  padding: 10px var(--gutter); text-align: center;
}
.hero__titulo {
  max-width: 500px; margin: 0 auto 20px;
  color: var(--white); font-size: 60px; font-weight: 700; line-height: 1.1;
}
.hero__boton { margin: 0 15px 10px 0; line-height: 15.6px; vertical-align: top; }
.hero__boton:hover { background: var(--white); border-color: var(--white); color: #333; }

/* ---------- 2. ¿QUIENES SOMOS? ------------------------------------------- */
.quienes { padding-block: 150px; }
.quienes__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 1192px; margin-inline: auto;   /* sin gutter: entre 1025 y 1191 px el texto toca el borde, como en produccion */
}
.quienes__texto, .quienes__foto { padding-block: 10px; }
.quienes__texto { align-self: center; }
.quienes__texto .titulo-seccion { margin-bottom: 20px; }
.quienes .texto { font-weight: 500; }
.quienes__foto img { width: 315px; margin-inline: auto; box-sizing: border-box; }

/* ---------- 3. Tres valores ---------------------------------------------- */
.valores { overflow-x: clip; padding: 150px var(--gutter);   /* 150 tambien en tablet */ background: var(--white); }
/* Contenedor de 1192 px con el hueco "wider" de Elementor: columnas con 30 px
   de padding y margen negativo de 30 px a cada lado (1192 + 60 = 1252). */
.valores__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1252px; margin-inline: max(-30px, calc((100% - 1252px) / 2)); text-align: center;
}
.valor { padding: 30px; }
.valor__titulo { margin: 0 0 20px; color: var(--navy); font-size: 30px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.valor__texto { margin: 0; color: var(--text-muted); font-size: var(--fs-texto); font-weight: 500; line-height: var(--lh-texto); }

/* ---------- 4. Banda VER PRODUCTOS --------------------------------------- */
.banda-productos {
  display: flex; align-items: center; min-height: 700px;
  background: url("../../img/paginas/destacada-home-2.jpg") center / cover no-repeat;
  text-align: center;
}
.banda-productos__contenido { width: 100%; padding-block: 10px; }
.banda-productos__titulo { margin: 0 0 20px; color: var(--white); font-size: 40px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.banda-productos__titulo b { font-weight: 600; }

/* ---------- Tablet (<= 1024px) ------------------------------------------- */
@media (max-width: 1024px) {
  .hero { min-height: 760px; }
  .hero__contenido { padding-inline: 7.5px; }
  .hero__titulo { max-width: 611px; font-size: 52px; }
  .quienes { padding: 70px 15px 0; margin-bottom: 180px; }
  /* En produccion, por debajo de 1025 px queda una franja blanca de 20 px
     entre esta banda y el pie (el pie pierde su margen de -20 px). */
  .banda-productos { margin-bottom: 20px; }
}

/* ---------- Movil (<= 767px) --------------------------------------------- */
@media (max-width: 767px) {
  .hero { min-height: 400px; }
  .hero__titulo { font-size: 30px; }
  .quienes { padding: 30px; margin-bottom: 0; }
  .quienes__grid { grid-template-columns: 1fr; gap: 0; }
  .quienes__texto { align-self: auto; }
  .valores { padding-block: 30px; }
  .valores__grid { grid-template-columns: 1fr; margin-inline: 0; }
  .valor { padding: 30px 0; }
  .banda-productos { min-height: 230px; }
}
