/* ===== Industries Page Styling ===== */

html {
  scroll-behavior: smooth;
}

:root {
  --gold: #c9a34e;
  --dark-gray: #1e1e1e;
  --light-gray: #2c2c2c;
  --white: #ffffff;
}

body {
    background-color: var(--dark-gray);
    color: var(--white);
    font-family: 'Libre Baskerville', serif;
    margin: 0;
    padding: 0;
  }
  
   /* Header layout */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background-color: var(--dark-gray);
  position: relative;
  z-index: 100;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Desktop navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--white);
  margin: 0 15px;
  font-size: 18px;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
}

/* Mobile styles */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  margin-left: auto;
}

/* RESPONSIVE: Menú hamburguesa */
@media screen and (max-width: 768px) {
  nav ul.nav-list {
    display: none;
    flex-direction: column;
    background-color: var(--dark-gray);
    position: absolute;
    top: 70px; /* debajo del header */
    right: 5%; /* pegado al borde derecho */
    width: 200px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 10px;
    z-index: 999;
  }

  nav ul.nav-list.show {
    display: flex;
  }

  nav ul.nav-list li {
    margin: 10px 0;
    text-align: right;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav {
    position: relative;
  }
  
}
  
  /* ===== Hero Section ===== */
  /* ===== HERO SECTION with VIDEO ===== */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Ocupa toda la pantalla */
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* Llena el espacio sin deformarse */
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Oscurece el video para que el texto resalte */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3; /* Encima del video y overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 0 5%;
}

.hero-content h1 {
  font-size: clamp(42px, 5vw, 72px);
  color: var(--gold);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: clamp(16px, 2vw, 24px);
  margin-top: 20px;
  color: var(--white);
}


  /* ===== Animation ===== */

  .industries-carousel {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--dark-gray);
  }
  
  .industries-carousel h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
  
  .carousel-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 100%;
  }
  
  .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  
  .carousel-track.fade-out {
    opacity: 0;
  }

.carousel-item {
  min-width: 300px;
  height: 300px;
  background-size: cover;
  background-position: center;
  margin: 0 10px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(201, 163, 78, 0.3);
  flex-shrink: 0;
  overflow: hidden; /* Para que no se salga el zoom */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  

.carousel-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  font-size: 1.2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease;
  z-index: 2;
}

  /* new */

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece con negro, cambia el 0.5 si quieres más o menos oscuridad */
  }

  

  /*key frame*/

  /* Aquí el efecto de hover */
.carousel-item:hover {
  transform: scale(1.05); /* Aumenta ligeramente el tamaño */
  box-shadow: 0 0 20px rgba(201, 163, 78, 0.6); /* Un poco más de sombra para resaltar */
}

.carousel-item:hover .carousel-text {
  color: var(--gold); /* Cambia el color del texto al dorado */
}

  
  
  /* ===== Industries Section ===== */
  .section {
    padding: 80px 5%;
    text-align: center;
  }
  
  .section h2 {
    color: var(--gold);
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
  }
  
  .section p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 40px;
  }
  
  /* ===== Grid for Industries ===== */
  .solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
  }
  
  .solution-item {
    background-color: #1c1c1c;
    border-radius: 12px;
    padding: 30px 20px;
    color: var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(201, 163, 78, 0.2);
  }
  
  .solution-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(201, 163, 78, 0.5);
    color: var(--white);
    text-shadow: 0 0 10px var(--gold);
  }
  
  .solution-item strong {
    display: block;
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--gold);
  }
  
/* ===== Balance Section with Static Image ===== */
.balance-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/Industries/Industries_photos/Loft_Office_Space_original_449484.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.balance-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 50px;
}

/* Imagen PNG */
.pos-device picture img {
  max-width: 600px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Caja de Features */
.features-box {
  background-color: #1c1c1c;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  color: var(--gold);
  opacity: 1; /* Eliminamos fadeInUp */
}

.features-box h2.feature-title {
  color: var(--gold);
  margin-bottom: 20px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* Items sin animaciones molestas */
.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--gold);
  transition: color 0.3s ease;
}

.features-list li:hover {
  color: #ffffff;
}

/* Iconos */
.feature-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(1000%) invert(80%) sepia(100%) saturate(500%) hue-rotate(10deg) brightness(95%) contrast(90%);
  margin-right: 10px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .balance-content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .features-box {
    margin-top: 10px;
    background-color: rgba(28, 28, 28, 0.6);
    backdrop-filter: blur(4px);
  }

  .pos-device {
    margin-bottom: 0;
    padding: 0;
  }
}

/* ===== Siguiente sección con fondo ===== */
.new-background {
  background-image: url('/Industries/Industries_photos/Bakery_Worker_With_Croissants_original_1043385.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}


  /* ===== CTA Button ===== */
/* Contact Form Wrapper */
.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(201, 163, 78, 0.4);
  background-color: var(--light-gray);
  padding: 40px 20px;
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--gold);
}

.form-group input {
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background-color: #1c1c1c;
  color: var(--white);
  font-size: 16px;
}

.form-group input:focus {
  outline: none;
  border-color: #e1c16f;
}

.cta-button {
  padding: 14px 24px;
  background-color: var(--gold);
  color: var(--dark-gray);
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center;
}

.cta-button:hover {
  background-color: #e1b965;
}

.success-message {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 2px solid var(--gold);
  background-color: #1f1f1f;
  color: var(--gold);
  font-family: "Libre Baskerville", serif;
  font-size: 16px;
  border-radius: 8px;
  text-align: center;
}

/* Llamar ahora */
.call-now {
  margin-top: 20px;
  text-align: center;
}

.call-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--gold);
  color: var(--dark-gray);
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  border-radius: 30px;
  transition: box-shadow 0.3s ease;
}

.call-button:hover {
  box-shadow: 0 0 12px rgba(201, 163, 78, 0.7);
  background-color: #e1b965;
}

  

  
  /* ===== Footer ===== */
  .site-footer {
    background-color: var(--light-gray);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
  }
  
  .footer-content {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .footer-link {
    color: var(--gold);
    text-decoration: none;
    margin: 0 10px;
  }
  
  .footer-link:hover {
    text-decoration: underline;
  }
  
  .footer-content .contact-title {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  /* ===== Responsive Adjustments ===== */
  @media screen and (max-width: 768px) {
    .hero {
      padding: 80px 5%;
      text-align: center;
    }
  
    .solution-item {
      padding: 20px;
    }
  }
  
  @media screen and (max-width: 480px) {
    nav ul {
      flex-direction: column;
      background-color: var(--dark-gray);
      padding: 20px;
      border-radius: 12px;
      position: absolute;
      top: 70px;
      right: 0;
      display: none;
    }
  
    nav ul.show {
      display: flex;
    }
  
    .menu-toggle {
      display: block;
      font-size: 28px;
      color: var(--white);
      background: none;
      border: none;
      cursor: pointer;
    }
  }
  
  /* ✨ Animación de entrada general */
.show-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
