
/* Estilos generales para el body */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background: #f9f9fb;
  background-image: url('assets/fondo_secciones.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  overflow-x: hidden; /* Previene el scroll horizontal */
}

/*Efecto paralex en todo el body*/
body {
  background-image: url('assets/fondo_secciones.png'); /* tu imagen de fondo */
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}



.hero {
  background: linear-gradient(rgba(36,0,70,0.7), rgba(36,0,70,0.7)),
              url('assets/hero.jpg') center/cover no-repeat;
  background-position: center;
  transition: background-position 0.3s ease;
  height: 100vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content p.frase-dinamica {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  position: absolute;
  width: 100%;
  top: 60px; /* ajusta según sea necesario */
  left: 0;
}
.hero-content p.frase-dinamica.visible {
  opacity: 1;
}


.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 50px; /* este valor separa el título del párrafo */
}

.hero-content p {
    font-size: 1.2em;
    margin: 50px 0; /* Este margen da espacio arriba y abajo */
}



.whatsapp-button {
  padding: 14px 30px;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  font-size: 1.1rem;
  animation: pulse 2s infinite;
  display: inline-block;
  transition: transform 0.3s ease;
  margin-top: 60px; /* separa aún más del párrafo */
}

.logo-top-left {
  position: absolute;
  top: 20px;
  left: 30px;
  width: 20vw;           /* Toma el 20% del ancho visible de la ventana */
  max-width: 280px;      /* No crecerá más de 280px */
  min-width: 120px;      /* Ni se hará demasiado pequeño */
  height: auto;
  z-index: 1000;
}


.frase-scroll {
  background: transparent;
  text-align: center;
  padding: 80px 20px;
}

.frase-texto {
  font-size: 2.5em;
  color: #7a7a7a; /* Un gris profundo, no negro puro */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.frase-texto.visible {
  opacity: 1;
  transform: translateY(0);
}





@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}




.servicios-limpios {
  background: url('assets/background-servicedesk.jpg') center center/cover no-repeat;
  position: relative;
  padding: 80px 20px;
}

.servicios-limpios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* Menor opacidad */
  backdrop-filter: blur(4px);
  z-index: 1;
}


.servicios-limpios h2 {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 40px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  justify-items: center;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* <- Muy importante para que quede por encima del fondo */
}
@media (min-width: 900px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.servicio {
  padding: 30px 20px;
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  min-height: 180px;
}

.servicio img {
  width: 250px;
  height: auto;
  transition: transform 0.5s ease, opacity 0.5s ease;
}


.servicio span {
  display: none; /* Ocultamos el texto extra porque ya está en el ícono */
}

/* Mostrar descripción al hacer hover */
.servicio::after {
  content: attr(data-descripcion);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 330px; /* Aumentado un 50% */
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #1d1d1f;
  font-size: 1.5em; /* Aumentado un 50% */
  border-radius: 16px; /* Más suavidad en los bordes */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Sombra más notoria */
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
  text-align: center;
}


.servicio:hover::after {
  opacity: 1;
}

.servicio:hover img {
  opacity: 0;
}
/* Animaciones de entrada y salida para servicios */
.servicio {
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s ease;
}

/* Nueva animación limpia para entrada y salida */
.servicio-fila-superior,
.servicio-fila-inferior {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-in-out;
}

.servicio-fila-superior.aparece {
  animation: slideInLeft 0.8s ease forwards;
}

.servicio-fila-inferior.aparece {
  animation: slideInRight 0.8s ease forwards;
}

.servicio-fila-superior.salida {
  animation: slideOutLeft 0.6s ease forwards;
}

.servicio-fila-inferior.salida {
  animation: slideOutRight 0.6s ease forwards;
}

/* Keyframes */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  to {
    transform: translateX(-100px);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  to {
    transform: translateX(100px);
    opacity: 0;
  }
}






.testimonios { padding: 60px 20px; background: transparent; text-align: center; }
.testimonios blockquote { font-style: italic; margin: 20px auto; max-width: 600px; }

footer { padding: 20px; background: #240046; color: white; text-align: center; }
/*Boton facebook*/
.fb-float {
  position: fixed; bottom: 30px; right: 30px;
  bottom: 100px; /* Justo arriba del botón de WhatsApp */
  right: 30px;
  background: #1877f2; /* Color oficial de Facebook */
  color: white;
  padding: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 9999;
}

.fb-float svg {
  display: block;
}

/*Boton whatssapp*/
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366; /* Color oficial de WhatsApp */
  color: white;
  padding: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 9999;
}

.wa-float svg {
  display: block;
}


@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.testimonios-slider {
    padding: 60px 20px;
    background: transparent;
    text-align: center;
}

.testimonios-slider h2 {
    margin-bottom: 30px;
    font-size: 2em;
}

.slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    height: 150px;
    overflow: hidden;
}

