/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  color: #333;
}

header {
  background-color: white;
  color: #005b9f;
  padding: 10px 0;
}

/* Header */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.header-container .logo img {
  max-width: 130px;
}

.header-container .contact-info {
  text-align: right;
  font-size: 14px;
  text-align: right; /* Alinea el texto a la derecha */
  font-weight: bold; /* Asegura que el texto esté en negrita */


}

.header-container .contact-info p {
  margin: 5px 0;
  
}

.header-container .contact-info i {
  margin-right: 8px;
}

/* Navegación */
nav {
  background-color: #5370ac;
  padding: 15px 0;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}



/* Hero section */
.hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-image {
  width: 110%;
  height: 140%;
  object-fit: cover;
  object-position: -40px -80px; /* Mueve la imagen 30px a la izquierda */
  opacity: 0.85;
  
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  left: 40px; /* Mueve el texto al borde izquierdo de la pantalla */
  transform: translate(0, -60%); /* Alinea el texto verticalmente */
  text-align: left;
  color: white;
  max-width: 800px;
  width: 100%;
  
  
}

.hero-text h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Sombra negra difusa */
  
  /* Otros efectos */
  font-weight: bold; /* Para que el texto sea más grueso */
  letter-spacing: 1px; /* Espaciado entre letras */
}

.hero-text p {
  font-size: 1.3em;
  margin-bottom: 30px;
 


}

.btn {
  background-color: #5370ac;
  color: white;
  padding: 10px 20px;
  margin: 10px;
  text-decoration: none;
  font-size: 1em;
  border-radius: 5px;
  display: inline-block;
}

.btn:hover {
  background-color: #273d69;
}

/* Footer */


.servicios {
  background-image: linear-gradient(to right, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.7) 100%), url('https://v0.dev/placeholder.svg');
  background-size: cover;
  background-position: center right;
  padding: 4rem 2rem;
}

.servicios-content {
  max-width: 1200px;
  margin: 0 auto;
}

.servicios-titulo {
  font-size: 2.5rem;
  color: #003366;
  text-align: center;
  margin-bottom: 2rem;
}

.highlight {
  color: #00a8e8;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}



.servicio-item {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex; /* Usar flexbox para alinear el contenido */
  flex-direction: column; /* Alinear elementos en columna */
  justify-content: space-between; /* Espacio entre elementos */
  height: 100%; /* Asegura que el contenedor tenga altura completa */
}

.servicio-item h3 {
  color: #003366;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.servicio-item p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  background-color: #344872;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  
  
}

.cta-button:hover {
  background-color: #0077b3;
}

.servicio-item p:last-of-type {
  margin-bottom: 1rem; /* Agrega espacio entre el texto y el botón */
}

.stats-section {
  display: flex;
  justify-content: space-around;
  background: url('proyecto7.jpg') no-repeat center center/cover; /* Puedes agregar la imagen de fondo que desees */
  padding: 40px 0;
  color: white;
  
}

.stat {
  text-align: center;
  width: 18%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  border-radius: 10px;
}

.stat i {
  font-size: 50px;
  margin-bottom: 20px;
}

.stat h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.stat p {
  font-size: 16px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: white;
  color: #000;
}

@media (max-width: 768px) {
  .stats-section {
      flex-direction: column;
      align-items: center;
  }

  .stat {
      width: 80%;
      margin-bottom: 20px;
  }
}

.divider {
  border: 0;
  height: 10px; /* Ajusta el grosor de la línea */
  background-color: white; /* Color blanco para la línea */
  margin: 10px 0; /* Margen entre las secciones */
}

.why-choose-us {
  width: 100%;
  background-color: #f0f0f0;
  padding: 2rem 0;
}

.content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.text-content {
  flex: 1;
  padding: 2rem;
  background-color: #344872;
  color: #ffffff;

}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.main-question {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
}

.image-content {
  flex: 1;
}

.workers-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .text-content, .image-content {
    width: 100%;
  }

  .image-content {
    height: 300px;
  }
}

.experience-card {
  background-color: #00a8e8;
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 200px;
}

.icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.shield-icon {
  width: 4rem;
  height: 4rem;
}

.experience-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.experience-years {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

footer {
  background-color: #344872; /* Color de fondo */
  color: white; /* Color del texto */
  padding: 50px; /* Espaciado interno */
}

.footer-container {
  display: grid; /* Usar grid para el layout */
  grid-template-columns: repeat(6, 1fr); /* 6 columnas de igual tamaño */
  gap: 5px; /* Espacio entre columnas */
}

.footer-section {
  padding: 30px; /* Espaciado interno en cada sección */
}

.footer-section h4 {
  margin: 0 0 15px; /* Espacio debajo del subtítulo */
}

.footer-image-container {
  text-align: center; /* Centrar la imagen */
  margin-bottom: 5px; /* Espacio entre la imagen y el footer */
}

.footer-image {
  max-width: 150px; /* Ajustar el tamaño de la imagen */
  height: auto; /* Mantener la proporción de la imagen */
}

/* Reset básico */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Estilos generales */
body {
font-family: Arial, sans-serif;
color: #333;
}

header {
background-color: white;
color: #005b9f;
padding: 10px 0;
}

/* Header */
.header-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;

}

.header-container .logo img {
max-width: 130px;
}

.header-container .contact-info {
text-align: right;
font-size: 14px;
text-align: right; /* Alinea el texto a la derecha */
font-weight: bold; /* Asegura que el texto esté en negrita */


}

.header-container .contact-info p {
margin: 5px 0;

}

.header-container .contact-info i {
margin-right: 8px;
}

/* Navegación */
nav {
background-color: #5370ac;
padding: 15px 0;
}

nav ul {
display: flex;
justify-content: center;
list-style: none;
}

nav ul li {
margin: 0 20px;
}

nav ul li a {
color: white;
text-decoration: none;
font-weight: bold;
}



/* Hero section */
.hero-section {
position: relative;
width: 100%;
height: 600px;
overflow: hidden;
}

.hero-image {
width: 110%;
height: 140%;
object-fit: cover;
object-position: -40px -80px; /* Mueve la imagen 30px a la izquierda */
opacity: 0.85;

}

.hero-text {
position: absolute;
top: 50%;
left: 50%;
left: 40px; /* Mueve el texto al borde izquierdo de la pantalla */
transform: translate(0, -60%); /* Alinea el texto verticalmente */
text-align: left;
color: white;
max-width: 800px;
width: 100%;


}

.hero-text h1 {
font-size: 2.5em;
margin-bottom: 20px;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Sombra negra difusa */

/* Otros efectos */
font-weight: bold; /* Para que el texto sea más grueso */
letter-spacing: 1px; /* Espaciado entre letras */
}

.hero-text p {
font-size: 1.3em;
margin-bottom: 30px;



}

.btn {
background-color: #5370ac;
color: white;
padding: 10px 20px;
margin: 10px;
text-decoration: none;
font-size: 1em;
border-radius: 5px;
display: inline-block;
}

.btn:hover {
background-color: #273d69;
}

/* Footer */


.servicios {
background-image: linear-gradient(to right, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.7) 100%), url('https://v0.dev/placeholder.svg');
background-size: cover;
background-position: center right;
padding: 4rem 2rem;
}

.servicios-content {
max-width: 1200px;
margin: 0 auto;
}

.servicios-titulo {
font-size: 2.5rem;
color: #003366;
text-align: center;
margin-bottom: 2rem;
}

.highlight {
color: #00a8e8;
}

.servicios-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}



.servicio-item {
background-color: rgba(255, 255, 255, 0.9);
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: flex; /* Usar flexbox para alinear el contenido */
flex-direction: column; /* Alinear elementos en columna */
justify-content: space-between; /* Espacio entre elementos */
height: 100%; /* Asegura que el contenedor tenga altura completa */
}

.servicio-item h3 {
color: #003366;
font-size: 1.5rem;
margin-bottom: 1rem;
}

.servicio-item p {
color: #333;
font-size: 1rem;
line-height: 1.6;
}

