/* NO TOQUEN NADA VIEJO */

* {
  user-select: none; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  /* Solución para ocultar la scrollbar pero que se muestre el scroll xd */
  overflow-y: scroll; /* Asegura el scroll vertical */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.header {
  padding: 2rem 1rem;
  text-align: center;
}

.titulo {
  font-size: 3.5rem;
  text-align: center;
  color: #ffffff;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  font-weight: 700;
}

.titulo:hover {
  color: #ffe2a4;  
  transform: scale(1.05);  
}

/* Tablets */
@media (max-width: 900px) {
  .titulo {
    font-size: 6vw;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .titulo {
    font-size: 7vw;
    padding-bottom: 0.3rem;
  }
}

.descripcion-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.85); 
  margin: 0 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.descripcion {
  max-width: 800px;
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
  text-align: justify;  
  margin: 0;
}

.card-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h2 {
  margin: 10px 0;
  color: #333;
  font-size: 1.5rem;
}

.card p {
  color: #666;
  margin-top: auto;
  line-height: 1.4;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Pantalla de carga */
#loader {
  position: fixed;
  z-index: 9999;
  background: #0f1724;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 500px;
}

.wrapper {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.wrapper i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 0 10px rgba(255,255,255,1);
  opacity: 0;
}

@keyframes spin {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.6;
    transform: translate3d(-4px, -4px, 570px);
  }
}

footer {
  background-color: rgba(51, 51, 51, 0.9);
  color: #fff;
  text-align: center;
  padding: 15px 0;
  position: relative;
  width: 100%;
  margin-top: 40px;
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: none;  /* Elimina el subrayado */
  color: inherit;  /* Hereda el color del texto del párrafo */
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffe2a4;
}

/* Responsive */
@media (max-width: 900px) {
  .card-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-section {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .descripcion-container {
    margin: 0 1rem;
    padding: 15px;
  }
  
  .descripcion {
    font-size: 1em;
  }
}