/* info.css - limpio */

/* Estilo para el banner superior */
.banner {
  position: relative;
  background-image: url('../assets/images/banner-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Capa semitransparente */
.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.305);
  z-index: 1;
}

/* Texto del banner */
.banner-content {
  position: relative;
  z-index: 2;
}

.banner-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Sección descriptiva */
.description {
  background-color: var(--light-gray);
  padding: 50px 20px;
}

.description .container {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-gray);
  text-align: justify;
  border-left: 4px solid var(--primary-blue);
  padding-left: 20px;
}

/* ==================== */
/* Sección Quiénes Somos - Filosofía */
/* ==================== */
.about-philosophy {
  padding: 6rem 1.5rem;
  background: var(--color-light);
}

.philosophy-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.philosophy-card {
  position: relative;
  min-height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  background-image: linear-gradient(
      to bottom right,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.8)
    ),
    var(--bg-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-content {
  position: relative;
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-white);
  z-index: 2;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  position: relative;
}

.card-divider {
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem 0;
  transition: all 0.4s ease;
}

.card-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.8;
  max-width: 480px;
  opacity: 0.9;
  margin-top: 1.5rem;
}

/* Efectos hover */
.philosophy-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.philosophy-card:hover .card-overlay {
  opacity: 1;
}

.philosophy-card:hover .card-divider {
  width: 120px;
  background: var(--color-white);
}

/* Responsive */
@media (max-width: 992px) {
  .philosophy-card {
    min-height: 400px;
  }
  
  .card-content {
    padding: 2rem;
  }
  
  .card-text {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .about-philosophy {
    padding: 4rem 1rem;
  }
  
  .philosophy-card {
    min-height: 350px;
  }
  
  .card-title {
    font-size: 1.6rem;
  }
  
  .card-divider {
    width: 60px;
  }
}

@media (hover: none) {
  .philosophy-card {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
}
