
/* Estilos generales para el body y html */
html {
  height: 100%;
  overflow: visible;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 5px 0; /* Reducido el padding vertical para compensar el logo más grande */
  background: transparent;
  transition: all 0.3s ease;
  overflow: visible; /* Asegura que el logo no se recorte */
}

.mobile-header.scrolled {
  padding: 10px 0;
  background: #222D5A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  padding-top: 10px; /* Añadido para bajar el contenido */
}

.mobile-logo {
  height: 160px; /* Aumentado aún más el tamaño del logo */
  margin-top: -50px; /* Ajuste para la posición vertical */
  margin-bottom: -35px; /* Ajuste para la posición vertical */
  display: flex;
  align-items: center;
  z-index: 1; /* Asegura que el logo esté sobre otros elementos */
}

/* Sobrescribir estilos de Bootstrap para ocultar la barra de scroll */
::-webkit-scrollbar {
    display: none !important;
  }
  
  ::-webkit-scrollbar-track {
    display: none !important;
  }
  
  ::-webkit-scrollbar-thumb {
    display: none !important;
  }
  
  /* Ocultar la barra de scroll en Firefox */
  * {
    scrollbar-width: none !important;
    scrollbar-color: transparent transparent !important;
  }
  
  /* Ocultar la barra de scroll en IE/Edge */
  * {
    -ms-overflow-style: none !important;
  }
  
  /* Estilo para el ícono de fútbol */
  .fas.fa-futbol {
    color: rgb(23, 136, 174) !important;
  }

  /* Ocultar título en móviles */
  @media (max-width: 767.98px) {
    .ecap-titulo {
      display: none !important;
    }
  }

  /* Estilos para la sección ECAP PERÚ */
  #ecap-peru {
    padding: 80px 0;
    background-color: #0A192F;
    color: #fff;
  }

  /* Estilos para el texto */
  /* Estilos para escritorio */
  @media (min-width: 992px) {
    #ecap-peru .ecap-texto {
      color: #CBD5E1;
      font-size: 1.1rem;
      line-height: 1.8;
      text-align: justify;
      text-justify: inter-word;
      padding: 10px 0 5px 5px; /* Más padding a la izquierda */
      max-width: 90%;
      margin: 0 0 0 -0%; /* Mover a la izquierda */
    }
  }

  #ecap-peru .ecap-texto p {
    margin-bottom: 1.5rem;
  }

  /* Estilos para la imagen */
  #ecap-peru .position-relative {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
  }

  #ecap-peru img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  #ecap-peru img:hover {
    transform: scale(1.03);
  }
  
  /* Ajustes responsivos */
  @media (max-width: 991.98px) {
    #ecap-peru {
      padding: 60px 0;
    }
    
    #ecap-peru .row {
      flex-direction: column;
    }
    
    #ecap-peru .col-lg-6 {
      margin-bottom: 40px;
    }
    
    #ecap-peru .ecap-texto {
      text-align: justify;
      text-justify: inter-word;
      font-size: 1rem;
      padding: 15px;
      max-width: 98%;
    }
    
    #ecap-peru .position-relative {
      max-width: 600px;
      margin: 0 auto;
    }
  }

  /* Estilos para el título 'CONOCE MÁS DE NOSOTROS' */
  .elementor-heading-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: white;
    font-size: 2.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
  }
  
  .elementor-heading-title .second-line {
    font-weight: 700;
    color: #ffffff;
    display: block;
    font-size: 3.5rem;
    line-height: 1;
    margin-top: 5px;
  }
  
  @media (max-width: 767.98px) {
    .elementor-heading-title {
      font-size: 2rem;
    }
    .elementor-heading-title .second-line {
      font-size: 2.5rem;
    }
  }
    /* Estilos generales para el body y html */
    body {
      font-family: 'Montserrat', sans-serif;
      line-height: 1.6;
      color: #333;
      background-color: #1c4152;
    }
  /* Estilos para el header y top bar */
  .main-content {
      min-height: 100vh;
      position: relative;
      z-index: 1;
      background: linear-gradient(351deg,rgba(33, 78, 93, 1) 36%, rgba(24, 55, 78, 1) 62%, rgba(3, 0, 41, 1) 88%);
    }
    /* Asegurar que el navbar no ocupe espacio en móviles */
  @media (max-width: 991.98px) {
  
    .top-bar {
      display: none !important;
    }
    
  

    /* Asegurar que el header móvil esté por encima del contenido pero debajo del menú */
    .mobile-header {
      z-index: 1050 !important; /* Menor que el menú (1100) */
    }
    
    /* Asegurar que el header principal no interfiera */
    .main-header {
      z-index: 1000 !important; /* Menor que el header móvil */
    }
    
    /* Asegurar que el menú esté por encima del overlay */
    .mobile-menu-content {
      position: relative;
      z-index: 10100 !important;
    }
    .navbar-toggler {
      display: none !important;
    }
    
    .navbar-collapse {
      display: flex !important;
    }
    
  
  }
    /* Top Bar */
    .top-bar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background-color: transparent;
      padding: 8px 0;
      z-index: 1002;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .top-bar.hide {
      opacity: 0;
      transform: translateY(-100%);
    }
    
    .top-bar {
      padding: 0 15px !important;
    }
    
    .top-bar-content {
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }
    
    .social-links {
      display: flex;
      align-items: center;
      margin-right: 20px;
    }
    
    .social-icon {
      color: #fff;
      text-decoration: none;
      margin: 0 12px;
      transition: color 0.3s ease;
      font-size: 1.5rem;
    }
    
    .social-icon:hover {
      color: rgb(23, 136, 174);
    }
    
    .contact-info {
      display: flex;
      align-items: center;
    }
    
    .contact-item {
      color: #fff;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      padding: 8px 15px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
      margin-left: 10px;
    }
    
    .contact-item i {
      margin-right: 8px;
    }
    
    .contact-item.whatsapp {
      background: rgba(76, 175, 80, 0.2);
    }
    
    .contact-item.whatsapp:hover {
      background: rgba(76, 175, 80, 0.3);
    }
    
    .contact-item:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
    }
    
    #mobileMenu {
      position: fixed; /* o absolute según diseño */
      z-index: 1050;   /* más alto que el header */
    }
    
    
    .main-header {
      position: fixed; /* o sticky según caso */
      z-index: 1000;  /* más bajo que menú y overlay */
    }
    
