/* =========================
   HEADER NOSOTROS
========================= */
.nosotros-header-section {
  width: 100%;
  padding: 90px 20px;
  background: linear-gradient(135deg, #b30000, #6f0000);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nosotros-header-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.nosotros-header-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: auto;
  animation: fadeDown 0.8s ease;
}

.nosotros-header-section h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nosotros-header-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 10px;
}

/* =========================
   SECCIÓN GENERAL
========================= */
.quienes-somos {
  width: 100%;
  padding: 70px 20px;
  background: #f8f8f8;
}

.quienes-container {
  max-width: 1100px;
  margin: auto;
}

.quienes-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* =========================
   QUIÉNES SOMOS
========================= */
.quienes-section {
  background: white;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);

  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.quienes-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.quienes-section h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #b30000, #6f0000);
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.quienes-section p {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

/* =========================
   GRID MISIÓN / VISIÓN
========================= */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.vision-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  object-fit: contain;
}

.vision-card:hover img {
  transform: scale(1.15) rotate(3deg);
  filter: drop-shadow(0 8px 15px rgba(179, 0, 0, 0.3));
}

/* =========================
   CARDS
========================= */
.vision-card {
  background: white;
  padding: 40px 25px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #b30000;

  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.vision-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 30px rgba(179, 0, 0, 0.2);
}

/* ICONO */
.vision-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.vision-card:hover .vision-icon {
  transform: scale(1.2);
}

/* TITULO */
.vision-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* TEXTO */
.vision-card p {
  color: #666;
  line-height: 1.7;
}

/* =========================
   ANIMACIONES
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SCROLL REVEAL (JS CLASS)
========================= */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .nosotros-header-section h1 {
    font-size: 2rem;
  }

  .quienes-section {
    padding: 25px;
  }

  .vision-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .nosotros-header-section h1 {
    font-size: 1.6rem;
  }

  .quienes-section h2 {
    font-size: 1.4rem;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }
}
