/* Custom overrides */

html {
  zoom: 100%;
}

.since-text {
  color: white !important;
  margin-top: 10px;
  font-size: 15px;
  display: inline-block;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}


.hero-buttons .btn-get-started {
  margin-right: 0;
}

.hero-buttons .btn-watch-video {
  margin-left: 0;
}

.btn {
  border: none;
  color: white;
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 5px;
  display: inline-block;
  margin: 5px;
  font-weight: 500;
  font-size: 1.0rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.8);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background-color: #4db8ff;
  color: #003366;
  box-shadow: 0 4px 12px rgba(77, 184, 255, 0.6);
}

.btn2 {
  border: none; 
  color: white; 
  padding: 14px 28px; 
  cursor: pointer; 
  border-radius: 5px; 
  display: inline-block;
  margin: 5px;
  font-weight: 500;
  font-size: 1.0rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.199);
}

.primary {background-image: linear-gradient(to right, #0a5db4, #4ab2e2);} 
.primary:hover {background-image: linear-gradient(to right, #0b7dda, #4ab2e2);}

.primary2 {background-image: linear-gradient(to right, #ffffff, #4ab2e2);} 

.extra-content {
  display: none;
  margin-top: 15px;
}


#about > .container > .row > .col-lg-8 > div {
  display: flex;
  align-items: center;
}


.btn-get-started {
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  box-sizing: border-box;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 5px;
  vertical-align: middle;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
  height: 45px;
  line-height: 45px;
  padding: 0 28px;
}


.btn-get-started:hover {
  background-color: #0056b3;
}


header {
  background: url('../img/banner1.jpg') no-repeat center center/cover !important;
  color: white;
  padding: 135px 10px 5px 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  /* Removed blue shadow overlay */
  /* box-shadow: inset 0 0 0 1000px rgba(0, 77, 153, 0.6); */
  user-select: none;
  text-align: left;
  position: relative;
}

header img {
  height: 80px;
  width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgb(255, 255, 255));
  z-index: 3;
}

/* Horizontal full-width menu styling */
.navbar {
  background-color: rgba(0, 77, 153, 0.85);
  padding: 30px 20px;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  transition: background-color 0.3s ease;
  width: 100%;
  display: flex;

  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.left-spacer { display: none; }

.logo-container {
  padding-left: 10px; /* Same space as original margin-left */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 3px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.logo-container2 {
  padding-left: 20px; /* Same space as original margin-left */
  align-items: center;
  justify-content: center;
}

.logo-container2 img {
  height: 80px;
  width: auto;
  object-fit: contain;
  /*filter: drop-shadow(0 0 20px rgb(255, 255, 255));  */
  z-index: 3;
  border-radius: 10px;
  margin-right: 25px;
  text-align: center;
}

.logo-container2 span {
  width: 100px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 14px;
  color: white;
  
  justify-content: center;
}

.logo-container a {
  color: white !important;
  text-decoration: none;
}

.menu-container {
  display: flex;

   /* Center menu */
  /*justify-content: center;*/
  /* Shift menu slightly to the left */ 
  /*margin-left: -250px; */
  justify-content: center;
  flex-grow: 1;
}

.mobile-nav-toggle {
  justify-self: end;
  display: none; /* Hide by default */
  align-items: center;
  height: 100%;
  cursor: pointer;
}

.lang-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  display: flex;
  align-items: center;
  height: 100%;
}

.lang-toggle img {
  display: block;
  height: 24px;
  width: 24px;
}


@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex; /* Show on small screens */
  }
}

@media (min-width: 1200px) {
  .navbar ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
  }
}

.navbar ul li {
  display: inline-block;
}

.navbar ul li a {
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
  display: block;
  font-weight: 600;
  box-shadow: inset 0 0 0 0 transparent;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background-color: #4db8ff;
  color: #003366;
  box-shadow: 0 4px 12px rgba(77, 184, 255, 0.6);
}




/* Estilos específicos para el logo dentro de la navbar */
.navbar .logo {
  margin-left: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none; /* Mantener sin sombra aquí si la imagen ya tiene una */

  /* Añadir una sombra sutil al contenedor del logo para darle profundidad */
  /* Esto lo "levanta" un poco del fondo de la barra de navegación */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada */
  transition: box-shadow 0.3s ease; /* Transición suave para la sombra */
}

.navbar .logo-container img {
  height: 80px; /* Reducido para hacer el logo más pequeño */
  width: auto;
  object-fit: contain;
  /* Combinación de sombras para un efecto de brillo más complejo y vibrante */
  filter: drop-shadow(0 0 25px #007bff) drop-shadow(0 0 25px white); /* Aumentado el tamaño del brillo */
  border-radius: 10px;
  background-color: transparent;
  padding: 0;
  animation: pulseGlow 2s infinite ease-in-out; /* Animación de brillo con suavizado */
}


/* Animación de pulso para el brillo del logo */
@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 25px #007bff) drop-shadow(0 0 25px white); /* Brillo inicial/final */
  }
  50% {
    filter: drop-shadow(0 0 40px #00bfff) drop-shadow(0 0 40px white); /* Brillo máximo en el medio del ciclo */
  }
}
  

/* Fix text overflow for "Tableros de fuerza y control" */
.hero h1, .hero h2 {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#hero h1, #hero h1 span {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


.btn-watch-video {
  margin-left: 15px;
  background-color: white !important;
  color: #000 !important;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
  min-width: 150px;
  height: 47px;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.btn-watch-video:hover {
  background-color: #e0e0e0 !important;
}

#hero > .container > .row > .col-lg-6 > div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  /* Ensure buttons align vertically center */
  > a {
    display: flex;
    align-items: center;
  }
}

#hero {
  margin-bottom: 0 !important; /* remove space below hero */
  padding-bottom: 60px !important;
  scroll-margin-top: 140px; /* offset for fixed header height */
  min-height: calc(100vh - 80px) !important; /* Adjust min-height to viewport height minus navbar height */
  align-items: flex-start !important; /* align content to top */
  margin-top: 140px !important; /* override main.css margin-top */
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

#hero > .container > .row {
  margin-bottom: 0 !important;
  padding-top: 40px !important; /* revert padding to previous value */
  padding-bottom: 20px !important; /* keep some bottom padding */
}

#hero h1 {
  margin-bottom: 10px !important; /* reduce space below title */
  /*margin-bottom: 20px;*/
}

/* Nuevo estilos para la seccion Nosotros fondo y tamaño de imagen */

.about h1, .hero h2 {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#about h1, #hero h1 span {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


#about h1 {
  margin-bottom: 10px !important; /* reduce space below title */
  /*margin-bottom: 20px;*/
}


#about > .container > .row > .col-lg-6 > div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

#about {
  background-image: url('../img/about2.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 0 !important; /* remove space below hero */
  padding-bottom: 60px !important;
  scroll-margin-top: 140px; /* offset for fixed header height */
  min-height: calc(100vh - 80px) !important; /* Adjust min-height to viewport height minus navbar height */
  align-items: flex-start !important; /* align content to top */
}

/* Align the about list to the right and move it to the left side */
#about ul.list-unstyled {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left;
  /* Remove float and width to fix alignment */
  float: none !important;
  width: auto !important;
  /* Add right padding to move list to left */
  padding-right: 20px !important;
}

