/* =================================================================== */
/* =================== ARCHIVO styles.css COMPLETO =================== */
/* =================================================================== */

:root {
  --primary-color: #d4af37;
  --dark-color: #121212;
  --light-color: #f8f9fa;
  --gray-color: #1f1f1f;
}

/* ================================================================= */
/* ============= ✅ CORRECCIÓN DE SCROLL HORIZONTAL ================ */
/* ================================================================= */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Lato", sans-serif;
  background-color: var(--dark-color);
  color: var(--light-color);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.accent-text {
  color: var(--primary-color);
}

/* Animación de entrada */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sección Hero */
/* Sección Hero */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background-image: url('../assets/machine.jpg'); 
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75); /* ✅ AJUSTE CLAVE: 0.7 de opacidad */
  z-index: 1; /* Valor correcto para que esté sobre la imagen pero debajo del texto */
}
.hero-section h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
}

/* Botones */
.btn-custom {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--dark-color);
  padding: 12px 35px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-custom:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* Secciones Generales */
.section {
  padding: 80px 0;
}
@media (min-width: 992px) {
  .section {
    padding: 100px 0;
  }
}
.bg-dark-section {
  background-color: var(--dark-color);
}
.bg-gray-section {
  background-color: var(--gray-color);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* Barra de Navegación */
.navbar {
  transition: background-color 0.2s ease;
}
.navbar.scrolled {
  background-color: rgba(18, 18, 18, 0.85) !important;
  backdrop-filter: blur(10px);
}
.navbar-logo {
  height: 40px;
  width: auto;
}
.navbar-brand span {
  color: var(--light-color);
  transition: color 0.3s ease;
}
.navbar-brand:hover span {
  color: var(--primary-color);
}
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.5);
}
.navbar-collapse {
  text-align: center;
  background-color: var(--dark-color);
  padding-bottom: 10px;
  border-radius: 0 0 8px 8px;
  margin-top: 5px;
}
@media (min-width: 992px) {
  .navbar-collapse {
    background-color: transparent;
    padding-bottom: 0;
    margin-top: 0;
  }
}

/* Galería */
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  transition: transform 0.4s ease, filter 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.4);
}
.gallery-item .icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .icon-overlay {
  opacity: 1;
}

/* Modal de Galería */
.modal-gallery .modal-content {
  background-color: transparent;
  border: none;
}
.modal-gallery #modalImage {
  max-height: 90vh;
  width: auto;
  margin: auto;
  object-fit: contain;
  border-radius: 8px;
}
.modal-gallery .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer */
.footer {
  background-color: #000;
  padding: 60px 0;
  color: #aaa;
}
.footer h5 {
  color: var(--light-color);
}
.footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--primary-color);
}
.footer .social-icons a {
  font-size: 1.5rem;
  margin: 0 10px;
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
@media (min-width: 768px) {
  .whatsapp-float {
    width: 70px;
    height: 70px;
    bottom: 40px;
    right: 40px;
    font-size: 35px;
  }
}

/* ================================================================= */
/* ============= MEJORAS DE RESPONSIVIDAD PARA MÓVILES ============= */
/* ================================================================= */

@media (max-width: 767px) {
  /* --- Ajustes en la sección Hero --- */

  /* CORRECCIÓN: Reduce el tamaño mínimo del título h1 para que quepa la palabra "MATERIALIZANDO" */
  .hero-section h1 {
    font-size: clamp(1.8rem, 7vw, 4.5rem);
    line-height: 1.2;
  }

  /* Ajusta el espaciado horizontal del contenedor para darle más margen al título */
  .hero-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Ajusta el tamaño del párrafo de introducción para mejor legibilidad */
  .hero-section .lead {
    font-size: 1.05rem;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 95%;
  }

  /* Hace el botón principal un poco más compacto en móviles */
  .btn-custom {
    padding: 10px 28px;
    font-size: 0.9rem;
  }

  /* --- Ajustes Generales de Secciones --- */

  /* Reduce el padding vertical de todas las secciones para que no haya tanto scroll */
  .section {
    padding: 60px 0;
  }

  /* Reduce el tamaño de los títulos de sección en móviles */
  .section-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.3;
  }

  /* --- Ajustes en el Footer --- */
  
  /* Centra el texto en las columnas del footer para una mejor apariencia en móvil */
  .footer .col-md-6,
  .footer .col-6 {
    text-align: center;
  }

  .footer .social-icons {
    justify-content: center;
    display: flex;
  }


}