/* ====== ESTILO GENERAL ====== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f8fbfc;
  color: #333;
  scroll-behavior: smooth;
}

.identidad-main {
  overflow-x: hidden;
}

.hero-identidad {
  position: relative;
  height: 65vh;
  background: url('/img/logomida.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  background: #022447;
  padding: 50px;
  border-radius: 16px;
  color: #fff;
  animation: fadeIn 1.2s ease-in-out;
  backdrop-filter: blur(5px);
}

.logo-identidad {
  width: 130px;
  height: auto;
  margin-bottom: 15px;
  animation: floatLogo 3s ease-in-out infinite;
}

.hero-overlay h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #e0f7fa;
}

/* ====== SECCIONES ====== */
.identidad-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 30px 20px;
  border-radius: 16px;
  animation: fadeUp 0.8s ease-in-out;
}

/* Quiénes somos */
.about {
  background: linear-gradient(135deg, #e6f7f9, #f9f9f9);
  text-align: center;
}

.about h2 {
  color: #007e8c;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Misión y Visión */
.mission-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.mission-vision .card {
  flex: 1 1 45%;
  background: white;
  border-left: 6px solid #00bcd4;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.mission-vision .card:hover {
  transform: translateY(-6px);
}

.mission-vision h3 {
  color: #007e8c;
  margin-bottom: 10px;
}

/* Valores */
.valores {
  text-align: center;
}

.valores h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #007e8c;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.valor {
  background: white;
  padding: 20px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.valor:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.valor span {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* ====== ANIMACIONES ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .logo-identidad {
    width: 90px;
  }

  .mission-vision {
    flex-direction: column;
  }
}

.valor span {
  display: block;
  font-size: 2rem;
  color: #022447;
  margin-bottom: 8px;
}

.descripcion {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: #555;
  font-size: 0.95rem;
  margin-top: 8px;
}

.descripcion.activo {
  max-height: 200px;
  opacity: 1;
}
