/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* CLASE GENERAL PARA TODAS LAS SECCIONES */
.seccion {
  padding: 60px 20px;
  margin-bottom: 60px;
}

/* CONTENEDOR REUTILIZABLE */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  background-color: #275e95;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo img {
   height: 65px;
  width: auto;
}

.menu a {
  color: #fff;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.menu a:hover,
.menu a.activo {
  color: #ffcc00;
}

.menu a.activo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffcc00;
}

/* INICIO */
.inicio {
    position: relative;
    width: 100%;
    padding: 100px 20px;
    color: white;
    overflow: hidden;
    z-index: 1;
}

/* Carrusel de fondo */
.carrusel-inicio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carrusel-inicio .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.3s ease-in-out;
}

.carrusel-inicio .slide.activo {
    opacity: 1;
}


.inicio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.inicio-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.texto-inicio {
  flex: 1 1 50%;
}

.texto-inicio h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.texto-inicio p {
  font-size: 1.3em;
}

.imagen-inicio {
  flex: 1 1 40%;
  text-align: center;
}

.imagen-inicio img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* MISIÓN Y VISIÓN */
.mision-vision {
position: relative;
padding: 60px 20px;
overflow: hidden; /* para que las animaciones no se salgan */
background: #f0f0f0; /* color base del fondo */
}

.mision-vision::before,
.mision-vision::after {
content: "";
position: absolute;
border-radius: 50%;
z-index: 0;
opacity: 0.4;
}

