/* =========================
   HOME - ESTILOS BASE
   ========================= */
:root {
  --header-h: 120px;
}

html,
body {
  margin: 0;
}

/* ==========================================
   HERO - Posicionamiento exacto estilo PDF
   ========================================== */
.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: calc(100dvh - var(--header-h));
  overflow: visible;
  display: block;
  padding: 0;
}

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

.hero-text {
  position: absolute;
  top: 15%;
  right: 29%;
  text-align: right;
  z-index: 2;
  color: #1F2020;
}

.hero-title {
  font-family: 'Bodoni', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 4;
  margin: -3em 0 0 Auto;
  color: #1F2020;
}

.hero-subtitle {
  font-family: 'Bodoni', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.2;
  margin: 0 -5em 0 auto;
  color: #1F2020;
}

/* ==========================================
   SECCIÓN QUIÉNES SOMOS / NUESTRA TIENDA
   ========================================== */
.home-dual-section {
  width: 100%;
  height: calc(100vh - 120px);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.dual-grid {
  display: grid;
  grid-template-columns: 25% 75%;
  height: 100%;
}

.dual-item {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
}

.dual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.dual-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.dual-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
  z-index: 1;
}

.dual-item:hover::before {
  background: rgba(0, 0, 0, 0.25);
}

.dual-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  color: white;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* ==========================================
   SECCIÓN REDECORA / SERVICIOS / REFORMA
   ========================================== */
.home-triple-section {
  width: 100%;
  height: calc(100vh - 120px);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.triple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
}

.triple-item {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
}

.triple-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.triple-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.triple-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
  z-index: 1;
}

.triple-item:hover::before {
  background: rgba(0, 0, 0, 0.25);
}

.triple-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
  color: white;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 1px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* =====================================
   =====================================
   ESCRITORIO (min-width: 992px)
   =====================================
   ===================================== */

@media (min-width: 992px) {
  /* Estilos específicos de escritorio si los hay */
}

/* =====================================
   =====================================
   MÓVIL (max-width: 991.98px)
   =====================================
   ===================================== */

@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden;
  }

  /* Asegurar que el header fijo se mantenga dentro del viewport */
  .header-maclan {
    left: 0;
    right: 0;
    width: 100%;
  }

  /* En móvil, evitamos el desbordamiento horizontal del hero (100vw + márgenes negativos)
     que puede dejar el header/hamburguesa fuera de la pantalla. */
  .hero {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    /* Compensa el extra de separación global en móvil (padding-top del body) */
    margin-top: -35px;
    height: calc(100dvh - var(--header-h));
    min-height: 0;
    overflow: hidden;
  }

  .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* HERO - Móvil */
  .hero-text {
    top: 28%;
    right: 5%;
    left: 5%;
    text-align: center;
    transform: translateY(-10%);
  }

  .hero-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
  }

  /* SECCIÓN DUAL - Móvil */
  .home-dual-section {
    height: 100vh;
  }

  .dual-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 50% 50%;
    height: 100%;
  }

  .dual-item {
    height: 100%;
  }

  .dual-item img {
    filter: brightness(0.95);
  }

  .dual-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  /* SECCIÓN TRIPLE - Móvil */
  .home-triple-section {
    height: 100vh;
  }

  .triple-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .triple-item img {
    filter: brightness(0.95);
  }

  .triple-title {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  }
}