/* Target the container div to move the list to the left */
#about > .container > .row > .col-lg-8.d-flex.flex-column.justify-content-center {
  padding-left: 0 !important;
  align-items: flex-start !important;
}

#about > .container > .row {
  margin-bottom: 0 !important;
  padding-top: 40px !important; /* revert padding to previous value */
  padding-bottom: 20px !important; /* keep some bottom padding */
}



/* Nuevo estilos para la seccion Contactanos fondo y tamaño de imagen */

#contact {
  background: url('../img/fcontacto.jpg') no-repeat center center/cover;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 0 !important; /* remove space below hero */
  padding-bottom: 60px !important;
  scroll-margin-top: 140px; /* offset for fixed header height */
  min-height: calc(100vh - 80px) !important; /* Adjust min-height to viewport height minus navbar height */
  align-items: flex-start !important; /* align content to top */
  
}


#contact > .container > .row {
  margin-bottom: 0 !important;
  padding-top: 40px !important; /* revert padding to previous value */
  padding-bottom: 20px !important; /* keep some bottom padding */
}

#contact h1 {
  margin-bottom: 10px !important; /* reduce space below title */
}

.contact h1, .hero h2 {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#contact h1, #hero h1 span {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


#contact > .container > .row > .col-lg-6 > div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

#contact .form {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.social-links a.instagram {
  color: white;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.social-links a.instagram h2 {
  margin: 0;
  line-height: 1.2;
}

.whatsapp {
  color: white;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.whatsapp h2 {
  margin: 0;
  line-height: 1.2;
}

/* Nuevo estilos para la seccion PROYECTOS fondo y tamaño de imagen */

#portfolio {
  background: url('../img/fproyectos2.jpg') no-repeat center center/cover;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 0 !important; /* remove space below hero */
  padding-bottom: 60px !important;
  scroll-margin-top: 140px; /* offset for fixed header height */
  min-height: calc(100vh - 80px) !important; /* Adjust min-height to viewport height minus navbar height */
  align-items: flex-start !important; /* align content to top */
  
}

#portfolio > .container {
  position: relative;
  z-index: 1;
}

