/* =========================
   RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter', sans-serif;
}

body{
  background: linear-gradient(135deg, #0A0F1C, #0F172A);
  color:#E5E7EB;
}

/* =========================
   NAVBAR
========================= */
.navbar{
  position:fixed;
  top:0;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
  background:rgba(10,15,28,0.6);
  backdrop-filter: blur(10px);
  z-index:1000;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:18px;
}

/* IMAGEN DEL LOGO */
.logo img{
  width:38px;
  height:38px;
  object-fit:contain;

  border-radius:50%;
  padding:2px;

  background: radial-gradient(circle, rgba(0,200,255,0.2), transparent 70%);

  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.089),
    0 0 20px rgba(0, 200, 255, 0.183);
}

.menu{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:40px;
}

.menu a,
.navbar a{
  color:#9CA3AF;
  text-decoration:none;
  transition:0.3s;
}

.menu a:hover,
.navbar a:hover{
  color:#00F5FF;
}

.social{
  display:flex;
  align-items:center;
}

.social a{
  margin-left:15px;
  font-size:14px;
}

/* =========================
   HERO
========================= */
.hero{
  position: relative;
  min-height: 100vh;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:100px 20px;

  background:url("IMG/fonfosecun.jpg") center/cover no-repeat;
  animation:moverFondoSuave 30s infinite linear;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(5,10,25,0.95),
    rgba(5,10,25,0.85),
    rgba(5,10,25,0.95)
  );
  z-index:1;
}

.hero *{
  position:relative;
  z-index:2;
}

.hero-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
}

.bg-slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:translateY(-100%);
  opacity:0;
  transition:all 2.5s ease;
}

.bg-slide.active{
  transform:translateY(0);
  opacity:1;
}

.bg-slide.exit{
  transform:translateY(100%);
  opacity:0;
}

.hero-logo{
  width:140px;
  margin-bottom:25px;

  border-radius:50%; /* 🔥 círculo perfecto */
  overflow:hidden;   /* 🔥 corta las esquinas feas */

  background:#0A0F1C; /* 🔥 fondo limpio */
  padding:5px;

  box-shadow:
    0 0 20px rgba(0,255,255,0.4),
    0 0 40px rgba(0,200,255,0.3);

  transition:0.3s;
}

.hero-logo:hover{
  transform:scale(1.08);
}

.hero h1{
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom:20px;
}

.hero p{
  font-size: clamp(14px, 2vw, 18px);
  color:#9CA3AF;
  margin-bottom:20px;
  max-width:600px;
}

/* BOTÓN HERO ENLACE */
.btn-hero{
  display:inline-block;
  padding:12px 25px;
  background:#00F5FF;
  color:#000;
  text-decoration:none;
  border-radius:8px;
  font-weight:600;
  transition:0.3s;
  box-shadow:0 0 20px rgba(0,245,255,0.4);
}

.btn-hero:hover{
  transform:scale(1.05);
}

/* SCROLL SUAVE */
html{
  scroll-behavior:smooth;
}


.hero button:hover{
  transform:scale(1.05);
}

/* =========================
   SERVICES
========================= */
.services{
  padding:100px 40px;
  text-align:center;
}

.cards{
  display:flex;
  gap:20px;
  justify-content:center;
  margin-top:40px;
  flex-wrap:wrap;
}

.card{
  width:300px;
  padding:30px;
  border-radius:15px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(0,255,255,0.15);
  backdrop-filter:blur(10px);
  transition:0.3s;
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 0 20px rgba(0,245,255,0.2);
}

