/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #fff;
  background-size: 200% 200%;
  animation: glowBackground 15s ease-in-out infinite;
  color: #fff;
  overflow-x: hidden;
}

@keyframes backgroundFluido {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

main {
  position: relative;
  z-index: 1;
}
section {
  padding: 100px 20px;
  backdrop-filter: blur(10px);
  margin: 0 auto;
  border-radius: 16px;
}


a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Layout básico */
header, footer, main, section {
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}


/* === Animaciones de aparición  === */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Carrusel --- */
.hero-video {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

.hero-video video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: 0;
}

.hero-video .overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 40px 20px;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  animation: fadeIn 2s ease;
}

.hero-video h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-video p {
  font-size: 1.3rem;
  margin-bottom: 1.5em;
  color: #cceeff;
}

.hero-video .btn-ver-mas {
  padding: 14px 28px;
  font-size: 1rem;
  background: #00bfff;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.hero-video .btn-ver-mas:hover {
  background: #007aa3;
}

/* Animación suave */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-video h1 {
    font-size: 2rem;
  }

  .hero-video p {
    font-size: 1rem;
  }
}

/* --- Secciones generales --- */
.servicios-adicionales {
  padding: 100px 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.servicios-adicionales .titulo-seccion {
  font-size: 2.6rem;
  margin-bottom: 5px;
  color: #004f7c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.grid-pills-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.pill-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: radial-gradient(circle at center, #1a266e, #002b80);
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 30px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(0, 191, 255, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 900px;
}

.pill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(0, 200, 255, 0.5);
}

.icono-extra img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.4));
  transition: transform 0.4s ease;
}

.pill-card:hover .icono-extra img {
  transform: scale(1.1);
}

.texto-servicio h3 {
  font-size: 1.7rem;
  color: #00d5ff;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: left;
}

.texto-servicio p {
  font-size: 1rem;
  color: #e0f4ff;
  text-align: left;
  max-width: 600px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pill-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .texto-servicio h3, .texto-servicio p {
    text-align: center;
  }
}


/* --- Servicios extra --- */
.que-hacemos-alt {
  padding: 100px 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.que-hacemos-alt .titulo-seccion {
  font-size: 2.6rem;
  margin-bottom: 5px;
  color: #004f7c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Grids para organización */
.servicios-grid-top,
.servicios-grid-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.servicios-grid-bottom {
  margin-top: 60px;
}

/* Card general */
.servicio-card {
  background: rgba(11, 104, 180, 0.856);
  padding: 30px 20px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.404);
  max-width: 280px;
  min-height: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 200, 255, 0.3);
}

.servicio-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.25));
  transition: transform 0.3s ease;
}

.servicio-card:hover img {
  transform: scale(1.05);
}

.servicio-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
}

.servicio-card p {
  font-size: 0.95rem;
  color: #b2f3ff;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .servicios-grid-top,
  .servicios-grid-bottom {
    gap: 20px;
  }

  .servicio-card {
    max-width: 100%;
  }
}

/* --- Impacto --- */
.impacto {
  padding: 100px 20px;
  color: white;
  text-align: center;
    background: linear-gradient(to bottom, #f8f9fb, #eaeef3);

}
 .impacto .titulo-seccion{font-size: 2.5rem;
  margin-bottom: 60px;
  color: #004f7c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;}

.grid-numeros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto 0;
}

.numero-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.1);
  transition: transform 0.3s ease;
}

.numero-item:hover {
  transform: translateY(-5px);
}

.numero-item .contador {
  font-size: 3rem;
  font-weight: bold;
  color: #00728b;
  display: block;
  margin-bottom: 10px;
}