#portfolio > .container > .row {
  margin-bottom: 0 !important;
  padding-top: 32px !important; /* reduce top padding */
  padding-bottom: 20px !important; /* keep some bottom padding */

  /* prevent columns from stacking */
  flex-wrap: nowrap !important;

}

#portfolio h1 {
  margin-bottom: 10px !important; /* reduce space below title */
}



#portfolio > .container > .row > .col-lg-6 > div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}


/* Style project list bullets like about section */

#project-list {
  list-style: none;
  padding-left: 0;
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0;
  margin: 0;
}

#project-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
}

#project-list li::before {
  content: none;
}


/* Remove background and border-radius from project items */
.project-item {
  background-color: transparent !important;
  border-left: none !important;
  padding-left: 0 !important;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
  transition: background-color 0.3s ease;
}

.project-item:hover {
  background-color: rgba(77, 184, 255, 0.3);
  border-left-color: #4db8ff;
}

.project-item.active {
  background-color: rgba(77, 184, 255, 0.85);
  border-left: 4px solid #004080;
  color: #002244;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 64, 128, 0.7);
  padding-left: 21px; /* Adjust for border */
}

/* Adjust swiper carousel column to take about 50% width */
.project-swiper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.project-swiper .swiper-slide {
  text-align: center;
}

/* Set max height for carousel images to match about image */
.project-swiper .swiper-slide img {
  max-height: 500px;
  width: auto;
  
  object-fit: cover;
  margin: auto;
}


/* End Style project list bullets like about section */

.hero-img img {
  max-width: 100%;
  /*max-height: 400px;*/
  max-height: 500px;
  margin-left: 10px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;

  background-color: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}



/* Styles for Quote Form Section */
#quote, #hero, #about, #services, #portfolio, #why-us, #contact {
  scroll-margin-top: 140px; /* offset for fixed header height */
}

#quote {
  background: url('../img/fcotiza.jpg') no-repeat center center/cover;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 0 !important; /* remove space below hero */
  padding-bottom: 60px !important;
  scroll-margin-top: 140px; /* offset for fixed header height */
  min-height: calc(100vh - 80px) !important; /* Adjust min-height to viewport height minus navbar height */
  align-items: flex-start !important; /* align content to top */
  
}

