/* ======= QUIENES SOMOS ======= */
.quienes-somos {
  padding: 4rem 2rem;
  background: #f9fafc;
  color: #2a2a2a;
  font-family: 'Montserrat', sans-serif;
}

.contenedor {
  max-width: 1200px;
  margin: auto;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* ======= DESTACADOS ======= */
.destacados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.caja {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  flex: 1 1 280px;
  max-width: 320px;
  text-align: center;
}

.caja h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c88c5;
}

/* ======= CLIENTES ======= */
.subtitulo {
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.logos-clientes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.logos-clientes img {
  max-height: 40px;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.logos-clientes img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* ======= VISIÓN ======= */
.vision {
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.vision p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-contacto {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #2c88c5;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s ease;
  animation: pulse 3s infinite;
}

.btn-contacto:hover {
  background: #246fa3;
}

/* ======= ANIMACIONES ======= */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.quienes-somos h1,
.quienes-somos .intro {
  animation: fadeInUp 1s ease forwards;
}

.destacados .caja {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

.destacados .caja:nth-child(1) { animation-delay: 0.3s; }
.destacados .caja:nth-child(2) { animation-delay: 0.6s; }
.destacados .caja:nth-child(3) { animation-delay: 0.9s; }

/* ======= FRASE ======= */
.frase-destacada {
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  margin: 2rem auto 3rem;
  color: #444;
  max-width: 700px;
  position: relative;
}

.frase-destacada::before,
.frase-destacada::after {
  content: '"';
  font-size: 2rem;
  color: #2c88c5;
  position: absolute;
}

.frase-destacada::before {
  left: -20px;
  top: -10px;
}

.frase-destacada::after {
  content: '"';
  right: -20px;
  bottom: -10px;
}

/* ======= TIMELINE ======= */
.timeline {
  margin: 3rem auto;
  max-width: 800px;
}

.timeline h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.timeline ul {
  list-style: none;
  padding-left: 0;
}

.timeline li {
  padding: 1rem 0;
  border-left: 3px solid #2c88c5;
  margin-left: 1rem;
  padding-left: 1rem;
  position: relative;
}

.timeline li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #2c88c5;
  border-radius: 50%;
  position: absolute;
  left: -9px;
  top: 1.2rem;
}

/* ======= SKILLS ======= */
.skills-grid {
  text-align: center;
  margin-bottom: 3rem;
}

.skills-grid h2 {
  margin-bottom: 1rem;
}

.skills-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: auto;
}

.skills-grid .grid div {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-weight: 600;
  transition: transform 0.2s ease;
  word-wrap: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
}

.skills-grid .grid div:hover {
  transform: scale(1.05);
}

.skills-note {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .skills-grid .grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .caja {
    padding: 1.5rem;
  }

  .intro, .vision p {
    font-size: 1rem;
  }

  .frase-destacada {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .skills-grid .grid div {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .btn-contacto {
    font-size: 0.95rem;
  }
}

/* ======= NAVBAR SUBMENU FIX ======= */
.submenu {
  display: none;
  position: absolute;
  background: #ffffff;
  top: calc(100% + 0.5rem);
  left: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 1rem;
  flex-direction: column;
  animation: fadeSlide 0.3s ease-out;
  z-index: 10;
}

.has-submenu:hover .submenu {
  display: flex;
}