* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #3b3b41; /* texto principal en negro */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cont-log {
  width: 100px;
  height: 70px;
}

.log{
  width: 100%;
  height: 100%;
}

.navbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #4a4a4a;
  font-weight: 500;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: #f58333;
  transition: width 0.4s ease;
  transform: translateX(-50%);
}

.nav-links a.activo {
  font-weight: bold;
  color: #000000;
}

.nav-links a.activo::after {
  width: 100%;
}

.cta {
  background-color: #f58333;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 1.5rem;
}

.cta:hover{
  background-color: #3b3b41;
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  color: #333;
}

/* Estilos responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 1rem;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
  }

  .cta {
    display: none; /* Ocultamos el botón en móvil, opcional */
  }
}
/* Oculta por defecto */
.solo-movil {
  display: none;
}

/* Solo visible en móviles */
@media (max-width: 768px) {
  .solo-movil {
    display: block;
  }

  .btn-movil {
    position: relative;
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    padding-bottom: 5px;
    transition: color 0.3s ease;
  }
}

.banner {
  position: relative;
  background-image: url('../img/banner.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.3)); /* degradado mejorado */
  z-index: 0;
}

.contenido-banner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding: 2rem;
}

.banner h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.banner p {
  font-size: 1.25rem;
  color: #e0e0e0;
  max-width: 720px;
  margin: 0 auto;
}

.btn-banner {
  display: inline-block;
  margin-top: 1.5rem;
  background: #f58333;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}
.btn-banner:hover {
  background: #d96a24;
}

@media (max-width: 768px) {
  .banner h1 {
    font-size: 2rem;
  }
  .banner p {
    font-size: 1rem;
  }
}

.quienes-somos {
  background-color: #fff;
  padding: 4rem 0rem 2.5rem;
  text-align: center;
}

.quienes-somos h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f58333;
}

.quienes-somos p {
  font-size: 1rem;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.alcances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.4s ease-in-out;
}