#quote > .container > .row {
  margin-bottom: 0 !important;
  padding-top: 40px !important; /* revert padding to previous value */
  padding-bottom: 20px !important; /* keep some bottom padding */
}

.quote h1, .hero h2 {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#quote h1, #hero h1 span {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


#quote > .container > .row > .col-lg-6 > div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

#quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.6); /* Clear white transparency overlay */
  z-index: 0;
}

#quote > .container {
  position: relative;
  z-index: 1;
  display: block;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  height: auto;
}

#quote > .container > .col-lg-6:first-child {
  display: block;
  align-items: stretch;
  justify-content: stretch;
  height: auto;
}

#quote > .container > .col-lg-6:last-child {
  display: block;
  flex-direction: initial;
  justify-content: initial;
  height: auto;
}

#quote h1 span {
  color: var(--accent-color);
}

#quote h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  color: #333;
}

#quote label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #000000;
}

#quote input[type="text"],
#quote input[type="email"],
#quote input[type="tel"],
#quote select,
#quote textarea {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid black; /* Changed border color to black */
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
  resize: vertical;
}

#quote textarea {
  min-height: 100px;
}

#quote button[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#quote button[type="submit"]:hover {
  background-color: #0056b3;
}

.success-message {
  max-width: 600px;
  margin: 20px auto 0;
  padding: 15px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
}

/* Nuevo estilos para la seccion PORQUE ELEGIRNOS y tamaño de imagen */

#why-us {
  background:  no-repeat center center/cover;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 0 !important; /* remove space below hero */
  padding-bottom: 60px !important;
  scroll-margin-top: 140px; /* offset for fixed header height */
  min-height: calc(100vh - 80px) !important; /* Adjust min-height to viewport height minus navbar height */
  align-items: flex-start !important; /* align content to top */
  
}

#why-us > .container > .row {
  margin-bottom: 0 !important;
  padding-top: 40px !important; /* revert padding to previous value */
  padding-bottom: 20px !important; /* keep some bottom padding */
}

#why-us h1 {
  margin-bottom: 10px !important; /* reduce space below title */
}

.why-us h1, .hero h2 {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#why-us h1, #hero h1 span {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


#why-us > .container > .row > .col-lg-6 > div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

/* Custom styles for Productos section */

#services {
  background: url('../img/fproductos2.jpg') no-repeat center center/cover;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 0 !important; /* remove space below hero */
  padding-bottom: 60px !important;
  scroll-margin-top: 140px; /* offset for fixed header height */
  min-height: calc(100vh - 80px) !important; /* Adjust min-height to viewport height minus navbar height */
  align-items: flex-start !important; /* align content to top */
}

#services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent white overlay */
  pointer-events: none;
  z-index: 0;
}

#services > .container {
  position: relative;
  z-index: 1;
}

#services > .container > .row {
  margin-bottom: 0 !important;
  padding-top: 40px !important;
  padding-bottom: 20px !important;
}

#services h1 {
  margin-bottom: 10px !important;

}

.services h1, .hero h2 {
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
max-width: 100%;
}

#services h1, #hero h1 span {
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

#services h1 {
margin-bottom: 20px;
}

#services .row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}

#services .icon-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/fondo.jpg') no-repeat center center/cover;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#services .icon-box .icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #004080;
}

#services .icon-box .title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #004080;
  margin-bottom: 10px;
  text-transform: uppercase;
}

#services .icon-box .description {
  font-size: 1rem;
  color: #000;
  margin-bottom: 10px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: normal;
  writing-mode: horizontal-tb;
  overflow-wrap: break-word;
}

#services .icon-box .btn-get-started {
  background-color: #007bff;
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: center;
}

#services .icon-box .btn-get-started:hover {
  background-color: #0056b3;
}


/* New styles for form layout */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 1px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.half-width {
  flex: 1 1 48%;
}

.full-width {
  flex: 1 1 100%;
}

