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

/* Navbar Mejorado */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 15, 35, 0.98);
  box-shadow: 0 4px 30px rgba(123, 97, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 700;
  background-color: #F9F9F9;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo .vi {
  color: #7b61ff;
  background: none;
  -webkit-text-fill-color: #7b61ff;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #f9f9f9;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7b61ff, #a3f7bf);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #a3f7bf;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #f9f9f9;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

body {
  font-family: 'poppins', sans-serif;
  background: #1a1a1a;
  color: #eee;
  margin: 0;
  font-size: 12px;
  min-height: 100vh;
}

.main-container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 20px;
  margin: 70px auto 0 auto;
}

.card {
  --bg-color: #2E2E2E;
  background-color: var(--bg-color);
  padding: clamp(1.5rem, 4vw, 4rem);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  min-height: clamp(120px, 20vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 97, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #7B61FF;
  box-shadow: 0 20px 40px rgba(123, 97, 255, 0.2);
}

.card:hover::before {
  left: 100%;
}

.loader {
  color: rgb(124, 124, 124);
  font-family: 'poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.75rem);
  box-sizing: content-box;
  height: auto;
  padding: 15px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.words {
  overflow: hidden;
  position: relative;
  height: clamp(2rem, 6vw, 3.75rem);
  clip-path: inset(0 0 0 0);
  min-width: 200px;
}

.words::before,
.words::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(0.5rem, 2vw, 0.9375rem);
  background: var(--bg-color);
  z-index: 10;
  transition: background-color 0.4s ease;
}

.words::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-color), transparent);
}

.words::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-color), transparent);
}

