@import url("https://fonts.googleapis.com/css2?family=Limelight&display=swap");

/* SECCION HERO PRINCIPAL DE NOSOTROS */
.hero-nosotros {
  position: relative;
  background-image: url("../images/grupaledit.webp  ");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* El contenido baja hacia la parte baja */
  padding: 1rem;
  overflow: hidden;
  transition: background-image 0.3s, transform 0.3s;
}

.hero-nosotros:hover {
  transform: scale(1.03);
}

.hero-nosotros::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* cuánto ocupa el degradado */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}

/* Tarjeta o contenedor de contenido */
.hero-content {
  position: relative;
  z-index: 2; /* se asegura que quede por encima del overlay */
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding: 2rem;
}

.hero-content h2 {
  color: #ffffff;
  font-family: "cambria", cambria;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem); /* más fluido y responsive */
  letter-spacing: 0.5px;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 2.8);
}

.hero-content p {
  font-size: 1.2rem;
  color: #f0f0f0; /* lo cambio a claro para que contraste con la sombra */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.text-description {
  text-align: center; /* Centra el párrafo */
  font-size: 1.3rem; /* Tamaño más grande */
  font-weight: 600; /* Semi-negrita */
  line-height: 1.8; /* Espaciado entre líneas */
  color: #444; /* Gris oscuro para legibilidad */
  max-width: 1000px; /* Limita el ancho */
  margin: 0 auto; /* Centra el bloque */
  padding: 10px 20px; /* Espaciado interno */
}

@media (max-width: 600px) {
  .hero-content {
    padding: 1rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
  .text-description {
    font-size: 0.9rem;
  }
}

.containeri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  border: none;
  max-width: 350px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Efecto hover elegante */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

/* Imagen con recorte redondeado superior */
.card img {
  width: 400px;
  max-width: 100%;
  height: 500px;
  max-height: 100%;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* Contenido */
.card-content {
  padding: 10px;
}

.card h3 {
  font-size: 1.3em;
  font-weight: 600;
  color: #222;
}

.card p {
  font-size: 0.95em;
  color: #555;
}

/* Enlaces */
.sede-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  color: #137506;
  transition: color 0.3s ease;
}

.sede-link:hover {
  color: #0a4703;
}

/* Celular destacado */
.card-content p a {
  color: #0b8f28;
  font-weight: 600;
  text-decoration: none;
}

.card-content p a:hover {
  text-decoration: underline;
}

/* Responsive */
