html{
  scroll-behavior: smooth;
}
        * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
}

main{
    flex: 1;
}
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo img{
    height: 50px;
}
.nav-links, .socials {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a, .socials a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.nav-links a:hover{
    color: #1F487C;
    transition: 0.4s;
}


.socials img {
  width: 20px;
  height: 20px;
}

.menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
}

.side-menu.active {
  right: 0;
}

.close-btn {
  font-size: 28px;
  background: none;
  border: none;
  align-self: flex-end;
  cursor: pointer;
}

.menu-links {
  list-style: none;
  margin-top: 20px;
  flex-grow: 1;
}

.menu-links li {
  margin: 15px 0;
}

.menu-links a {
  text-decoration: none;
  font-size: 18px;
  color: #333;
}

.side-socials {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.side-socials img {
  width: 22px;
  height: 22px;
}
.socials a i, .side-socials a i {
  font-size: 20px;
  color:  #1F487C;
  transition: color 0.3s ease;
}

.socials a i:hover, .side-socials a i:hover {
  color: #007bff; /* cambia al color que desees */
}

.footer {
  background-color: #143766;
  color: white;
  font-size: 14px;
  padding: 40px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  height: 70px;
  margin-bottom: 10px;
}

.footer-subtext {
  font-size: 0.85rem;
  color: white;
  line-height: 1.5;
}
.footer-subtext p{
    font-size: 0.85rem;
}
.footer-subtext strong{
    font-size: 20px;
}
.footer-socials {
  flex: 1;
  min-width: 200px;
}

.footer-socials h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: bold;
}

.footer-socials a {
  margin-right: 15px;
  font-size: 18px;
  color: white;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #007bff;
}

.footer-contacts {
  flex: 1;
  min-width: 200px;
}

.footer-contacts h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: bold;
}

.logo-subtext, .logo-extra {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 5px 0;
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #bbb;
}

/* Responsive footer*/
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
  }

  .footer-socials {
    margin-top: 15px;
  }
}

/* Responsive Nav*/
@media (max-width: 770px) {
  .nav-links,
  .socials {
    display: none;
  }

  .logo {
    margin: 0 auto;
  }

  .menu-btn {
    display: block;
    position: absolute;
    right: 20px;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* color de fondo negro semitransparente */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900; /* justo debajo del menú lateral */
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
.seccion-imagen {
  background-image: url('../img/Portada2.jpg');
  background-size: cover; /* o cover si prefieres llenar todo */
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 94, 255, 0.2); /* opcional: tinte azul */
  background-blend-mode: overlay;
  width: 100%;
  min-height: 100vh; /* para que se vea completa */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

/* Imagen encima decorativa (NO absoluta si quieres que empuje) */
.imagen-superior {
  display: block;
  max-width: 150px;
  margin-bottom: 20px;
}

/* Texto y botón */
.contenido-superpuesto {
  display: flex;
  color: white;
  flex-direction: column;
  align-items: flex-start; /* Alinea a la izquierda */
  max-width: 800px;
  width: 100%;
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: none;
}

.contenido-superpuesto a{
  background-color: #143766;
  color: white;
  text-decoration: none;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.contenido-superpuesto a:hover{
  background-color: #007bff;
  transform: scale(1.05);
}
.contenido-superpuesto h1{
font-size: 40px;
padding: 0px 0px 0px 0px;
}
.contenido-superpuesto p{
font-size: 20px;
padding: 0px 0px 30px 0px;
}
.zona-superior {
  display: flex;
  align-items: center;
  gap: 20px;
  
}

#texto-cambiante {
  font-size: 1rem;
  font-weight: bold;
  color: white;
  transform: translateY(-10px);
}
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-80px);
  }
  100% {
    opacity: 1;
    transform: translateY(-10px);
  }
}
.fade-in {
  animation: fadeInDown 1.2s ease-out;
}
/*parte donde están yendo los servicios*/

.servicios-contenedor {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.titulo-servicios {
  text-align: center;
  margin-bottom: 30px;
}

.titulo-servicios h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.titulo-servicios p {
  font-size: 1rem;
  color: #666;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.foto {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.foto img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
}

.foto h3 {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #333;
}

.foto p {
  font-size: 0.95rem;
  color: #555;
  margin-top: 8px;
}
/* RESPONSIVE */
@media (max-width: 1024px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }

  .foto img {
    height: 400px;
  }
}

@media (max-width: 600px) {
  .galeria {
    grid-template-columns: 1fr;
  }

  .foto img {
    height: 300px;
  }

  .foto {
    padding: 10px;
  }
}
/*Parte donde iran los contactos*/
@media (max-width: 768px) {
  .contact-form {
    margin-left: 0;
  }
}
/*resposive arriba*/
.titulo{
    text-align: center;
}
.titulo h5{
    padding: 0px 0px 20px 0px;
    color: #1F487C;
}
.titulo h1{
  padding: 0px 0px 20px 0px;
    font-size: 50px;
}
/*Apartado de mandar mensaje con nombre, correo y pagina web para la persona que vea la pagina*/


.main-centrado {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  gap: 40px;
  background-color: #f9f9f9;
}

.contenido {
  max-width: 500px;
  width: 100%;
}
.left-content{
  max-width: 500px;
  flex: 1;
  color: #333;
}
.rigth-content{
  max-width: 500px;
  flex: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
    background-color: white;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #2f00ff;
  border-radius: 8px;
  resize: none;
  outline: none;
}

.contact-form button {
  background-color: #1F487C;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #007bff;
}
.info-contact {
  display: flex;
  flex-direction: column;  /* Línea vertical */
  gap: 20px;             /* Espacio entre teléfono y dirección */
  align-items: center;
  flex-wrap: wrap;       /* Para que se adapte en pantallas pequeñas */
  align-items: flex-start;
  padding: 50px 0px 20px 0px;
}
.info-item {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.info-item i {
  font-size: 1.2rem;
  color: #1F487C;
}
.info-item i:hover{
    color: #007bff;
}

@media (max-width: 600px) {
  .info-contacto {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/*Parte de experiencia y quien es la empresa*/

.experiencias section {
      max-width: 1200px;
      margin: auto;
      padding: 60px 0px;
    }

.experiencias h2 {
      text-align: center;
      font-size: 2.5em;
      margin-bottom: 10px;
      color: #111;
    }

    .intro {
      text-align: center;
      margin-bottom: 40px;
      font-size: 1.1em;
    }

    .values {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 30px;
      margin-bottom: 60px;
      text-align: center;
    }

    .value {
      background-color: #fff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .value i {
      font-size: 2em;
      color: #143766;
      margin-bottom: 10px;
    }

    .value h5 {
      font-size: 1.1em;
      margin-bottom: 8px;
    }

    .counters {
      display: flex;
      justify-content: space-around;
      text-align: center;
      margin-bottom: 60px;
    }

    .counter h3 {
      font-size: 2.5em;
      color: #143766;
    }
    .counter p{
      font-size: 1.1em;
      margin-bottom: 8px;
      font-weight: bold;
    }

    @media(max-width: 768px) {
      .counters {
        flex-direction: column;
        gap: 20px;
      }
    }

selector-idioma {
      position: absolute;
      top: 15px;
      right: 15px;
      z-index: 1000;
    }

    .bandera {
      width: 35px;
      height: 35px;
      margin-left: 10px;
      cursor: pointer;
      transition: transform 0.2s;
      border-radius: 5px;
      object-fit: cover;
    }

    .bandera:hover {
      transform: scale(1.1);
    }

    /* Oculta el widget original de Google Translate */
    #google_translate_element {
      display: none;
    }