/* =========================
   HERO SPLIT
========================= */
.hero-split{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:120px 60px;
  gap:60px;
  flex-wrap:wrap;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.hero-images .img {
  width: 100%;
  height: 180px; /* 🔥 aquí controlas qué tan rectangular */
  object-fit: cover; /* recorta la imagen sin deformarla */
  border-radius: 10px;
}

.img.small{ height:120px; }
.img.medium{ height:180px; }
.img.big{ height:260px; }

.img:hover{
  transform:scale(1.05);
  box-shadow:0 0 20px rgba(0,245,255,0.2);
}

.hero-section {
  display: flex;              /* Activa flexbox */
  justify-content: space-between; /* Separa imágenes y texto */
  align-items: center;        /* Centra verticalmente */
  padding: 40px;
}

.hero-images {
  flex: 1;                    /* Ocupa espacio a la izquierda */
}

.hero-text {
  flex: 1;                    /* Ocupa espacio a la derecha */
  color: #fff;
  text-align: left;
  padding-left: 40px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-primary {
  background-color: #e63946;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #d62828;
}


/* =========================
   IMPACT
========================= */
.impact{
  padding:100px 40px;
  text-align:center;
}

.stat{
  font-size:32px;
  color:#00F5FF;
  margin-top:20px;
}

/* =========================
   CONTACT
========================= */
/* =========================
   CONTACTO PRO
========================= */

.contact{
  padding:100px 20px;
  text-align:center;
}

/* TITULO */
.contact h2{
  font-size:32px;
  margin-bottom:10px;
}

.contact p{
  color:#9CA3AF;
  margin-bottom:20px;
}

/* MAPA */
.contact iframe{
  width:100%;
  height:400px;
  border:none;
  border-radius:0; /* 🔥 quita bordes redondeados */
  margin:30px 0;
  display:block;
}

/* CONTENEDOR */
.contact-container{
  display:flex;
  gap:40px;
  justify-content:center;
  align-items:flex-start;
  margin-top:40px;
  flex-wrap:wrap;
}

/* =========================
   FORMULARIO
========================= */
.contact-form{
  flex:1;
  min-width:300px;
}

.contact-form form{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:14px;
  border:none;
  border-radius:10px;
  outline:none;
  font-size:14px;
  background:rgba(255,255,255,0.08);
  color:#fff;
}

.contact-form textarea{
  height:140px;
  resize:none;
}

/* BOTON */
.contact-form button{
  padding:14px;
  background:#00F5FF;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  transition:0.3s;
}

.contact-form button:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 25px rgba(0,245,255,0.4);
}

/* =========================
   TESTIMONIOS
========================= */
.testimonials{
  flex:1;
  min-width:300px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* CARD */
.testimonial{
  background: rgba(255,255,255,0.05);
  padding:20px;
  border-radius:12px;
  border:1px solid rgba(0,255,255,0.2);
  backdrop-filter:blur(10px);
  transition:0.3s;
  text-align:left;
}

.testimonial:hover{
  transform:translateY(-5px);
  box-shadow:0 0 25px rgba(0,245,255,0.25);
}

/* TEXTO */
.testimonial p{
  font-size:14px;
  margin-bottom:10px;
  color:#E5E7EB;
}

/* NOMBRE */
.testimonial span{
  font-size:13px;
  color:#00F5FF;
  font-weight:600;
}

.testimonial a {
  font-size: 12px;
  color: #E1306C; /* Instagram */
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
}

.testimonial a:hover {
  text-decoration: underline;
  color: #ff4d88;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:768px){

  .contact-container{
    flex-direction:column;
  }

  .contact iframe{
    height:250px;
  }

}

/* TEXTAREA */
.contact textarea{
  height:120px;
  resize:none;
}

/* BOTÓN */
.contact button{
  padding:12px;
  background:#00F5FF;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  transition:0.3s;
}

/* HOVER */
.contact button:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,245,255,0.3);
}
.btn-primary{
  padding:12px 25px;
  background:#00F5FF;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  transition:0.3s;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,245,255,0.3);
}

/* =========================
   SLIDER
========================= */
.trusted h2{
  text-align:center;
  font-size:32px;
  margin:50px 0;
  color:#E5E7EB;
  letter-spacing:1px;
}

.slider{
  overflow:hidden;
}

.slide-track{
  display:flex;
  width:max-content;
  animation:scroll 25s linear infinite;
}

.slide-track img{
  width:250px;
  height:150px;
  margin:0 20px;
  border-radius:10px;
  object-fit:cover;
  filter:grayscale(100%);
  opacity:0.7;
  transition:0.3s;
}

.slide-track img:hover{
  filter:grayscale(0%);
  opacity:1;
  transform:scale(1.1);
}

/* =========================
   ANIMACIONES
========================= */
@keyframes scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

@keyframes moverFondoSuave{
  0%{ background-position:center; }
  25%{ background-position:left; }
  50%{ background-position:right; }
  75%{ background-position:left; }
  100%{ background-position:center; }
}

/* =========================
   FOOTER
========================= */
footer{
  text-align:center;
  padding:20px;
  color:#6B7280;
}

/* =========================
   HAMBURGUESA
========================= */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:25px;
  height:3px;
  background:#fff;
  border-radius:5px;
}

/* =========================
   TABLET
========================= */
@media (max-width:1024px){

  .hero-split{
    flex-direction:column;
    text-align:center;
  }

  .hero-images,
  .hero-text{
    width:100%;
  }

  .hero-text h1{
    font-size:36px;
  }

}

