/* =====================
   ESTILOS GENERALES
===================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #1b2b38, #203a43, #1E90FF);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  color: #f5f5f5;
  line-height: 1.6;
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🔹 Animación del fondo fluido */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =====================
   NAVBAR
===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  background: rgba(135, 206, 235, 0.35);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
}

.logo {
  background: #ffffff;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo img {
  height: 55px;
  border-radius: 50%;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px #1E90FF);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #FF69B4);
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #f5f5f5;
}

/* =====================
   TITULO NOSOTROS
===================== */
.nosotros-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #FF69B4, #6edf6e);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorFlow 6s linear infinite;
  text-shadow: 0 0 10px rgba(30,144,255,0.4);
}

@keyframes colorFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =====================
   CONTENIDO NOSOTROS
===================== */
.nosotros-content {
  max-width: 1000px;
  margin: 100px auto 60px;
  padding: 20px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #f5f5f5;
}

/* =====================
   TARJETAS MISION, VISION Y VALORES
===================== */
.cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(30,144,255,0.2),
              0 0 40px rgba(50,205,50,0.2),
              0 0 60px rgba(255,105,180,0.2);
  width: 300px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.6s ease-in-out;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(30,144,255,0.4),
              0 0 80px rgba(50,205,50,0.4),
              0 0 120px rgba(255,105,180,0.3);
}

.card h2 {
  color: #1E90FF;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.card p,
.card ul {
  color: #f5f5f5;
  font-size: 1rem;
  line-height: 1.6;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  margin-bottom: 10px;
}

/* =====================
   TARJETA DE VALORES HORIZONTAL
===================== */
.card.valores {
  width: 90%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  text-align: left;
  padding: 40px;
  gap: 30px;
  position: relative;
}

.card.valores h2 {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  font-size: 2.3rem;
  color: #1E90FF;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(50, 205, 50, 0.4);
  z-index: 2;
}

.card.valores ul {
  flex: 1;
  margin-left: 200px;
  text-align: left;
  padding-left: 10px;
}

.card.valores ul li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.card.valores:hover {
  transform: scale(1.02);
}

/* =====================
   FOOTER
===================== */
.footer {
  width: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #1E90FF);
  color: #f5f5f5;
  text-align: center;
  padding: 3px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.4);
  font-size: 1rem;
  letter-spacing: 0.5px;
  animation: fadeInUp 1s ease;
  margin-top: auto;
}

.footer p {
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.footer span {
  font-weight: 700;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #e4514a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 50, 0.95);
    gap: 20px;
    padding: 20px 0;
    display: none;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nosotros-title {
    font-size: 2.5rem;
  }

  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .card.valores {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 30px 20px;
  }

  .card.valores h2 {
    position: static;
    transform: none;
    margin-bottom: 15px;
    left: auto;
  }

  .card.valores ul {
    margin-left: 0;
    text-align: center;
    padding-left: 0;
  }
}