.priority-options {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.priority-options label {
  font-weight: normal;
  color: #555;
  cursor: pointer;
}

.priority-options input[type="radio"] {
  margin-right: 5px;
}

/* Add line between main sections */

#about, #services, #portfolio, #contact, #quote, #why-us {
  border-bottom: 2px solid #ccc;
}

.footer .logo img {
  height: 180px;
  width: auto;
}

#why-us .section-title p {
  color: var(--heading-color);
  margin: 10px 0 0 0;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--heading-font);
}

/* Allies Section - New Styles */
#allies {
  background: url('../img/aliadosfondo.png') no-repeat center center/cover;
  position: relative;
  padding: 80px 0;
  min-height: calc(100vh - 80px) !important;
  align-items: flex-start !important;
  scroll-margin-top: 140px;
  padding-bottom: 60px !important;
}

#allies > .container > .row {
  display: flex;
  align-items: stretch;
  margin-bottom: 0 !important;
  padding-top: 40px !important; /* revert padding to previous value */
  padding-bottom: 20px !important; /* keep some bottom padding */
}

#allies::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.6); /* Lighter overlay for better readability */
  pointer-events: none;
  z-index: 0;
}

/* Custom overrides */

/* Styles for Quote Form Section */
#quote, #hero, #about, #services, #portfolio, #why-us, #contact, #allies {
  scroll-margin-top: 140px; /* offset for fixed header height */
}

#quote h1 {
  font-weight: 700;
  font-size: 3rem;
  text-align: left;
  margin-top: 5px; /* reduce top margin */
  margin-bottom: 10px; /* reduce bottom margin */
  color: #000;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px !important; /* reduce space below title */
  /*margin-bottom: 20px;*/
}

#quote form {
  margin-top: 5px; /* reduce top margin */
  margin-bottom: 10px; /* reduce bottom margin */
  background-color: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.8);
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}


/* Style Why Us section title to match other sections but centered */
#why-us .section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

#why-us .section-title h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 0;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: inline-block;
  text-transform: uppercase;
  border-radius: 50px;
  font-family: var(--default-font);
}

#allies .section-title h1 {
  color: #333;
}

#allies .section-title h1 span {
  color: var(--accent-color);
  text-shadow: none;
}

.allies-swiper {
  width: 100%;

}

/*   modificacion */
#allies > .container {
  position: relative;
  z-index: 1;
}

.allies-swiper .swiper-slide {
  background-position: center;
  background-size: cover;
  width: clamp(250px, 30vw, 400px); /* Responsive width */
  height: auto; /* Altura automática para coincidir con el contenido */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
}

.allies-swiper .swiper-slide img {
  display: block;
  max-width: 100%; /* Asegura que no exceda el ancho de la diapositiva */
  max-height: 100%; /* Asegura que no exceda la altura de la diapositiva */
  width: auto; /* Permite que el ancho se ajuste automáticamente */
  height: auto; /* Permite que la altura se ajuste automáticamente */
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.5); /* Fondo igual al de la tarjeta de contenido */
}

#ally-content-wrapper {
  position: relative; /* Asegura que z-index funcione */
  z-index: 100; /* Un z-index muy alto para asegurar que esté encima de todo en esta sección */
  transform: translateZ(0); /* Fuerza un nuevo contexto de apilamiento para que z-index sea respetado */
}

/* Asegura que la columna de contenido del aliado esté por encima de la columna del carrusel */
#allies .row .col-lg-7 {
  position: relative;
  z-index: 5; /* Mayor que el z-index del carrusel */
}

#allies .row .col-lg-5 {
  position: relative;
  z-index: 1; /* Menor que el z-index de la columna de contenido */
}

.ally-content-card {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.863);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra el contenido si la tarjeta es más alta */
  
}