.alcances .icono {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.alcances .icono img{
  width: 100%;
}

.card {
  background-color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #3b3b41;
}

.card p {
  margin-top: auto;
  font-size: 0.95rem;
  color: #6b7280;
}
.extra-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.extra-servicios.activo {
  max-height: 2000px; /* suficientemente grande para todas las tarjetas */
  opacity: 1;
  pointer-events: auto;
}

.extra-servicios .icono {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.extra-servicios .icono img{
  width: 100%;
}

.btn-centro {
  margin-top: 1rem;
}

.btn-negro {
  background-color: #3b3b41;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.btn-negro:hover {
  transform: translateY(-5px);
}

.carrusel-c {
  background-color: #ffffff;
  padding: .5rem 0;
  margin: 3rem 0 4rem;
  overflow: hidden;
}

.carrusel-c h2{
  font-weight: 900;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.slider {
  height: 80px;
  position: relative;
  width: 100%;
}

.slide-track {
  display: flex;
  width: calc(250px * 18); /* 9 logos x2 */
  animation: scroll 40s linear infinite;
}

.slide {
  height: 80px;
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  height: 80px;
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.slide img:hover {
  filter: none;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.nuestras-soluciones {
  background-color: #fff;
  padding: 0rem 2rem;
  margin-top: 1rem;
  text-align: center;
}

.nuestras-soluciones h2 {
  font-size: 2rem;
  color: #f58333;
  margin-bottom: 1rem;
}

.nuestras-soluciones p {
  font-size: 1rem;
  color: #3b3b41;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-inline: auto;
}

.sol-card {
  padding: 1.2rem;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sol-card:hover {
  transform: translateY(-5px);
}

.sol-card .icono img{
  width: 50%;
}

.sol-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #3b3b41;
}

.sol-card p {
  font-size: 0.95rem;
  color: #6b7280;
}

.casos-exito {
  background-color: #f9fafb;
  padding: 2rem 2rem;
  text-align: center;
}

.casos-exito h2 {
  font-size: 2rem;
  color: #f58333;
  margin-bottom: 0.5rem;
}

.casos-exito p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.slider-clientes {
  overflow: hidden;
  height: 100px;
  position: relative;
}

.slide-track-clientes {
  display: flex;
  width: calc(250px * 18);
  animation: scroll-clientes 40s linear infinite;
}

.slide {
  width: 250px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-height: 60px;
  max-width: 100%;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.slide img:hover {
  filter: none;
  opacity: 1;
}

@keyframes scroll-clientes {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sectores {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.sectores-texto {
  flex: 1 1 300px;
  max-width: 400px;
}

.sectores-texto h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #2d2d2d;
}

.sectores-texto span {
  font-weight: 400;
}

.sectores-texto p {
  color: #666;
  margin-bottom: 1.5rem;
}

.paginacion {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.pagina-total {
  font-size: 1rem;
  color: #aaa;
  margin-left: 0.5rem;
}

.navegacion .btn {
  background: #ffc398;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

.navegacion .btn.next {
  background-color: #f58333;
  color: white;
}
/* Sección de Sectores: estilo base */
.sectores {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.sectores-texto {
  flex: 1 1 350px;
  max-width: 400px;
}

.sectores-texto h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #2d2d2d;
}

.sectores-texto p {
  color: #666;
  margin-bottom: 1.5rem;
}

.navegacion {
  display: flex;
  gap: 1rem;
}

.navegacion .btn {
  background: #ffc398;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.navegacion .btn.next {
  background-color: #f58333;
  color: white;
}

/* Carrusel */
.sectores-carrusel-wrapper {
  position: relative;
  flex: 2 1 600px;
  overflow: hidden;
}

.sectores-carrusel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 40px;
}

.sector-card {
  background: #3b3b41;
  border-radius: 10px;
  padding: 1rem;
  width: 300px;
  min-width: 300px;
  color: #fff;
  flex-shrink: 0;
}

.sector-card h3{
  margin-bottom: 1rem;
}

.sector-card .img-sector {
  height: 200px;
  max-height: 200px;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.sector-card .img-sector img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Degradado */
.sectores-carrusel-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  left: 0;
  background: linear-gradient(to right, white, transparent);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .sectores {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    overflow-x: hidden; /* 👈 importante para evitar desbordes */
  }

  .sectores-texto {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .sectores-carrusel-wrapper {
    width: 100%;
  }

  .sectores-carrusel {
    padding: 1rem 1rem;
  }
}

.seccion-servicios {
  padding: 0 1rem;
  background-color: #f9fafb;
  width: 90%;
  margin: auto;
}

.seccion-servicios .titulo-seccion{
  text-align: center;
  color: #f58333;
  padding: 2rem 4rem;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.servicio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 2 columnas si cabe */
  gap: 1.5rem;
}

.servicio-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  max-height: 100%;
}

.imagen-servicio {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.imagen-servicio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contenido-servicio {
  padding: 1rem 1.2rem;
}

.contenido-servicio h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: #111827;
}

.contenido-servicio p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.4;
  margin: 0;
}



.contacto-seccion {
  background: #efefef;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.contacto-contenedor {
  max-width: 1100px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* INFO IZQUIERDA */
.info-contacto {
  flex: 1 1 300px;
  background: #f58333;
  color: #fff;
  padding: 2rem;
}

.info-contacto h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-contacto p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.info-contacto ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-contacto li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.icono-contacto {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.icono-contacto img {
  width: 100%;
  height: auto;
  display: block;
}

.texto-contacto {
  display: inline-block;
  color: #fff;
  word-break: break-word;
}


/* FORMULARIO DERECHA */
.form-contacto {
  flex: 2 1 400px;
  padding: 2rem;
  background: #fff;
}

.form-fila {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.campo {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.campo label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.campo input,
.campo textarea {
  padding: 0.7rem;
  border: none;
  border-bottom: 2px solid #f58333;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: #333;
}

.form-contacto button {
  background-color: #f58333;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-contacto button:hover {
  background-color: #3b3b41;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .contacto-contenedor {
    flex-direction: column;
  }

  .form-fila {
    flex-direction: column;
  }

  .campo {
    flex: 1 1 100%;
  }
}


.footer {
  background-color: #3b3b41;
  color: #d1d5db;
  padding: 3rem 2rem;
  text-align: center;
}

.footer h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer hr {
  border: none;
  border-top: 1px solid #374151;
  margin: 2rem auto 1rem;
  max-width: 800px;
}

.footer-copy {
  text-align: none;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-copy a {
  text-decoration: none;
  color: #9ca3af;
}

.footer-copy a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  justify-content: center; /* o flex-end si quieres alinearlos a la derecha */
  gap: 1rem;
}

.footer-social a {
  color: #9ca3af;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #f58333; /* Naranja corporativo */
}


.animar {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.animar.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.politicas-seccion {
  background-color: #f9fafb;
  padding: 3rem 2rem;
  text-align: center;
}

.contenedor-politicas {
  max-width: 900px;
  margin: 0 auto;
  color: #444;
}

.politicas-seccion h2 {
  font-size: 1.8rem;
  color: #f58333;
  margin-bottom: 1.5rem;
}

.politicas-seccion p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

