/* Contenedor principal */
.company-core {
  font-family: 'Montserrat', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: #333;
  background: linear-gradient(135deg, #fafafa, #0a0ee6); /* Degradado de azul a celeste */
}

/* Título principal */
.core-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  color: #2c3e50;
}

.core-title:after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Contenedor de tarjetas superiores (Misión y Visión) */
.top-cards {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Contenedor de tarjeta inferior (Valores y Principios) */
.bottom-card {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.bottom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Estilo base de tarjetas */
.core-card {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.core-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Efecto de borde animado */
.core-card:before,
.bottom-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 2;
}

.core-card:hover:before,
.bottom-card:hover:before {
  transform: scaleX(1);
}

/* Iconos */
.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #3498db, #9b59b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Títulos de tarjetas */
.card-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 0.5rem;
}

.card-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #3498db;
}

.bottom-card .card-title {
  text-align: center;
  font-size: 2rem;
}

.bottom-card .card-title:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Contenido de tarjetas */
.card-content {
  line-height: 1.7;
  color: #555;
  font-size: 1.05rem;
}

/* Secciones de Valores y Principios */
.values-principles-container {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.values-section, .principles-section {
  flex: 1;
}

.section-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f1f1;
}

/* Lista de valores y principios */
.values-list, .principles-list {
  margin-top: 1rem;
}

.values-list li, .principles-list li {
  margin-bottom: 1.2rem;
  position: relative;
  list-style-type: none;
  padding-left: 2rem;
  line-height: 1.6;
}

.values-list li:before, .principles-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.core-card, .bottom-card {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.core-card:nth-child(1) { animation-delay: 0.1s; }
.core-card:nth-child(2) { animation-delay: 0.3s; }
.bottom-card { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 900px) {
  .top-cards {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .core-card {
    max-width: 100%;
  }
  
  .values-principles-container {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .bottom-card {
    padding: 2rem 1.5rem;
  }
}