.testimonios-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    font-style: italic;
}

.testimonios-slider .slide.active {
    opacity: 1;
    z-index: 1;
}
/*Estrellas*/
.estrellas {
  margin-top: 10px;
  font-size: 1.5em;
  color: gold;
  letter-spacing: 2px;
}


.slide.active {
    opacity: 1;
    z-index: 1;
}

#frase-dinamica {
  transition: opacity 1s ease;
}
/*Menu horizontal*/
.menu-horizontal {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 2000;
  background-color: rgba(0, 61, 119, 0.85); /* Azul con transparencia */
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.menu-horizontal ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.menu-horizontal li {
  display: inline;
}

.menu-horizontal a,
.menu-horizontal span {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.menu-horizontal a:hover,
.menu-horizontal span:hover {
  color: #f74747;
}
/*quienes card*/
.quienes-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(30, 30, 30, 0.95); /* gris oscuro */
  color: white;
  padding: 60px 40px;
  z-index: 9999;
  width: 90vw;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  font-size: 1.2em;
  line-height: 1.6;
  box-sizing: border-box;
  overflow-y: auto;
  border-radius: 16px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quienes-content {
  width: 100%;
}

.quienes-card h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 30px 0 15px;
}

.staff-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.staff-member {
  text-align: center;
  max-width: 160px;
  color: #fff;
}

.staff-member img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #00bcd4;
  margin-bottom: 10px;
}

/* Estado visible/invisible */
.quienes-card.oculto {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.95);
}

.quienes-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Fade-in animación para el staff */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}







/*Targets*/
.targets {
  text-align: center;
  padding: 80px 20px;
  background-color: transparent;
  .targets {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 20px;
  text-align: center;
  
}

.target {
  flex: 1 1 300px;
  max-width: 320px;
  padding: 20px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.target img {
  width: 220px;
  height: auto;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.target h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.target p {
  font-size: 1em;
  color: #444;
}

/* Efecto al pasar el mouse */
.target:hover img {
  transform: scale(1.1);
}

}

.targets h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

.targets-contenedor {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.target-item {
  max-width: 280px;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(50px);
}

.target-item.aparece {
  opacity: 1;
  transform: translateY(0);
}

.target-item img {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.target-item h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.target-item p {
  font-size: 1em;
  color: #444;
}
/*Formulario whatsapp*/.formulario-whatsapp {
  padding: 60px 20px;
  background: #f3f3f3;
  text-align: center;
}

.formulario-whatsapp h2 {
  margin-bottom: 30px;
  font-size: 1.8em;
}

#formularioRapido {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#formularioRapido input,
#formularioRapido select {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#formularioRapido button {
  background: #25d366;
  color: white;
  font-weight: bold;
  padding: 14px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#formularioRapido button:hover {
  background: #1ebe5d;
}

/*Ajuste a pantallas pequeñas*/
@media (max-width: 500px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    gap: 20px;
  }

  @media (max-width: 500px) {
    .servicios-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columnas en moviles*/
      gap: 20px;
    }

    .servicio img {
      width: 100px;
    }

    .servicio::after {
      font-size: 0.9em;
      width: 90%;
    }
  }
}

/*Fondo para secciones blancas*/
.seccion-blanca {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.seccion-blanca::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/fondo_secciones.png'); /* Ajusta la ruta si es necesario */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08; /* 👈 Cambia esto para más o menos visibilidad */
  z-index: -1;
}
/*Carrusel de marcas*/

.carrusel-marcas {
  overflow: hidden;
  background: transparent;
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.marcas-slider {
  width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
}

.marcas-track {
  display: inline-flex;
  animation: moverMarcas 40s linear infinite;
}

.marcas-track img {
  height: 60px;
  margin: 0 30px;
  filter: none;
  transition: transform 0.3s ease;
}

.marcas-track img:hover {
  transform: scale(1.1);
}

@keyframes moverMarcas {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


@media (max-width: 768px) {
  .logo-top-left {
    top: 30px; /* Reducido en móviles */
    left: 20px; /* Puedes ajustar este valor si es necesario */
    margin-top: 30px; /* Espacio reducido en móviles */
  }
}

@media (max-width: 480px) {
  .logo-top-left {
    top: 30px;
    left: 15px;
    margin-top: 30px; /* Menos espacio en pantallas más pequeñas */
  }
}
  .menu-horizontal {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.9rem;
  }

/* Paso 1: Prevención global de desbordamiento horizontal */
html, body {
  overflow-x: hidden;
  width: 100%;
}
.telefono-hero {
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}