.main-header {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1000; /* base */
  transition: all 0.3s ease;
}

.main-header.sticky {
  position: fixed;
  top: 0;
  background: #222D5A;
  animation: slideDown 0.5s;
  z-index: 1000; /* asigna z-index para sticky */
}

/* Navbar */
.navbar {
  padding: 0;
  min-height: 70px;
}

/* Logo */
.navbar-brand {
  padding: 0;
  margin: 0;
  height: 60px;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 100%;
  width: auto;
  max-width: 200px;
  transition: all 0.3s ease;
}

/* Botón del menú móvil */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: #fff;
  background: transparent;
}

/* Enlaces del menú */
.navbar-nav {
  gap: 1rem;
}

.nav-link {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #2ecc71 !important;
}

.nav-link.active {
  color: #2ecc71 !important;
  font-weight: bold;
}

/* Menú desplegable en móviles */
.navbar-collapse {
  background-color: #222D5A;
  padding: 1rem;
  margin-top: 10px;
  border-radius: 5px;
}

/* Ajustes para móviles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #222D5A;
    padding: 1rem;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-item {
    margin: 5px 0;
  }
  
  .nav-link {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* Ajustes para escritorio */
@media (min-width: 992px) {
  .navbar-collapse {
    background-color: transparent;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
  }
  
  .nav-link {
    position: relative;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2ecc71;
    transition: width 0.3s ease;
  }
  
  .nav-link:hover::after,
  .nav-link:focus::after {
    width: 100%;
  }
}
  .main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important;
    padding: 10px 0;
  }
  
  .main-header.scrolled .navbar-brand img {
    height: 40px;
  }
  
  .main-header.scrolled .navbar-nav .nav-link {
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
  }
  .navbar .menu {
    flex-direction: column;
    gap: 1rem;
  }
  .navbar-collapse {
    display: flex !important;
  }
  .navbar-collapse {
    display: none !important;
  }

   /* Estilos para el título móvil */
   .ecap-titulo-movil {
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: white; /* Texto blanco para móvil */
  }
  
  .ecap-titulo-movil .titulo-linea1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: white; /* Texto blanco */
    line-height: 1;
  }
  
  .ecap-titulo-movil .titulo-linea2 {
    font-size: 3rem;
    font-weight: 700;
    color: #4a65d0;
    line-height: 1;
    margin-top: -5px;
  }
 
    /* Estilos generales de la página de noticias */
  .noticias-page {
    padding: 90px 0 50px;
    margin-top: -10px;
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
    top: -10px;
  }
  
  /* Estilos para la sección de noticias */
  .seccion {
    padding: 120px 0 30px;
    color: white;
    position: relative;
    z-index: 1;
    margin-bottom: -20px;
  }
  

  .texto-cursiva {
      font-family: "Playfair Display", serif;
      font-weight: 400;
      font-style: italic;
      font-size: 2.6rem;
      color: #ffffff;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .texto-negrita-anton {
      font-family: "Altone", sans-serif;
      font-weight: 700;
      font-style: normal;
      color: #ffffff;
      font-size: 2.5rem;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
      animation: textGlow 2s ease-in-out infinite;
  }
  
  /* Ajustes para móviles */
  @media (max-width: 768px) {
    .texto-negrita-anton {
      font-size: 2rem;
    }
  }
  @keyframes textGlow {
    0% {
      text-shadow: rgba(255, 255, 255, 0.57) 0px 0px 6.68068px, rgba(0, 180, 255, 0.333) 0px 0px 13.3614px;
    }
    100% {
      text-shadow: rgba(255, 255, 255, 0.57) 0px 0px 6.68068px, rgba(0, 180, 255, 0.333) 0px 0px 13.3614px;
    }
  }
  .linea-decorativa {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d3d3d3, #166498);
  
    margin-top: 10px;
  }
  
  .nuevos-ponentes, .nuevos-cursos {
    padding: 30px 0 30px;
    margin-top: 30px;
    margin-bottom: 60px;
  }
  
  .nuevos-cursos .titulo-cursos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
  }
  
  .nuevos-cursos .titulo-cursos::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #d3d3d3, #166498);
    border-radius: 2px;
  }
  
  
  