.mision-vision::before {
width: 30em;
height: 30em;
top: -10%;
left: -15%;
background: radial-gradient(circle, #3800e7, #8a15ff, #15e0ff);
animation: rotate-background 20s linear infinite;
}

.mision-vision::after {
width: 25em;
height: 25em;
bottom: -10%;
right: -10%;
background: radial-gradient(circle, #d000c5, #8a15ff, #3800e7);
animation: rotate-background-reverse 25s linear infinite;
}

@keyframes rotate-background {
0% { transform: rotate(0deg) translate(0, 0); }
50% { transform: rotate(180deg) translate(10px, -10px); }
100% { transform: rotate(360deg) translate(0, 0); }
}

@keyframes rotate-background-reverse {
0% { transform: rotate(360deg) translate(0, 0); }
50% { transform: rotate(180deg) translate(-10px, 10px); }
100% { transform: rotate(0deg) translate(0, 0); }
}

/* Contenedor de bloques */
.mision-vision .container {
display: flex;
gap: 40px;
flex-wrap: wrap;
justify-content: center;
position: relative;
z-index: 1; /* para que los bloques queden sobre las animaciones */
}

/* Bloques */
.mision-vision .bloque {
flex: 1 1 45%;
background: #e6e6e6;
padding: 30px;
border-left: 8px solid #003366;
border-radius: 12px;
transition: all 0.3s ease;
}

.mision-vision .bloque:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.mision-vision h2 {
margin-bottom: 15px;
color: #003366;
}

.mision-vision .bloque p {
text-align: justify;
}



/* FOOTER */
.footer {
  background-color: #275e95;
  color: white;
  padding: 60px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 10px;
}

.footer-left p {
  margin: 5px 0;
}

.footer-center ul {
  list-style: none;
  padding: 0;
}

.footer-center ul li {
  margin: 8px 0;
}

.footer-center ul li a {
  color: white;
  text-decoration: none;
}

.footer-center ul li a:hover {
  text-decoration: underline;
}

.footer-right h3 {
  margin-bottom: 10px;
}

.social-icons a img {
  width: 24px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.social-icons a img:hover {
  transform: scale(1.2);
}

.footer-center p {
  font-size: 1.2em;
  color: #9a9a97;
  margin-bottom: 10px;
}

.footer-left i {
  margin-right: 10px;
  color: #fc2020;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .inicio-container,
  .mision-vision .container,
  .servicio-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 55px;
  }
}

/* Estilo general del ícono hamburguesa */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
  }

  .menu a {
    margin: 15px 0;
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .menu.active {
    display: flex;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* SEPARADOR*/
.separador {
  background: linear-gradient(135deg, #003366, #00509e);
  color: white;
  text-align: center;
  padding: 60px 30px;
  font-size: 1em;
  font-style: italic;
  margin-bottom: 60px;

  /* EFECTO SCROLL */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.separador.visible {
  opacity: 1;
  transform: translateY(0);
}

.separador-2 {
  background: linear-gradient(90deg, #003366 0%, #003366 50%, #00509e 100%);
  height: 50px;
  margin: 60px 0;
}



/* --- ESTADO INICIAL --- */
.bloque {
    opacity: 0;
    transform: translateY(50px) rotateY(90deg);
    transition: opacity 3.5s ease-out, transform 3.5s ease-out;
}

/* --- ANIMACIÓN DE ENTRADA --- */
.bloque.visible {
    opacity: 1;
    transform: translateY(0) rotateY(0deg);
}

/* --- FLOTAR DESPUÉS DE ENTRAR --- */
.bloque.flotar {
    animation: flotar 3s ease-in-out infinite;
}

@keyframes flotar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* =====================
   EFECTO DE ENTRADA GIRANDO PARA EL H1
===================== */
.texto-inicio h1 {
    opacity: 0;
    transform: rotateY(90deg) translateY(20px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

.texto-inicio h1.visible {
    opacity: 1;
    transform: rotateY(0deg) translateY(0);
}

/* =====================
   EFECTO DE FLOTAR PARA LA IMAGEN
===================== */
.imagen-inicio img {
    animation: flotarInicio 4s ease-in-out infinite;
}

@keyframes flotarInicio {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* ===========================
   ALCANCES Y EXPERIENCIA
=========================== */

.alcances-container {
    display: flex;
    gap: 40px;
    padding: 60px 40px;
    align-items: center;
    flex-wrap: wrap;
}

.alcances-texto {
    flex: 1 1 50%;
}

.alcances-texto h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #001B74;
    margin-bottom: 20px;
}

.alcances-texto p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    text-align: justify;
}

.alcances-img {
    flex: 1 1 40%;
}

.alcances-img img {
    width: 100%;
    border-radius: 12px;
}

/* ===========================
   CONTADORES
=========================== */
.contadores {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #c5c5c5, #dcdcdc);
    border-radius: 12px;
    overflow-x: auto;
}

.contador-item {
    text-align: center;
    min-width: 150px;
}

.contador-item h3 {
    font-size: 2rem;
    color: #001B74;
    margin-bottom: 10px;
    font-weight: bold;
}

.contador-item p {
    font-size: 0.9rem;
    color: #333;
}

/* ===========================
   CLIENTES
=========================== */
.clientes {
    text-align: center;
    padding: 50px 20px;
}

.clientes h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #001B74;
    margin-bottom: 40px;
}

.logos-clientes {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.logos-clientes img {
    width: 150px;
    filter: grayscale(20%);
    transition: .3s;
}

.logos-clientes img:hover {
    filter: grayscale(0%);
    transform: scale(1.08);
}

/*SECCIÓN PROCESOS*/

.procesos {
    position: relative;
    width: 100%;
    color: #fff;
    overflow: hidden;
}

/* Fondo carrusel */
.carrusel-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carrusel-fondo .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.carrusel-fondo .slide.activo {
    opacity: 1;
}

/* Contenido */
.contenido-procesos {
    padding: 70px 20px;
    text-align: center;
}

.contenido-procesos h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
}

.grid-procesos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fuerza 3 columnas */
    gap: 25px;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: auto;
}


.btn-proceso {
    background: rgba(80, 80, 255, 0.9);
    padding: 22px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform .3s ease, background .3s ease;
}

.btn-proceso:hover {
    transform: translateY(-6px);
    background: rgb(63, 173, 252);
}

/* Ventana flotante */
.info-flotante {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 400px;
    background: white;
    padding: 25px;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,.4);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
}

.info-flotante.activo {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

@media (max-width: 768px) {
    .grid-procesos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-procesos {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ANIMACIÓN DE FLOTAR */
@keyframes flotarProcesos {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