/* =========================
   MOBILE
========================= */
@media (max-width:768px){

  .hamburger{
    display:flex;
  }

  .menu{
    position:fixed;
    top:70px;
    left:0;
    width:100%;
    background:rgba(10,15,28,0.95);
    flex-direction:column;
    align-items:center;
    gap:20px;
    padding:20px 0;
    display:none;
    transform:none;
  }

  .menu.active{
    display:flex;
  }

 @media (max-width:768px){

  .navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  /* 🔥 CAMBIAR ORDEN */
  .hamburger{
    order:1;
  }

  .logo{
    order:2;
    margin-left:10px;
  }

  .social{
    order:3;
  }

}

  .menu{
    position:fixed;
    top:70px;
    left:0;
    width:100%;
    background:rgba(10,15,28,0.95);
    flex-direction:column;
    align-items:center;
    gap:20px;
    padding:20px 0;
    display:none;
    transform:none;
  }

  .menu.active{
    display:flex;
  }

  /* ✅ MOSTRAR REDES TAMBIÉN EN MÓVIL */
  .social{
    display:flex;
    align-items:center;
    justify-content:flex-end;
  }

  .hero h1{
    font-size:32px;
  }

  .cards{
    flex-direction:column;
    align-items:center;
  }

}

  .hero h1{
    font-size:32px;
  }

  .cards{
    flex-direction:column;
    align-items:center;
  }



/* =========================
   MOBILE SMALL
========================= */
@media (max-width:480px){

  .navbar{
    padding:15px 20px;
  }

  .hero{
    padding:80px 15px;
  }

  .hero-logo{
    width:90px;
  }

  .hero h1{
    font-size:26px;
  }

  .hero p{
    font-size:14px;
  }

  .stat{
    font-size:22px;
  }

}

/* =========================
   ADS SLIDER
========================= */
.ads-slider{
  position:relative;
  width:100%;
  max-width:500px;
  margin:50px auto;
  overflow:hidden;
  border-radius:15px;
}

/* CONTENEDOR */
.ads-container{
  position:relative;
}

/* IMÁGENES */
.ads-slide{
  width:100%;
  display:none;
  border-radius:15px;
}

/* ACTIVA */
.ads-slide.active{
  display:block;
}

/* BOTONES */
.ads-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.5);
  color:#fff;
  border:none;
  padding:10px 15px;
  cursor:pointer;
  border-radius:50%;
  font-size:18px;
  transition:0.3s;
}

.ads-btn:hover{
  background:#00F5FF;
  color:#000;
}

/* POSICIÓN */
.prev{ left:10px; }
.next{ right:10px; }

.hero-text{
  width:100%;
  max-width:600px;
  margin:auto;
  text-align:center;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

/* =========================
   BURBUJA CIBERNÉTICA
========================= */
.about-widget{
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

/* BOTÓN */
.about-bubble{
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00f0ff, #0066ff);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
}

/* EFECTO GLOW */
.about-bubble::before{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:50%;
  background: linear-gradient(135deg,#00f0ff,#0066ff);
  filter: blur(15px);
  opacity:0.6;
  z-index:-1;
}

/* HOVER */
.about-bubble:hover{
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 35px rgba(0, 200, 255, 0.9);
}

/* PANEL */
.about-panel{
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 260px;
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 15px;
  padding: 20px;
  color: #E5E7EB;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.2);
}

/* TEXTO */
.about-panel h3{
  margin-bottom: 10px;
  color: #00f0ff;
}

.about-panel p{
  font-size: 14px;
  margin-bottom: 10px;
}

.about-panel ul{
  list-style: none;
  padding: 0;
  font-size: 13px;
  margin-bottom: 15px;
}

.about-panel ul li{
  margin-bottom: 5px;
}

/* BOTÓN */
.about-panel a{
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00f0ff, #0066ff);
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.about-panel a:hover{
  opacity: 0.8;
}

/* ACTIVAR PANEL */
.about-panel.active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* RESPONSIVE */
@media (max-width: 600px){

  .about-panel{
    width: 220px;
    right: 0;
  }

  .about-bubble{
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

}

/* =========================
   CLIENTES
========================= */
.clients{
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0A0F1C, #0F172A);
}

.clients h2{
  font-size: 32px;
  margin-bottom: 50px;
  color: #E5E7EB;
}

/* GRID */
.clients-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: auto;
}

/* CLIENTE */
.client{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: 0.3s;
}

/* CÍRCULO */
.client img{
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  padding: 0; /* ✅ quitar padding */
}

/* EFECTO HOVER */
.client:hover img{
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.6);
}

/* NOMBRE */
.client span {
  display: block;
  margin-top: 8px;
  color: #3b82f6;
  font-weight: bold;
}

.client a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 600px){

  .client img{
    width: 70px;
    height: 70px;
  }

  .clients h2{
    font-size: 24px;
  }

}

.texto-centrado{
  text-align: center;
}

@media (max-width:768px){

  .contact-container{
    display: flex;
    flex-direction: column;
    align-items: center; /* 🔥 CENTRA TODO */
  }

  .contact-form{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .contact-form form{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

}
@media (min-width: 769px){

  .cards{
    flex-direction: row;
    flex-wrap: nowrap; /* 🔥 siempre horizontal */
  }

  .card{
    width: 300px;
  }

}

.video-panel {
  padding: 40px;
  text-align: center;
  background: #0f172a; /* oscuro tipo tecnología */
  color: white;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
}

.video-container video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}