/* Reset */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
  line-height: 1.6;
  background: #f9faff;
  color: #003366;
}
/*HEADER*/
header {
  background: rgba(0, 51, 102, 0.8); /* Transparente */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}
header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
header .logo img {
  height: 70px;
  width: auto; /* mantiene proporción */
  border-radius: 5px;
}
header nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.8rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
header nav a:hover {
  color: #66a3ff;
}

/* HAMBURGUESA */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* MENÚ MÓVIL */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(0, 51, 102, 0.95);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  z-index: 1000;
}

.mobile-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.mobile-logo img {
  height: 80px;
}

.mobile-logo p {
  color: white;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.mobile-menu a:hover {
  color: #66a3ff;
}

/* VIDEO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero h1 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
}
/* Hero Parallax */
.hero-parallax {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que el video cubra todo */
  z-index: -1; /* Detrás del contenido */
}

.hero-overlay {
  position: relative;
  z-index: 1;
  background-color: rgba(0,51,102,0.25);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  border-radius: 0 0 20px 20px;
  color: white;
  text-align: center;
}
.hero-overlay h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero-overlay p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.btn-primary {
  background: #0059b3;
  color: white;
  padding: 0.85rem 3rem;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0,89,179,0.4);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background: #003366;
  box-shadow: 0 8px 20px rgba(0,51,102,0.7);
}



/* Sección de introducción */
.introduccion {
  position: relative;
  padding: 8rem 2rem; /* más aire */
  background: #0059b3; /* azul corporativo */
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Líneas decorativas (círculos grandes) */
.introduccion::before,
.introduccion::after,
.introduccion .circle-1,
.introduccion .circle-2 {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  width: 600px;
  height: 600px;
  animation: rotateCircle 40s linear infinite;
}

/* Círculo superior izquierda */
.introduccion::before {
  top: -200px;
  left: -250px;
}

/* Círculo inferior derecha */
.introduccion::after {
  bottom: -200px;
  right: -250px;
  animation-direction: reverse;
}

/* Círculo extra pequeño flotando */
.introduccion .circle-1 {
  width: 400px;
  height: 400px;
  top: 20%;
  left: 10%;
  animation: floatCircle 25s ease-in-out infinite;
}

/* Otro círculo extra */
.introduccion .circle-2 {
  width: 500px;
  height: 500px;
  bottom: 15%;
  right: 15%;
  animation: floatCircle 30s ease-in-out infinite reverse;
}

/* Animación de rotación */
@keyframes rotateCircle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animación de flotación */
@keyframes floatCircle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

/* Overlay interno para centrar el contenido */
.introduccion-overlay {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1; /* asegura que el texto esté sobre las líneas */
}

/* Título más grande */
.introduccion h2 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  border-bottom: 3px solid #fff;
  display: inline-block;
  padding-bottom: 0.6rem;
}

/* Texto introductorio más grande */
.introduccion p {
  font-size: 1.4rem;
  line-height: 2;
  max-width: 850px;
  margin: 0 auto 3rem auto;
  color: #f2f6fa;
}

/* Sección Trayectoria */
.trayectoria {
  position: relative;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('/images/monumento.jpg') center center / cover no-repeat fixed;
  color: #fff;
  text-align: left;
  padding: 4rem 2rem;
  overflow: hidden;
  z-index: 0; /* Asegura un contexto de apilamiento */
}

.trayectoria::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ajusta opacidad (0.5 = 50%) */
  z-index: 0; /* Justo debajo del contenido */
}

.trayectoria-overlay {
  background: rgba(5, 80, 141, 0.92);
  padding: 2.5rem 3rem;
  border-radius: 12px;
  max-width: 900px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s ease forwards;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.trayectoria-overlay h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 3px solid #fff;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.trayectoria-overlay p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #f2f6fa;
}

/* Sección Misión y Visión */
.mision-vision {
  position: relative;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('/images/mision-fondo.png') center center / cover no-repeat fixed;
  color: #fff;
  text-align: left;
  padding: 4rem 2rem;
  overflow: hidden;
}