/* ======================
   ESTILOS DEL HEADER
   ====================== */
.navbar-brand {
  padding: 10px 0;
}


/* Asegurar que el menú y logo estén en su posición normal cuando no están activos */
.navbar-brand:not([data-animated]),
.navbar-nav .nav-link:not([data-animated]),
.social-links .social-icon:not([data-animated]),
.contact-info .contact-item:not([data-animated]) {
  transform: none;
  opacity: 1;
}
/* Animación para el menú y logo */
.navbar-brand,
.navbar-nav .nav-link,
.social-links .social-icon,
.contact-info .contact-item {
  animation: menuAppear 0.6s ease-out forwards;
}
.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link:hover {
  color: transparent !important;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(90deg, rgb(204, 29, 29) 0%, rgba(196, 24, 24, 1) 50%, rgba(189, 112, 6, 1) 100%);
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.navbar-nav {
  gap: 15px;
}

/* Estilo más específico para los enlaces del menú */
.navbar-nav .nav-item .nav-link {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.5rem !important; /* Tamaño aumentado */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff !important; /* Blanco puro */
  padding: 0.5rem 1.2rem;
  margin: 0 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  display: block; /* Asegura que el tamaño se aplique correctamente */
  line-height: 1.2; /* Mejora la legibilidad */
}

.navbar-brand img {
  height: 0px;
  transition: all 0.3s ease;
  position: relative;
  top: -23px; /* Mueve el logo 10px hacia arriba */
}
.navbar {
  padding: 5px 0; /* Reducido el padding vertical */
  transition: all 0.3s;
  min-height: 50px; /* Reducida la altura mínima del navbar */
  display: flex;
  align-items: center;
}

.navbar-brand {
  padding: 0;
  margin: 0 0 0 70px; /* Aumentado margen izquierdo a 70px */
  height: 50px; /* Reducida la altura del contenedor de la marca */
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 100px; /* Aumentado el tamaño de la imagen */
  width: auto; /* Mantiene la proporción */
  max-width: 100%;
  transition: all 0.3s;
  object-fit: contain;
  margin-top: -8px; /* Ajuste fino para centrarlo verticalmente */
}


.navbar-nav {
  gap: 15px;
}

/* Estilo más específico para los enlaces del menú */
.navbar-nav .nav-item .nav-link {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.5rem !important; /* Tamaño aumentado */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff !important; /* Blanco puro */
  padding: 0.5rem 1.2rem;
  margin: 0 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  display: block; /* Asegura que el tamaño se aplique correctamente */
  line-height: 1.2; /* Mejora la legibilidad */
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 5px;
  left: 0;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover:after {
  width: 100%;
  animation: rgbAnimation 2s linear infinite;
  background: none;
  background-color: rgb(255, 0, 0); /* Color inicial de respaldo */
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link:hover {
  color: transparent !important;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(90deg, rgb(204, 29, 29) 0%, rgba(196, 24, 24, 1) 50%, rgba(189, 112, 6, 1) 100%);
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.nav-link.active {
  color: #fff !important;
}

 
  /* Main Header Styles */
.main-header {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.top-bar .container {
  padding: 0 15px !important;
}
.main-header.sticky {
  position: fixed;
  top: 0;
  background: #222D5A;
  animation: slideDown 0.5s;
}
  /* Hero Section with Background Image */
.hero-section {
  position: relative;
  padding: 180px 0;
  overflow: hidden;
  background-color: #1c4152;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/back-nosotros-scaled.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-section .elementor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.hero-section .elementor-heading-title {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 10px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.hero-section .elementor-heading-title .second-line {
  display: block;
  margin-top: 5px;
}

.title-line {
  width: 100px;
  height: 3px;
  background-color: #ffffff;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 150px 0;
  }
  
  .hero-section .elementor-heading-title {
    font-size: 3rem;
  }
  
  .title-line {
    width: 80px;
    height: 2px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 80px;
    overflow: hidden;
  }
  
  .hero-section::before {
    transform: scale(1.4);
    transform-origin: center 90%;
  }
  
  .hero-section .elementor-heading-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    padding-bottom: 10px;
  }
  
  .hero-section .elementor-heading-title .second-line {
    margin-top: 3px;
  }
  
  .title-line {
    width: 60px;
    height: 2px;
  }
}

/* Sección ECAP PERÚ */
#ecap-peru {
  padding: 100px 0;
  background-color: #11263F;
}

/* Asegurar que el contenedor del título esté alineado a la izquierda */
#ecap-peru .container {
  padding-left: 15px;
  padding-right: 15px;
}

#ecap-peru .col-lg-6 {
  padding-left: 40px;
  padding-right: 40px;
}