.cta-button {
display: block;
width: fit-content;
margin: 0 auto;
padding: 0.75rem 1.5rem;
background-color: #344872;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s ease;


}

.cta-button:hover {
background-color: #0077b3;
}

.servicio-item p:last-of-type {
margin-bottom: 1rem; /* Agrega espacio entre el texto y el botón */
}

.stats-section {
display: flex;
justify-content: space-around;
background: url('proyecto7.jpg') no-repeat center center/cover; /* Puedes agregar la imagen de fondo que desees */
padding: 40px 0;
color: white;

}

.stat {
text-align: center;
width: 18%;
padding: 20px;
background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
border-radius: 10px;
}

.stat i {
font-size: 50px;
margin-bottom: 20px;
}

.stat h3 {
font-size: 28px;
margin-bottom: 10px;
color: #f0f0f0;
}

.stat p {
font-size: 16px;
margin-bottom: 20px;
}

.btn {
display: inline-block;
padding: 10px 20px;
background-color: transparent;
border: 2px solid white;
color: white;
text-decoration: none;
border-radius: 5px;
transition: 0.3s ease;
}

.btn:hover {
background-color: white;
color: #000;
}

@media (max-width: 768px) {
.stats-section {
    flex-direction: column;
    align-items: center;
}

.stat {
    width: 80%;
    margin-bottom: 20px;
}
}

.divider {
border: 0;
height: 10px; /* Ajusta el grosor de la línea */
background-color: white; /* Color blanco para la línea */
margin: 10px 0; /* Margen entre las secciones */
}

.why-choose-us {
width: 100%;
background-color: #f0f0f0;
padding: 2rem 0;
}

.content-wrapper {
display: flex;
max-width: 1200px;
margin: 0 auto;
background-color: #fff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.text-content {
flex: 1;
padding: 2rem;
background-color: #344872;
color: #ffffff;

}

.section-title {
font-size: 1rem;
text-transform: uppercase;
margin-bottom: 1rem;
}

.main-question {
font-size: 2.5rem;
font-weight: bold;
margin-bottom: 1rem;
}

.description {
font-size: 1rem;
line-height: 1.6;
}

.image-content {
flex: 1;
}

.workers-image {
width: 100%;
height: 100%;
object-fit: cover;
}

@media (max-width: 768px) {
.content-wrapper {
  flex-direction: column;
}

.text-content, .image-content {
  width: 100%;
}

.image-content {
  height: 300px;
}
}

.experience-card {
background-color: #00a8e8;
color: white;
padding: 1.5rem;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 200px;
}

.icon-container {
display: flex;
justify-content: center;
margin-bottom: 1rem;
}

.shield-icon {
width: 4rem;
height: 4rem;
}

.experience-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
text-align: center;
}

.experience-years {
font-size: 1.5rem;
font-weight: 700;
text-align: center;
}

footer {
background-color: #344872; /* Color de fondo */
color: white; /* Color del texto */
padding: 50px; /* Espaciado interno */
}

.footer-container {
display: grid; /* Usar grid para el layout */
grid-template-columns: repeat(6, 1fr); /* 6 columnas de igual tamaño */
gap: 5px; /* Espacio entre columnas */
}

.footer-section {
padding: 30px; /* Espaciado interno en cada sección */
}

.footer-section h4 {
margin: 0 0 15px; /* Espacio debajo del subtítulo */
}

.footer-image-container {
text-align: center; /* Centrar la imagen */
margin-bottom: 5px; /* Espacio entre la imagen y el footer */
}

.footer-image {
max-width: 150px; /* Ajustar el tamaño de la imagen */
height: auto; /* Mantener la proporción de la imagen */
}



nav ul li a {
color: white;
text-decoration: none;
font-weight: bold;
position: relative; /* Necesario para el pseudo-elemento */
overflow: hidden; /* Para ocultar el subrayado */
}

nav ul li a::after {
content: '';
position: absolute;
height: 2px;
width: 100%;
bottom: 0;
left: 0;
background: #00a8e8; /* Color del subrayado */
transform: translateX(-100%); /* Comienza fuera de la vista */
transition: transform 0.3s ease, opacity 0.3s ease; /* Transición suave */
opacity: 0; /* Comienza como invisible */
}