.mision-overlay {
  background: rgba(0, 59, 119, 0.92); /* Azul corporativo */
  padding: 2.5rem 3rem;
  border-radius: 12px;
  max-width: 900px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s ease forwards;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.mision-overlay h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 3px solid #fff;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.mision-overlay p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #f2f6fa;
}
/* Animación fade in + slide */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Grid de tarjetas */
.intro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.intro-card {
  background: rgba(255, 255, 255, 0.95);
  color: #003366;
  padding: 2rem;
  border-radius: 15px;
  width: 300px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.intro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.intro-card h3 {
  color: #0059b3;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

#clientes {
    background-color: #004aad; /* Azul corporativo */
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

#clientes h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#clientes p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
/*VALORES*/
.valores {
  padding: 4rem 2rem;
  background: #f0f6ff;
  text-align: center;
}

.valores h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 2rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.valor-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.6s;
  cursor: pointer;
}

.valor-item:hover {
  transform: rotateY(180deg);
}

.valor-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  transition: transform 0.6s;
}

.valor-item:hover img {
  transform: rotate(360deg);
}

.valor-item p {
  font-size: 1rem;
  font-weight: bold;
  color: #003366;
}
/* CLIENTES */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding: 2rem 1rem;
}

.clientes-grid .cliente {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff10; /* Fondo sutil transparente */
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.clientes-grid .cliente:hover {
    transform: translateY(-8px) scale(1.05); /* Eleva y agranda un poco */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.clientes-grid .cliente img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.clientes-grid .cliente img:hover {
    transform: scale(1.15) rotate(-2deg); /* Zoom + ligera inclinación */
}

/* Responsivo */
@media (max-width: 768px) {
    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .clientes-grid {
        grid-template-columns: 1fr;
    }
}
/* ===========================
   SERVICIOS
=========================== */
#servicios {
  max-width: 1200px;
  margin: 4rem auto 5rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  padding: 0 1rem;
}

#servicios.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#servicios .card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem 2.2rem;
  box-shadow: 0 6px 15px rgba(0, 89, 179, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #003366;
  text-align: center;
}

#servicios .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 89, 179, 0.3);
}

#servicios h2 {
  grid-column: 1 / -1; /* título ocupa todo el ancho */
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #0059b3;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#servicios h3 {
  margin-bottom: 1rem;
  font-weight: 700;
}

#servicios p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#servicios button {
  background: #0059b3;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 89, 179, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#servicios button:hover {
  background: #003366;
  transform: scale(1.05);
}

/* ===========================
   REDES SOCIALES
=========================== */
.redes-sociales {
  background-color: #444; /* Mejor contraste que el gris claro */
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.redes-sociales h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #fff;
}

.redes-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.redes-grid a img {
  width: 70px; /* Íconos un poco más grandes */
  height: 70px;
  transition: transform 0.4s ease, rotate 0.4s ease;
}

.redes-grid a img:hover {
  transform: scale(1.2) rotate(360deg); /* Giro + Zoom */
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  #servicios h2 {
    font-size: 1.8rem;
  }

  #servicios .card {
    padding: 1.5rem;
  }

  .redes-grid {
    gap: 1.2rem;
  }

  .redes-grid a img {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 480px) {
  #servicios {
    margin: 2rem auto;
    gap: 1rem;
  }

  #servicios h2 {
    font-size: 1.5rem;
  }

  #servicios p {
    font-size: 0.9rem;
  }

  .redes-grid a img {
    width: 50px;
    height: 50px;
  }
}

/* Equipo Profesional */
#cv {
  max-width: 900px;
  margin: 4rem auto 5rem auto;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#cv.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#cv h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #0059b3;
  letter-spacing: 1px;
}
#cv .item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(0,89,179,0.1);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.5rem 2rem;
  cursor: default;
  transition: box-shadow 0.3s ease;
}
#cv .item:hover {
  box-shadow: 0 12px 30px rgba(0,89,179,0.25);
}
#cv .item img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0059b3;
  flex-shrink: 0;
}
#cv .item h4 {
  margin-bottom: 0.3rem;
  color: #003366;
}
#cv .item p {
  font-size: 0.95rem;
  color: #004a99;
  line-height: 1.3;
}

/* Contacto */
#contacto {
  max-width: 600px;
  margin: 3rem auto 4rem auto;
  padding: 1rem 1.5rem;
  text-align: center;
  color: #003366;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#contacto.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#contacto h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #0059b3;
}
#contacto p {
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}
#contacto a {
  color: #0059b3;
  text-decoration: none;
  font-weight: 600;
}
#contacto a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .intro-grid {
    flex-direction: column;
  }
  #servicios {
    flex-direction: column;
  }
  #cv .item {
    flex-direction: column;
    text-align: center;
  }
  #cv .item img {
    margin-bottom: 1rem;
  }
}