/* Estilos para el título principal */
.ecap-titulo {
  color: #FFFFFF;
  font-family: 'Silka', sans-serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  text-align: left;
  align-items: flex-start;
  width: 100%;
}

.titulo-prefijo {
  font-family: 'Silka', sans-serif;
  font-style: italic;
  font-size: 50px;
  font-weight: normal;
  line-height: 1;
  margin-bottom: 5px;
  color: #CBD5E1;
}

.titulo-principal {
  font-family: 'Silka', sans-serif;
  font-weight: 900; /* Black weight */
  font-size: 80px;
  line-height: 1;
  margin: 5px 0;
  letter-spacing: -1px;
}

.titulo-sufijo {
  font-family: 'Silka', sans-serif;
  font-weight: 900; /* Black weight */
  font-size: 80px;
  line-height: 1;
  margin-top: 5px;
  letter-spacing: -1px;
}

/* Estilos para el título móvil */
.ecap-titulo-movil {
  color: #FFFFFF;
  font-family: 'Silka', sans-serif;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}

.ecap-titulo-movil .titulo-linea1 {
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: #CBD5E1;
  margin: 0;
  line-height: 1.2;
  display: block;
  margin-bottom: 5px;
}

.ecap-titulo-movil .titulo-linea2 {
  font-weight: 900;
  font-size: 36px;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.5px;
  display: block;
  white-space: nowrap; /* Prevent line break between ECAP and PERÚ */
}