.allies-swiper {
  position: relative; /* Asegura que z-index funcione para el contenedor del swiper */
  z-index: 2; /* Lo mantiene por debajo del ally-content-wrapper, pero por encima del overlay de fondo si lo hay */
}

.ally-content-card h3 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a0c9bef;
  margin-bottom: 15px;

}

.ally-content-card p {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 25px;
}

.ally-content-card .btn-ally-website {
  background-color: #007bff;
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.ally-content-card .btn-ally-website:hover {
  background-color: #0056b3;
}

/* Video container for ally */
.ally-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ally-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 8px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
}

/* Media queries for 1024x768 resolution 
===========================================================================================================*/

@media (max-width: 1024px) {

  /* Reduce font sizes for menu text and labels */
  .navbar ul li a span {
    font-size: 0.6rem !important;
  }

  .navbar span {
    font-size: 0.6rem !important;
  }

  label {
    font-size: 0.7rem !important;
  }

  html {
    zoom: 80%;
  }

  /* Reduce font sizes for headings */
  .hero h1 {
    font-size: 2.5rem !important;
    line-height: 3rem !important;
  }

  .hero h2 {
    font-size: 1.2rem !important;
  }

  /* Adjust min-height for sections to fit 768px height */
  #hero, #about, #services, #portfolio, #quote, #why-us, #contact {
    min-height: 60vh !important;
    padding-bottom: 60px !important;
  }

  /* Navbar adjustments */
  .navbar {
    padding: 20px 10px;
    grid-template-columns: 5px auto 1fr 5px;
    /*transform: scale(0.99);*/
    transform-origin: top left;
  }

  .logo-container {
    padding-left: 10px;
  }

  .logo-container img {
    zoom: 70%;
  }

  .menu-container {
    margin-left: -40px;
  }

  .navbar ul {
    gap: 10px;
  }

/* Títulos Principales (H1) */
.hero h1, #about h1, #services h1, #portfolio h1, #quote h1, #contact h1, #allies h1, #why-us h1 {
  /* Escala entre 36px (en 1200px) y 48px (en 1920px) */
  font-size: clamp(2.2rem, 1rem + 1.5vw, 2.8rem) !important;
}

/* Subtítulos y Texto Destacado (H2) */
.hero h2, #about h2, #quote h2, #allies h2 {
  /* Escala entre 18px (en 1200px) y 24px (en 1920px) */
  font-size: clamp(1.125rem, 0.5rem + 0.83vw, 1.5rem) !important;
}

/* Texto de Párrafos y Listas */
.project-item, .ally-content-card p, #services .description, #about h2 {
  /* Escala entre 16px (en 1200px) y 19px (en 1920px) */
  font-size: clamp(1rem, 0.6875rem + 0.42vw, 1.2rem) !important;
}

.project-swiper .swiper-slide img {
  max-height: 200px;
}

#services {
  margin-top: 10px;
}


#quote {
  margin-top: 10px;
}

  #services .icon-box {
    zoom: 70%;
    width: 50%;
    height: auto;
    padding: 5px;
  }

  #services .icon-box .description .p {
    font-size: 1.2rem;
    max-width: 50%;
  }

  /* Portfolio adjustments */
  #portfolio .col-lg-8 {
    width: 70% !important;
    flex: none !important;
  }

  .hero-img img {
    max-height:300px;
  }

  /* Quote form adjustments */
  #quote h1 {
    font-size: 2.5rem;
  }

  #quote form {
    zoom: 85%;
    max-width: 600px;
  }

  /* Footer logo */
  .footer .logo img {
    height: 120px;
  }

  /* Reduce padding for sections */
  section {
    padding: 40px 0;
  }

  /* Adjust container padding */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-height: 768px) {
  /* Further reduce min-heights if height is limited */
  #hero, #about, #services, #portfolio, #quote, #why-us, #contact {
    min-height: 40vh !important;
  }
}