.card:hover .words::before {
  background: linear-gradient(to bottom, #2E2E2E, transparent);
}

.card:hover .words::after {
  background: linear-gradient(to top, #2E2E2E, transparent);
}

p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  color: #fff;
}

.word {
  display: block;
  height: clamp(2rem, 6vw, 3.75rem);
  padding-left: 8px;
  color: #7B61FF;
  animation: spin_4991 4s infinite;
  line-height: clamp(2rem, 6vw, 3.75rem);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

@keyframes spin_4991 {
  10% {
    transform: translateY(-102%);
  }

  25% {
    transform: translateY(-100%);
  }

  35% {
    transform: translateY(-202%);
  }

  50% {
    transform: translateY(-200%);
  }

  60% {
    transform: translateY(-302%);
  }

  75% {
    transform: translateY(-300%);
  }

  85% {
    transform: translateY(-402%);
  }

  100% {
    transform: translateY(-400%);
  }
}

.card:hover p {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.card:hover .word {
  color: #9580ff;
  text-shadow: 0 0 15px rgba(123, 97, 255, 0.5);
  transition: all 0.4s ease;
}

/* Redes sociales responsive */
.RedesSocialesGrid {
  width: 100%;
  max-width: 900px;
  /* Mismo ancho máximo que el card principal */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(10px, 2vw, 15px);
  padding: 0;
}

.RedesSociales {
  --bg: #2E2E2E;
  --hover-bg: #ffe5f4;
  --hover-text: #7B61FF;
  text-align: center;
  background: var(--bg);
  padding: clamp(0.8rem, 2vw, 1rem);
  padding-block: clamp(1rem, 2.5vw, 1.2rem);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: 0.3s cubic-bezier(0.6, 0.4, 0, 1), transform 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.3rem, 1vw, 0.5rem);
  color: #F9F9F9;
  min-height: clamp(80px, 12vw, 100px);
}

.RedesSociales__body {
  color: #F9F9F9;
  line-height: 1.5em;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.RedesSociales> :not(span) {
  transition: 0.3s cubic-bezier(0.6, 0.4, 0, 1);
}

.RedesSociales>strong {
  display: block;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  letter-spacing: -0.035em;
}

.RedesSociales .icon i {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
  color: white !important;
}

.RedesSociales span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--hover-text);
  border-radius: 8px;
  font-weight: bold;
  top: 100%;
  transition: all 0.3s cubic-bezier(0.6, 0.4, 0, 1);
  font-size: clamp(0.8rem, 1.8vw, 1rem);
}

.RedesSociales:hover span {
  top: 0;
}

.RedesSociales:hover {
  background: var(--hover-bg);
  transform: translateY(-3px);
}

.RedesSociales:hover>div,
.RedesSociales:hover>strong {
  opacity: 0;
}

/* Media queries para mejores breakpoints */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .main-container {
    margin-top: 70px;
    gap: 30px;
  }

  .card {
    min-height: 100px;
  }

  .loader {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .words {
    min-width: 150px;
  }

  .RedesSocialesGrid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }

  .RedesSociales {
    min-height: 70px;
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .card {
    padding: 1rem;
    min-height: 80px;
  }

  .loader {
    padding: 10px;
  }

  .RedesSocialesGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .RedesSociales {
    min-height: 60px;
    padding: 0.5rem;
  }
}

@media (max-width: 360px) {
  .RedesSocialesGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Para pantallas muy grandes */
@media (min-width: 1400px) {
  .RedesSocialesGrid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mejoras para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .RedesSocialesGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Estilos para las nuevas secciones */
.info-sections {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 30px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(15px, 3vw, 25px);
}

.info-card {
  background: linear-gradient(145deg, #2E2E2E, #252525);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.info-cardPurple {
  background: linear-gradient(145deg, #6B4FE8, #7B61FF);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Sobre Nosotros - Morado con animación negra */
.info-card.sobre-nosotros {
  background: linear-gradient(145deg, #7B61FF, #6B4FE8);
}

.info-card.sobre-nosotros::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
  transition: left 0.6s ease;
}

.info-card.sobre-nosotros:hover::before {
  left: 100%;
}

.info-card.sobre-nosotros .info-header h2 {
  color: #ffffff;
}

.info-card.sobre-nosotros .info-content p {
  color: #f0f0f0;
}

.info-card.sobre-nosotros .info-header i {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Visión y Misión - Efectos interactivos mejorados */
.info-card:not(.sobre-nosotros)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 97, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.info-card:not(.sobre-nosotros):hover::before {
  left: 100%;
}

.info-card:not(.sobre-nosotros) {
  cursor: pointer;
  transform-style: preserve-3d;
}

.info-card:not(.sobre-nosotros):hover {
  transform: translateY(-8px) rotateX(2deg) scale(1.02);
  border-color: #7B61FF;
  box-shadow: 0 25px 50px rgba(123, 97, 255, 0.25);
}

.info-card:not(.sobre-nosotros):active {
  transform: translateY(-4px) rotateX(1deg) scale(1.01);
  transition: all 0.1s ease;
}

/* Efectos adicionales para Visión y Misión */
.info-card:not(.sobre-nosotros) .info-header {
  transition: all 0.3s ease;
}

.info-card:not(.sobre-nosotros):hover .info-header {
  transform: translateY(-2px);
}

.info-card:not(.sobre-nosotros):hover .info-header i {
  transform: scale(1.1) rotate(5deg);
  color: #9580ff;
  text-shadow: 0 0 20px rgba(123, 97, 255, 0.6);
}

.info-card:not(.sobre-nosotros):hover .info-header h2 {
  color: #9580ff;
  text-shadow: 0 0 10px rgba(149, 128, 255, 0.3);
}

.info-card:not(.sobre-nosotros):hover .info-content p {
  color: #f5f5f5;
  transform: translateX(5px);
}

/* Animación de pulso para Visión y Misión */
.info-card:not(.sobre-nosotros)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  pointer-events: none;
}

.info-card:not(.sobre-nosotros):hover::after {
  width: 200%;
  height: 200%;
  opacity: 0;
}

.info-header {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  padding-bottom: clamp(0.5rem, 2vw, 1rem);
  border-bottom: 2px solid rgba(123, 97, 255, 0.2);
}

.info-header i {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #7B61FF;
  text-shadow: 0 0 10px rgba(123, 97, 255, 0.3);
}

.info-header h2 {
  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.025em;
}

.info-content {
  color: #E0E0E0;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.info-content p {
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
  color: #E0E0E0;
  text-align: justify;
}

.info-content p:last-child {
  margin-bottom: 0;
}

/* Responsive para info sections */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 20px 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .info-card {
    padding: 1.2rem;
  }

  .info-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .info-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .info-sections {
    gap: 15px;
  }

  .info-card {
    padding: 1rem;
  }

  .info-header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
  }
}


/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7b61ff, #6da7cc);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(123, 97, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #a3f7bf, #7b61ff);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #7b61ff #0f0f23;
}