.ecap-texto {
  font-family: 'Silka', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 35px;
  text-align: justify;
  color: #ffffff;
}

.ecap-texto p {
  margin-bottom:20px;
}

#ecap-peru h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: #1788ae;
}

#ecap-peru p {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

#ecap-peru img, #nuestro-enfoque img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease;
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}

#ecap-peru img:hover, #nuestro-enfoque img:hover {
  transform: scale(1.02);
}

/* Sección Nuestro Enfoque */
#nuestro-enfoque {
  padding: 60px 0;
  background-color: #F4F1ED;
}

#nuestro-enfoque .row {
  gap: 20px;
  justify-content: center;
}

#nuestro-enfoque .col-md-6 {
  padding: 0 10px;
  flex: 0 0 calc(50% - 20px);
  max-width: calc(50% - 20px);
}

/* Estilos responsivos */
@media (max-width: 575.98px) {
  .ecap-titulo {
    font-size: 32px;
  }
  
  .titulo-prefijo {
    font-size: 28px;
    color: #CBD5E1;
  }
  
  .titulo-principal,
  .titulo-sufijo {
    font-size: 32px;
  }
}

@media (max-width: 991.98px) {
  #ecap-peru, #nuestro-enfoque {
    padding: 50px 0;
  }
  
  .ecap-titulo {
    font-size: 60px;
  }
  
  .titulo-prefijo {
    font-size: 50px;
  }
  
  .titulo-principal,
  .titulo-sufijo {
    font-size: 60px;
  }
  
  .ecap-texto {
    font-size: 16px;
    line-height: 30px;
  }
  
  #ecap-peru h2 {
    font-size: 2rem;
    margin-top: 30px;
  }
  
  #ecap-peru p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  #ecap-peru, #nuestro-enfoque {
    padding: 30px 0 15px; /* Reducido el padding inferior de 30px a 15px */
    text-align: center;
  }
  
  /* Ajuste para el último párrafo en móviles */
  #ecap-peru .ecap-texto p:last-child {
    margin-bottom: -45px; /* Reducido el margen inferior */
  }
  
  .ecap-titulo-mobile {
    text-align: left;
    margin-bottom: 30px;
  }
  
  .ecap-titulo-mobile .titulo-linea-1 {
    margin-bottom: 8px;
  }
  
  .ecap-titulo {
    font-size: 36px;
    text-align: left;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  
  .titulo-prefijo {
    font-size: 30px;
    margin-bottom: 5px;
    color: #CBD5E1;
  }
  
  .titulo-principal {
    font-size: 36px;
    margin: 5px 0;
  }
  
  .titulo-sufijo {
    font-size: 36px;
    margin-top: 0;
  }
  
  .ecap-texto {
    text-align: left;
    font-size: 15px;
    line-height: 28px;
    margin-left: 0px; /* Ajuste sutil de 5px a la derecha */
  }
  
  #ecap-peru h2 {
    font-size: 1.8rem;
    margin-top: 20px;
  }
  
  #ecap-peru h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  #ecap-peru img, #nuestro-enfoque img {
    margin-top: 20px;
    max-height: 300px;
  }
  
  #nuestro-enfoque .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
  }
  
  #nuestro-enfoque .row {
    gap: 15px;
  }
}

/* Fondo de la sección hero */
.hero-background {
    background-image: url('../img/back-nosotros-scaled.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -190px;
    padding: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    width: 100%;
    padding: 120px 20px 60px;
}

/* Ajustes para el contenido sobre el fondo */
.main-content {
    position: relative;
    z-index: 2;
}

/* Añadiendo espacio superior al footer solo en la página de nosotros */
#contacto {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .ecap-titulo-movil .titulo-linea1,
  .ecap-titulo-movil .titulo-linea2 {
    font-size: 40px; /* Aumentado para ambas líneas del título */
  }
  
  #contacto {
    padding-top: 30px !important;
    padding-bottom: 40px !important;
  }
}