@media (max-width: 768px) {
  
  html {
    zoom: 80%;
  }

  /* Further adjustments for smaller screens to prevent menu overlap */
  .navbar ul {
    gap: 10px;
  }

  .navbar ul li a {
    padding: 6px 8px;
    font-size: 0.9rem;
  }

  .navbar .logo-container img {
    height: 100px;
  }

  .navbar {
    padding: 15px 5px;
    grid-template-columns: 5px auto 1fr 5px;
  }

  .logo-container {
    padding-left: 5px;
  }

  .menu-container {
    margin-left: -150px;
  }

  /* Reduce section padding further */
  section {
    padding: 30px 0;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Center h1 tags in sections for mobile */
  #hero h1, #about h1, #services h1, #portfolio h1, #quote h1, #why-us h1, #contact h1, #allies h1 {
    text-align: center;
  }

  /* Adjust services grid to single column */
  #services .row {
    grid-template-columns: 1fr !important;
  }

  #services .icon-box {
    width: 100%;
    padding: 10px;
  }

  #services .icon-box .description {
    font-size: 0.8rem;
    width: 100%;
    min-width: 100%;
  }

  /* Portfolio to single column */
  #portfolio .col-lg-8,
  #portfolio .col-lg-4 {
    width: 100% !important;
  }

  /* Allow columns to stack vertically */
  #portfolio > .container > .row {
    flex-wrap: wrap !important;
  }

  /* Ensure list appears above carousel */
  #portfolio .col-lg-4 {
    order: 1;
  }

  #portfolio .col-lg-8 {
    order: 2;
  }

  .project-swiper {
    max-width: 100%;
  }

  .project-swiper .swiper-slide img {
    max-height: 400px;
  }

  .hero-img img {
    max-height: 400px;
  }

  /* Quote form smaller */
  #quote form {
    max-width: 100%;
  }

  #quote h1 {
    font-size: 2rem;
  }

  /* Footer logo smaller */
  .footer .logo img {
    height: 60px;
  }

  /* Hide menu container on mobile by default */
  .menu-container {
    display: none;
  }

  /* Show menu container when mobile nav is active */
  .mobile-nav-active .menu-container {
    display: flex;
    flex-direction: column;
    /*position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 77, 153, 0.95);
    padding: 10px;
    z-index: 1000;*/
    position: fixed;
   /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/
    inset: 0; /* Reemplaza top, left, bottom, right con 0 */
    margin: auto; /* Centra el elemento automáticamente */
    height: fit-content; /* Ajusta la altura al contenido */
    max-height: 90vh; /* Limita la altura máxima */
    overflow-y: auto; /* Añade scroll si el contenido es muy largo *
    width: 90vw;
    max-width: 350px;
    padding: 20px;
    /*z-index: 1001;*/
    background-color: rgba(0, 61, 122, 0.98);
    z-index: 1002;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  }

   /* Add an overlay to the background when the mobile menu is active */
   

  .mobile-nav-active .menu-container .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .mobile-nav-active .menu-container .btn {
    width: 100%;
    margin: 5px 0;
    padding: 0;
  }

  .mobile-nav-active .menu-container .btn a {
    display: block;
    padding: 10px;
    text-align: center;
    /*font-size: clamp(0.9rem, 2vw, 1.1rem);*/
    font-size: 1rem;
  }

  /* Make mobile nav toggle button white */
  .mobile-nav-toggle {
    color: white;
  }


  .mobile-nav-active .navbar {
    /* Anula posibles animaciones de deslizamiento del tema base */
    left: 0 !important;
    transform: none !important;
    /* Asegura que la barra de navegación esté sobre la capa de superposición (z-index: 1000) */
   /* z-index: 1001;*/
  }

  .mobile-nav-active #header {
    z-index: 1001; /* Overlay is at 1000, so this brings header and its contents forward */
  }

  /* Adjust logos-bar for mobile to prevent overflow */
  .logos-bar img {
    height: 18px !important;
    margin: 0 10px !important;
  }
}

/* ==================================================================== */
  