nav ul li a:hover::after {
transform: translateX(0); /* Aparece al hacer hover */
opacity: 1; /* Se vuelve visible */
}

.btn {
display: inline-block;
padding: 10px 20px;
background-color: transparent;
border: 2px solid white;
color: white;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease; /* Añadir transform a la transición */
}

.btn:hover {
background-color: white;
color: #000;
transform: scale(1.05); /* Aumentar ligeramente el tamaño al hacer hover */
}

.servicio-item {
background-color: rgba(255, 255, 255, 0.9);
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
opacity: 0; /* Comienza invisible */
transform: translateY(20px); /* Se desplaza hacia abajo */
animation: fadeInUp 0.5s forwards; /* Aplica la animación */
}

@keyframes fadeInUp {
to {
    opacity: 1; /* Termina visible */
    transform: translateY(0); /* Se queda en su posición original */
}
}

header {
background-color: white;
color: #005b9f;
padding: 10px 0;
opacity: 0; /* Comienza invisible */
transform: translateY(-20px); /* Se desplaza hacia arriba */
animation: slideDown 0.5s forwards; /* Aplica la animación */
}

@keyframes slideDown {
to {
    opacity: 1; /* Termina visible */
    transform: translateY(0); /* Se queda en su posición original */
}
}

.grid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 columnas */
gap: 20px; /* Espacio entre los elementos */
}

.grid-item {
background: #00a8e8; /* Color de fondo */
padding: 20px; /* Espacio interno */
border-radius: 8px; /* Esquinas redondeadas */
transition: transform 0.3s ease; /* Transición suave para el movimiento */
}

.grid-item:hover {
transform: translateY(-5px); /* Mueve el elemento hacia arriba al hacer hover */
}

@keyframes fadeIn {
from {
    opacity: 0; /* Comienza completamente transparente */
}
to {
    opacity: 1; /* Termina completamente visible */
}
}



/* Elemento de texto dentro de hero */
.hero-text {
animation: fadeIn 0.8s ease-in forwards; /* Aplica la animación al texto */
opacity: 0; /* Asegúrate de que comience invisible */
}









/* Tablet Styles */
@media screen and (max-width: 1024px) {
  .header-container {
      flex-direction: column;
      align-items: center;
  }

  .header-container .contact-info {
      text-align: center;
      margin-top: 10px;
  }

  nav ul {
      flex-wrap: wrap;
  }

  nav ul li {
      margin: 5px 10px;
  }

  .quienes-somos {
      height: auto;
      min-height: 400px;
  }

  .content h2 {
      font-size: 36px;
  }

  .content p {
      font-size: 16px;
  }

  table {
      width: 95%;
  }

  th, td {
      padding: 12px;
      font-size: 14px;
  }

  .footer-container {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .header-container .logo img {
      max-width: 100px;
  }

  .header-container .contact-info {
      font-size: 12px;
  }

  nav ul {
      flex-direction: column;
      align-items: center;
  }

  nav ul li {
      margin: 5px 0;
  }

  .quienes-somos {
      min-height: 60vh;
  }

  .content h2 {
      font-size: 28px;
  }

  .content p {
      font-size: 14px;
  }

  table {
      width: 100%;
  }

  th, td {
      padding: 10px;
      font-size: 12px;
  }

  td:nth-child(2), td:nth-child(3) {
      width: auto;
  }

  .header-peru {
      font-size: 20px;
      padding: 15px;
  }

  .footer-container {
      grid-template-columns: 1fr;
  }

  .footer-section {
      padding: 15px;
  }

  .hero-text {
  left: 30px; /* Adjust left positioning for mobile */
  transform: translate(0, -50%); /* Center vertically */
  max-width: 90%; /* Limit width to prevent overflow */
}

.hero-text h1 {
  font-size: 1.9em; /* Reduce font size for mobile */
}

.hero-text p {
  font-size: 1em; /* Reduce font size for mobile */
}
}