html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
}

img,
video {
  max-width: 100%;
  display: block;
}

body {
  background-image: url("../Images/ladrillos-hero.avif");
  background-size: cover;
  background-position: center;
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: hsl(0, 0%, 10%);
  padding: 1rem 2rem;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 5.5rem;
  left: 0;
} /* ===== Logo ===== */
.navbar__logo img {
  width: 6.3rem;
  height: 6.5rem;
  display: block;
} /* ===== Contenedor menú ===== */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
} /* ===== Menú ===== */
.navbar__menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  transition: max-height 0.3s ease;
  overflow: hidden;
}
.navbar__menu li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.navbar__menu li a:hover {
  background: linear-gradient(45deg, #ff8c00, #ffd700);
  color: #25252a;
  transform: scale(1.05);
  border-radius: 10px;
} /* ===== CTA botones ===== */
.navbar__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.facebook-icon {
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #1877f2, #145dbf);
  color: white;
  border-radius: 15px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.facebook-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
} /* ===== Hamburguesa solo CSS ===== */
.menu-toggle {
  display: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: 0.3s;
} /* ===== Hero / Bienvenida ===== */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../Images/ladrillos-hero.avif") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 800px;
  padding: 20px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero h1 span {
  color: #ff8c00;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f5f5f5;
}
.btn-hero {
  background-color: #ff8c00;
  color: #fff;
  text-decoration: none;
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-hero:hover {
  background-color: #e67e00;
  transform: scale(1.05);
} /* ===== HISTORIA / TIMELINE ===== */
.historia {
  background-color: #2f2f2f;
  padding: 100px 20px;
  font-family: "Montserrat", sans-serif;
  color: white;
}
.historia h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 80px;
  color: #ffffff;
  letter-spacing: 1px;
} /* Línea central del timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  width: 5px;
  background-color: #ff8c00;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
} /* Cada bloque del timeline */
.timeline-item {
  padding: 40px 60px;
  position: relative;
  width: 50%;
}
.timeline-item.left {
  left: 0;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
} /* Caja interna con imagen + texto */
.timeline-content {
  background: #3a3a3a;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-wrap: wrap;
}
.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
} /* Invertir orden cuando está a la izquierda */
.timeline-item.left .timeline-content {
  flex-direction: row-reverse;
}
.timeline-content img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #ff8c00;
  flex-shrink: 0;
}
.timeline-content .text {
  max-width: 100%;
  flex: 1;
}
.timeline-content h3 {
  color: #ffb347;
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.timeline-content p {
  color: #f0f0f0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.productos {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../Images/ladrillos-hero.avif") center/cover no-repeat;
}
.productos h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: white;
}
.productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
}
.producto-item {
  width: 100%;
  max-width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.producto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 10px;
}
.producto-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.producto-item:hover img {
  transform: scale(1.05);
}

.ubicacion {
  padding: 80px 20px;
  background: #2f2f2f;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  color: #25252a;
}
.ubicacion h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  color: #ff8c00;
  letter-spacing: 1px;
}
.map-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.direccion p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333333;
  text-align: center;
}
.direccion strong {
  color: #ff8c00;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: hsl(0, 0%, 10%);
  padding: 1rem 2rem;
  width: 100%;
  height: 5.5rem;
}
.footer__logo a img {
  width: auto;
  max-height: 5rem;
  height: 100%;
  display: block;
}
.footer-socials {
  display: flex;
  justify-content: space-between;
  column-gap: 1.5rem;
}

.footer-copyright {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  justify-self: flex-end;
} /* ===== Animaciones ===== */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 1s forwards;
  animation-delay: 0.3s;
} /* ===== Responsivo y menú hamburguesa CSS puro ===== */
@media (max-width: 768px) {
  .navbar__menu {
    padding-inline-start: 0;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #25252a;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    border-radius: 0 0 10px 10px;
  }
  .navbar__menu li {
    text-align: center;
    padding: 10px 0;
  }
  .navbar__menu li a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  .hamburger {
    display: flex;
  } /* Activar menú con checkbox */
  .menu-toggle:checked + .hamburger + .navbar__menu {
    max-height: 500px;
  } /* Animación botón hamburguesa */
  .menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  } /* Ajustes generales responsive */
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .timeline {
    max-width: 95%;
    margin: 0 auto;
  }
  .timeline::before {
    left: 20px; /* Línea lateral izquierda */
    width: 3px;
  }
  .timeline-item {
    width: 100%;
    padding: 20px 15px 20px 45px;
    left: 0;
    text-align: left;
  }
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }
  .timeline-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #2e2e2e;
    padding: 25px 20px;
    border-radius: 15px;
    max-width: 100%;
    overflow: hidden;
  }
  .timeline-content img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ff8c00;
    margin-bottom: 15px;
  }
  .timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ffa733;
  }
  .timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #eaeaea;
    margin: 0 auto;
    max-width: 90%;
  }
  .ubicacion h2 {
    font-size: 2.2rem;
  }
  .direccion p {
    font-size: 1rem;
  }
  .map-container iframe {
    height: 300px;
  }
  .timeline-content img {
    width: 160px;
    height: 160px;
  }
  .timeline-content h3 {
    font-size: 1.5rem;
  }
  .timeline-content p {
    font-size: 1rem;
  }
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem 1rem;
    height: auto;
  }
  .footer__logo a img {
    max-height: 4.5rem;
    margin: 0 auto;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-copyright {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .timeline-content {
    padding: 20px;
  }
  .timeline-content img {
    width: 110px;
    height: 110px;
  }
  .timeline-content h3 {
    font-size: 1.2rem;
  }
  .timeline-content p {
    font-size: 0.95rem;
  }
  .productos-container {
    grid-template-columns: 1fr 1fr;
  }
  .ubicacion h2 {
    font-size: 1.8rem;
  }
  footer {
    position: sticky;
    bottom: 0;
    gap: 0.75rem;
    padding: 1.25rem 0.5rem;
    margin-bottom: 0;
  }
  .footer-social-link {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  .footer-copyright {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}
