* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Arimo", sans-serif;
  background-color: #ffffff;
  color: #333;
  padding-top: 70px;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 9999;
}
.logo img {
  height: 50px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}
nav ul li a {
  text-decoration: none;
  color: #002d72;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: #c8102e;
}
.lang-toggle {
  background: none;
  border: 2px solid #002d72;
  color: #002d72;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}
header.banner {
  background: url("../img/sobrenosotros.jpg") no-repeat center center;
  background-size: cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
header.banner h1 {
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
}
section {
  padding: 60px 20px;
}
h2 {
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #002d72;
  border-bottom: 3px solid #c8102e;
  padding-bottom: 10px;
  margin-bottom: 30px;
  text-align: center;
}
h2.no-border {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 30px;
}
p.section-desc {
  font-size: 1.2rem;
  color: #444;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  text-align: center;
}
.feature h3 {
  color: #c8102e;
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.feature p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.cta {
  background-color: #002d72; /* azul oscuro */
  color: white;
  text-align: center;
  padding: 60px 20px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}

.cta h2 {
  margin: 0 auto 20px auto;
  max-width: 600px;
  color: white; /* título en blanco */
  white-space: normal;
}

.cta a {
  display: inline-block;
  background-color: #c8102e; /* rojo vibrante */
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.cta a:hover {
  background-color: #a10c22; /* rojo más oscuro al pasar el cursor */
}
footer {
  background-color: #111;
  color: #eee;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  text-align: left;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}

.footer-column p,
.footer-column a {
  color: #ccc;
  text-decoration: none;
  margin: 5px 0;
  display: block;
}

.footer-column a:hover {
  color: #fff;
}

.footer-column strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-column {
    align-items: center;
  }
}

/* Estilos para la nueva sección con info izquierda y derecha */
.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto 60px auto;
}
.info-left {
  flex: 1 1 300px;
  font-weight: bold;
  font-size: 1.3rem;
  color: #002d72;
  padding: 20px;
  background-color: #e8f1fc;
  border-left: 6px solid #0056b3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  writing-mode: horizontal-tb; /* default */
  transition: none;
}
/* En móvil, el texto destacado se pone vertical */
@media (max-width: 768px) {
  .features,
  .footer-container {
    flex-direction: column;
    display: flex;
  }
  .info-container {
    flex-direction: column;
  }
  .info-left {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 10px;
    font-size: 1.1rem;
    border-left: none;
    border-bottom: 6px solid #0056b3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    white-space: nowrap;
  }
}
.info-right {
  flex: 1 1 300px;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.experiencia-internacional {
  background: url("../img/experienciainternacional.png") center center/cover
    no-repeat;
  position: relative;
  color: #fff; /* color general */
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
  max-width: 1000px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.experiencia-internacional::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55); /* overlay oscuro */
  border-radius: 12px;
  z-index: 0;
}

.experiencia-internacional h2,
.experiencia-internacional p {
  position: relative;
  z-index: 1;
  color: white; /* texto en blanco seguro */
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas fijas */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  color: #333; /* color base texto */
}

.feature h3 {
  color: #c8102e;
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.feature p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* Hover: fondo azul y texto blanco */
.feature:hover {
  background-color: #002d72; /* azul */
  color: #fff;
}

.feature:hover h3,
.feature:hover p {
  color: #fff;
}

/* Responsivo: en móviles 1 columna */
@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.zoom-lines .line {
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.6s ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

nav ul li a.active {
  color: #c8102e; /* Rojo personalizado */
  font-weight: bold;
  position: relative;
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: #c8102e;
  border-radius: 2px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #002d72;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    border-top: 1px solid #ccc;
  }

  .nav-links.show {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-left: 20px;
  }

  .lang-toggle {
    margin-top: 10px;
  }
}

.language-dropdown {
  position: relative;
  display: inline-block;
  font-family: "Arimo", sans-serif;
}

.language-dropdown button {
  background: none;
  border: 2px solid #002d72;
  color: #002d72;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.language-dropdown button:hover {
  background-color: #002d72;
  color: #fff;
}

.lang-menu {
  position: absolute;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.lang-menu li img {
  width: 20px;
  height: auto;
  border-radius: 3px;
}

.lang-menu li:hover {
  background-color: #f0f0f0;
}

.hidden {
  display: none;
}
