/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Esto los alinea verticalmente */
  height: 80px; /* Altura del header */
  background: #0056b3;
  color: white;
}

nav {
  flex: 2;
  display: flex;
  justify-content: center;
}


header .logo img {
    height: 150px;  /* Tamaño de la imagen del logo */
    margin-right: 10px;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}


nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 10px;
  padding: 8px 12px;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffa200;
}


/* imagen de fondo*/
.hero {
  background-image: url('img/trabajar.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 40px;
  color: rgb(0, 0, 0);
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero h1, .hero h2, .hero h3, .hero p {
  margin: 0 0 5px; 
  font-size: 3.5rem; /* Tamaño de fuente más grande */
   font-family: 'Arial';
}

#palabra-dinamica {
  color: #cc4e00;
  font-weight: bold;
  transition: opacity 0.5s ease;
  font-family: 'anaktoria', serif;
  font-style: italic;
}

/* About */
.about p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
    text-align: center;
}

.about .destacado {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0056b3; /* Azul institucional */
  text-align: center;
}


.about h2 {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #000000;
  font-weight: 10;
  text-align: center;
}

.about {
  max-width: 900px;
  margin: 50px auto;   /* margen de la imagen y el texto */
  padding: 0 20px;
  text-align: center;
}


/* About */
.about {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.benefit-icon {
  width: 80px;   /* ajusta a lo que necesites */
  height: auto;  /* mantiene proporción */
  margin-bottom: 10px;
}

.services h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #0056b3; /* Azul institucional */
  text-align: center;
  margin-bottom: 30px;
}


/* Benefits */
.benefits {
  display: flex;
  justify-content: space-around;
  padding: 20px 180px;
  text-align: center;
}

.benefit {
  width: 30%;
  font-size: 0.95rem;
}


/* Services */
.services {
  background: #ffffff; /* Color de fondo*/
  padding: 40px 20px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
  gap: 40px; /* Espacio entre íconos */
  justify-items: center;
  margin-top: 30px;
}

.service {
  text-align: center;
}

.service p {
  font-size: 0.95rem;
  color: #333;
  margin-top: 10px;
  font-weight: bold; /* Esto aplica la negrita */
}

/* Contact */
.contact {
  padding: 40px 20px;
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}

.contact-image img {
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #0056b3; /* Azul institucional */
  text-align: center;
  margin-bottom: 30px;
}

/* Formulario en dos columnas */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 500px;
  text-align: left;
}

form input,
form textarea {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #e0e0e0;
  font-size: 1rem;
}

form textarea {
  grid-column: 1 / 3; /* el textarea ocupa las 2 columnas */
  min-height: 120px;
  resize: vertical;
}

form button {
  grid-column: 1 / 3;
  background: #0056b3;
  color: white;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #004494;
}

/* Footer */
footer {
  background: #0056b3;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 100px;
}

.socials {
  display: flex;
  gap: 20px;
}

.socials img {
  width: 32px;
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.socials img:hover {
  transform: scale(1.1);
}

.footer-nav {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #ffcc00;
}

.footer-bottom {
  font-size: 0.85rem;
  color: #e0e0e0;
}

.footer-bottom a {
  color: #ffcc00;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

#scrollUpBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: rgb(17, 88, 169);
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  z-index: 1000;
}

#scrollUpBtn {
  width: 40px;
  height: 40px;
  padding: 6px;
}

#scrollUpBtn img {
  width: 20px;
  height: 20px;
}

html {
  scroll-behavior: smooth;
}


/* Popup de confirmación */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.popup-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.popup-content button {
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


/* cambio de idioma, banderas */
.language-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.language-toggle img {
  width: 25px;
  height: auto;
  transition: transform 0.3s ease;
}

.language-toggle img:hover {
  transform: scale(1.1);
}

/* ========================= */
/*  📱 Responsive Design     */
/* ========================= */

/* Responsive ajustes generales */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    text-align: center;
  }

  header .logo img {
    height: 100px;
    margin: 0 auto;
  }

  nav {
    justify-content: center;
    margin-top: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 12px;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .language-toggle {
    position: static;
    margin-top: 10px;
  }

  .hero {
    padding: 60px 20px;
    flex-direction: column;
    text-align: center;
  }

  .hero h1, .hero h2, .hero h3 {
    font-size: 2rem;
  }

  .benefits {
    flex-direction: column;
    padding: 20px;
    gap: 30px;
  }

  .benefit {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  form {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 400px;
  }

  form textarea,
  form button {
    grid-column: 1 / 2;
  }

  .contact-image img {
    max-width: 100%;
  }

  .footer-content {
    gap: 12px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }

  .socials {
    flex-direction: row;
    justify-content: center;
  }
}