/*
Theme Name: Los Horneros Theme
Author: LPG Soluciones Digitales
Version: 1.0
*/

/* RESET */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #0f0f0f;
  color: white;
  font-family: 'Inter', sans-serif;
}

/* TIPOGRAFÍA */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
}

/* HERO FULLSCREEN */
.hero {
  width: 100vw;
  height: 100vh;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* OVERLAY OSCURO */
.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  top: 0;
  left: 0;
}

/* CONTENIDO HERO */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* ANIMACIÓN */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BOTÓN */
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 28px;
  background: white;
  color: black;
  text-decoration: none;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #eaeaea;
  transform: translateY(-2px);
}

/* SECCIONES */
section {
  padding: 80px 20px;
}

/* CONTENEDOR INTERNO */
.container {
  max-width: 1000px;
  margin: auto;
}

/* TITULOS */
h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* GALERÍA PRO */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.galeria img {
  width: 100%;
  aspect-ratio: 1 / 1; /*  CLAVE */
  object-fit: cover;
  border-radius: 12px;
}
.galeria img:nth-child(2) {
  grid-column: span 2;
}
.galeria img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* BENEFICIOS */
.beneficios div {
  margin-bottom: 25px;
}

.beneficios h3 {
  margin-bottom: 8px;
}

/* LISTAS */
ul {
  padding-left: 20px;
}

/* CTA FINAL */
.cta {
  text-align: center;
}

/* BOTÓN WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 15px 18px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  z-index: 999;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .galeria {
    grid-template-columns: 1fr;
  }

  .galeria img {
    height: 220px;
  }
}
/* FIX FULL WIDTH REAL */
body {
  overflow-x: hidden;
}

.hero {
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
}
.container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}/* ===== FIX GLOBAL RESPONSIVE ===== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden; /* 🔥 evita scroll lateral */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTENEDOR BASE */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO FIX ===== */

.hero {
  width: 100%;
  min-height: 100vh; /* ocupa toda la pantalla */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

/* ===== GRID RESPONSIVE ===== */

@media (max-width: 768px) {

  .beneficios {
    flex-direction: column;
    align-items: center;
  }

  .grid-galeria {
    grid-template-columns: 1fr; /* 🔥 1 columna en mobile */
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

}