/* /var/www/html/css/styles.css */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0A0F1C;
    color: #F1F5F9;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #0A0F1C;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
  }
  
  /* Navbar general */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0A0F1C;
    padding: 20px 50px;
    box-shadow: 0 4px 10px rgba(0, 255, 153, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* Logo */
  .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff99;
    letter-spacing: 1px;
    cursor: pointer;
  }

  /* Enlaces */
  .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
  }

  .nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
  }


  .hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #00ff99;
}

  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #0a0f1b;
      position: absolute;
      top: 60px;
      right: 20px;
      width: 200px;
      border-radius: 10px;
      padding: 10px 0;
      z-index: 1000;
    }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }

  .hamburger {
    display: block;
  }
}

  /* Efecto hover con subrayado animado */
  .nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background:#00ff99;
    left: 0;
    bottom: 0;
    transition: 0.3s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .nav-links a:hover {
    color: #00ff99;
  }
  

  .nav a {
    margin-left: 1rem;
    color: #F1F5F9;
    text-decoration: none;
  }
  
  .nav a:hover {
    color: #10B981;
  }
  
/* Fin Cabecera*/

  .hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: #0A0F1C;
  }
  
  .hero h2 {
    color: #3B82F6;
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

    .hero h1 {
    color: #3B82F6;
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .boton {
    background-color: #10B981;
    color: #0A0F1C;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .boton:hover {
    background-color: #059669;
  }
/* APARTADO DE SERVICIOS */
  .servicios, .sobre, .contacto {
    padding: 4rem 2rem;
    background-color: #0A0F1C;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
  }

  .servicio:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px #00ff99;
  }
  
  .servicios h3, .sobre h3, .contacto h3 {
    color: #3B82F6;
    text-align: center;
    margin-bottom: 2rem;
  }
  /* BLOQUE DE SERVICIO  */ 
  .grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 420px));
    justify-content: center; /* centra el grid si sobra espacio */
  }
  
  .servicio {
    background-color: #1E293B;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;

    position: relative;
    overflow: hidden;
    color: white;
    border-radius: 1rem;
  }

  .servicio img {
    display: block;           /* evita espacios raros */
    margin: 0 auto 15px auto; /* centra la imagen y deja margen abajo */
    border-radius: 12px;      /* opcional: bordes redondeados */
    background-color: #0d1117; /* opcional: un fondo oscuro uniforme */
    padding: 8px;             /* opcional: un poco de aire dentro */

    position: absolute;
    top:0; left:0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Estado inicial: oculto y desplazado */
.servicio {
  opacity: 0;
  transform: translateY(50px); /* puedes cambiar a X para que venga desde un lado */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Estado visible cuando entra en pantalla */
.servicio.visible {
  opacity: 1;
  transform: translateY(0);
}


.servicio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  z-index: 1;
}

.servicio h4, 
.servicio p {
  position: relative;
  z-index: 2;
}

.servicio:hover img {
  transform: scale(1.1);
  opacity: 0.9; /* opcional */
}

.servicio:hover {
  transform: translateY(-5px);
}









.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
  color: #94A3B8;
  background-color: #0A0F1C;
}

  /*Imagen fondo Principio*/

.hero {
height: 60vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
text-align: center;
background-image: url('/img/imagen.png');
background-size: cover;
background-position: center;
animation: backgroundZoom 15s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Oscurece para que el texto destaque */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

@keyframes backgroundZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* Bloque de Sobre Nosotros*/

.about-us {
  padding: 80px 40px;
  padding-bottom: 60px;
  text-align: center;
  /*background-color: #12141c;*/
  background-color: #0A0F1C;
  color: #f1f1f1;
}

.about-us h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #3b82f6;
}

.about-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.intro-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  color: #ffffff;
  padding: 10px;
  line-height: 1.6;
}

.card {
  background-color: #1E293B;
  border-radius: 16px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 1s ease, opacity 1s ease, box-shadow 0.6s ease;
  opacity: 0;
  transform: translateY(50px);
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 15px #00ff99, 0 0 50px #00ff99;
}

.card h3 {
  color: #3b82f6;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95em;
  line-height: 1.6;
  font-size: 16px;
}

/* Animación al hacer scroll */
.card.visible {
  opacity: 1;
  transform: translateY(0);
}



/* INICIO TESTIMONIO SECCION */

/* Sección principal */
#testimonios {
    max-width: 1100px;
    margin: 20px auto;
    padding: 40px 20px;
    background-color: #0A0F1C;
    border-radius: 8px;
}

/* Título */
#testimonios h2 {
    color: #3B82F6;
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

#testimonios h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #3B82F6;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Contenedor de testimonios */
.contenedor-testimonios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Tarjetas */
.testimonio {
    background-color: #1E293B;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.testimonio:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px #00ff99;
}

.testimonio p {
    font-style: italic;
    color: #ffffff;
    margin-bottom: 15px;
}

.testimonio h4 {
    color: #3B82F6;
    text-align: right;
    font-size: 1.05rem;
}

.testimonio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    margin: 0 auto 15px auto; /* <-- centrado horizontal + margen abajo */
    display: block;           /* necesario para que margin:auto funcione */
}

/* Móviles */
@media (max-width: 600px) {
    #testimonios {
        padding: 40px 10px;
    }
    #testimonios h2 {
        font-size: 1.9rem;
    }
}


/*  SECCION CONTACTOS     */

.contacto {
  text-align: center;
}

.contacto .boton {
  display: inline-block;
  margin-top: 10px;
}