.numero-item p {
  color: #000000;
  font-size: 1.1rem;
}
/* --- Obras --- */
.montajes-huella {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
  background: radial-gradient(circle at center, #0a0f2c 0%, #010313 100%);
}

/* Canvas animado del fondo estrellado */
#canvas-estrellas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Asegura que el contenido esté sobre el canvas */
.montajes-huella > *:not(#canvas-estrellas) {
  position: relative;
  z-index: 1;
}


/* Título */
.montajes-huella .titulo-seccion {
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #00c8ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Galería */
.galeria-3d {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Tarjeta de montaje */
.galeria-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 250px;
  height: 400px;
  border-radius: 18px;
  text-decoration: none;
  color: #cceeff;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 191, 255, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #0c0f17;
  position: relative;
}

.galeria-item:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 200, 255, 0.4);
}

.galeria-img {
  width: 100%;
  height: 85%; /* siempre ocupa el 85% de la tarjeta */
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.galeria-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* rellena el hueco completamente */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.galeria-titulo {
  width: 100%;
  height: 15%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0 0 18px 18px;
}
/* --- Opiniones --- */
.opiniones-nextgen {
  padding: 60px 20px 40px;
  background: linear-gradient(to bottom, #f8f9fb, #eaeef3);
  color: #111;
  text-align: center;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.opiniones-nextgen .titulo-seccion {
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #004f7c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;

}

.slider-opiniones {
  position: relative;
  height: auto;
  min-height: 160px;
}

.op-card {
  background: #2c3e50;
  color: #ecf0f1;
  border-radius: 14px;
  padding: 30px 20px;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  transform: scale(0.97) translateY(20px);
  transition: all 0.5s ease-in-out;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
}

.op-card.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  z-index: 2;
}

.mensaje {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.5;
}

.autor {
  font-size: 0.95rem;
  font-weight: 600;
  color: #48dbfb;
}

.op-controles {
  margin-top: 30px;
}

.op-controles button {
  background: transparent;
  border: 2px solid #00bcd4;
  color: #00bcd4;
  font-size: 1.3rem;
  padding: 10px 14px;
  margin: 0 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.op-controles button:hover {
  background: #00bcd4;
  color: white;
  transform: scale(1.1);
}
/* --- Beneficios --- */
.beneficios-section {
  padding: 80px 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.beneficios-section .titulo-seccion {
  font-size: 2.6rem;
  margin-bottom: 60px;
  color: #004f7c;

  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.beneficios-section .titulo-seccion span {
  color: #00bfff;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

.beneficio-card {
  border-radius: 20px;
  padding: 30px 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.315);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: translateY(40px);
  opacity: 0;  background: rgba(255, 255, 255, 0.856);

}

.beneficio-card.visible {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.8s ease-out;
}

.beneficio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 35px rgba(0, 200, 255, 0.35);
}

.icono-img {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.icono-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.beneficio-card h3 {
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: 12px;
  font-weight: 700;
}

.beneficio-card p {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.6;
}


/* Animación por scroll */
.beneficio-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s ease-out;
}
/* --- Clientes --- */
.clientes-section {
 background-color:#ffffff; padding: 80px 20px;
  text-align: center;
  color: white;
}

.clientes-section .titulo-seccion {
    font-size: 2.5rem;
  margin-bottom: 60px;
  color: #004f7c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;

}

.clientes-section .subtexto {
  color: #000000;
  font-size: 1rem;
  margin-bottom: 50px;
}

.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.logo-cliente {
  width: 180px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
}

.logo-cliente.visible {
  opacity: 1;
  transform: scale(1);
  transition: all 0.5s ease-out;
}

.logo-cliente:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 170, 255, 0.3);
}

.logo-cliente img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.3));
}
/* redes */
.redes-section {
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.redes-section .titulo-seccion {
    font-size: 2.5rem;
  margin-bottom: 60px;
  color: #004f7c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;

}

.redes-section .subtexto {
  color: #000000;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.iconos-redes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.icono-red {
  width: 70px;
  height: 70px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.1);
}

.icono-red:hover {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.5);
}

.icono-red img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.3));
}


/* --- Animaciones --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .carrusel-texto h1 {
    font-size: 2em;
  }

  .carrusel-texto h2 {
    font-size: 1.2em;
  }

  .footer-contenido {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