/* Estilos responsivos */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #222D5A;
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
    }
    
    .nav-link {
        padding: 10px 0 !important;
        display: block;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-image {
        margin-top: 70px;
    }
    
    /* Footer styles are now in style.css */
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}



/* Footer styles are now in style.css */

/* Efecto hover para las tarjetas */
.card-hover {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Ajustes para móviles */
@media (max-width: 767.98px) {
    .top-bar {
        font-size: 12px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .content-section {
        padding: 50px 0;
    }
    
    .footer-contact {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-button {
        justify-content: fi;
    }
}

/* Línea decorativa */  
/* ------------------------------------ */

/* Estilos para el botón de Acceder */
.hero .btn-primary {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.hero .btn-primary:hover {
  background: linear-gradient(45deg, #27ae60, #219653);
}

/* Estilos para la barra de desplazamiento */
html {
  scrollbar-width: thin;
  scrollbar-color: #2a5298 #f1f1f1;
}

/* Webkit (Chrome, Edge, Safari) */
html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: #f1f1f1;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 5px;
  transition: all 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #2a5298 #f1f1f1;
}

/* Reset y fuente básica */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: rgba(0, 0, 0, 0.4); /* negro con transparencia */
  color: #333;
  margin: 0;
  padding: 0;
}

/* Animación RGB */
@keyframes rgbAnimation {
  0% { background-color: rgb(255, 0, 0); } /* Rojo */
  33% { background-color: rgb(0, 255, 0); } /* Verde */
  66% { background-color: rgb(0, 0, 255); } /* Azul */
  100% { background-color: rgb(255, 0, 0); } /* Vuelve a rojo */
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  padding: 5px 0;
  font-size: 12px;
  color: #fff;
  z-index: 1001;
}

.top-bar  {
  padding: 0 15px !important;
}

.top-bar .top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 15px;
  margin: 0 !important;
}

.social-links .social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s ease;
  font-size: 1.3rem;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 3px !important;
  line-height: 1 !important;
  vertical-align: middle;
}

.social-links {
  display: flex;
  align-items: center;
  margin-right: 30px;
}
    
    /* Estilos para la barra de desplazamiento */
    html {
      scrollbar-width: thin;
      scrollbar-color: #2a5298 #f1f1f1;
    }
    
    /* Webkit (Chrome, Edge, Safari) */
    html::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    
    html::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    
    html::-webkit-scrollbar-thumb {
      background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
      border-radius: 5px;
      transition: all 0.3s ease;
    }
    
    html::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    }
    
    /* Firefox */
    * {
      scrollbar-width: thin;
      scrollbar-color: #2a5298 #f1f1f1;
    }
    
    /* Reset y fuente básica */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body, html {
      font-family: 'Segoe UI', sans-serif;
      line-height: 1.6;
      background-color: rgba(0, 0, 0, 0.4); /* negro con transparencia */
      color: #333;
      margin: 0;
      padding: 0;
    }
    
    /* Animación RGB */
    @keyframes rgbAnimation {
      0% { background-color: rgb(255, 0, 0); } /* Rojo */
      33% { background-color: rgb(0, 255, 0); } /* Verde */
      66% { background-color: rgb(0, 0, 255); } /* Azul */
      100% { background-color: rgb(255, 0, 0); } /* Vuelve a rojo */
    }
    
    .top-bar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      background-color: transparent;
      padding: 5px 0;
      font-size: 12px;
      color: #fff;
      z-index: 1001;
    }
    
    .top-bar  {
      padding: 0 15px !important;
    }
    
    .top-bar .top-bar-content {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding-right: 15px;
      margin: 0 !important;
    }
    
    .social-links .social-icon {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 45px;
      height: 45px;
      color: #ffffff;
      text-decoration: none;
      transition: transform 0.3s ease;
      font-size: 1.3rem;
      background: none !important;
      border: none !important;
      padding: 0 !important;
      margin: 0 3px !important;
      line-height: 1 !important;
      vertical-align: middle;
    }
    
    .social-links {
      display: flex;
      align-items: center;
      margin-right: 30px;
    }
    
 