/* --- BASE STYLES --- */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

/* --- NAVBAR --- */
nav {
  background-color: #772537;
  padding: 10px 20px;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background 0.3s;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  position: relative;
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.2s;
}

nav ul li a:hover {
  background-color: #993858;
  color: #bc955c;
  transform: scale(1.1);
  box-shadow: 0px 0px 10px rgba(255, 215, 0, 0.6);
}

nav ul li a.active {
  background-color: #993858;
  color: #bc955c;
  border-radius: 5px;
}

/* --- HERO SECTION --- */
/* --- ANIMACIONES --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, #8e193a 0%, #5a1028 100%);
  height: 110vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%,
      rgba(212, 175, 55, 0.15) 0%,
      transparent 20%),
    radial-gradient(circle at 80% 70%,
      rgba(212, 175, 55, 0.15) 0%,
      transparent 20%),
    radial-gradient(circle at 40% 80%,
      rgba(188, 149, 92, 0.1) 0%,
      transparent 25%),
    radial-gradient(circle at 70% 20%,
      rgba(188, 149, 92, 0.1) 0%,
      transparent 25%);
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.5s 0.3s ease-out forwards;
}

/* Partículas de fondo animadas */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-top: 80px;
  transform: scale(0.8);
  opacity: 0;
  animation: zoomIn 1s 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.8rem;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  margin-top: 12rem;
  text-shadow: 3px 3px 0 #000, -3px 3px 0 #000, 3px -3px 0 #000,
    -3px -3px 0 #000, 0 10px 15px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
  transform: translateY(50px);
  opacity: 0;
  animation: fadeInUp 0.8s 0.8s ease-out forwards;
}

.hero-subtitle {
  font-size: 10rem;
  font-weight: 700;
  letter-spacing: 0.5rem;
  margin: 0;
  color: #bc955c;
  text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000,
    -2px -2px 0 #000, 0 8px 12px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: scale(0);
  opacity: 0;
  animation: scaleIn 0.8s 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
    pulse 4s 2.5s infinite ease-in-out;
}


/* BOTÓN CON ESTILO MEJORADO */
.hero button {
  background: linear-gradient(to right, #bc955c, #d4af37);
  color: #772537;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;

  /* Efecto de brillo animado */
  background-size: 200% auto;
}

.hero button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background-position: right center;
}

.hero button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero button:hover::before {
  opacity: 0.3;
}

.hero button:active {
  transform: translateY(1px);
}

/* INSTITUTION LOGOS - POSICIONADO EN LA PARTE SUPERIOR */
.institution-container {
  position: absolute;
  top: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 10;
  opacity: 0;
  animation: fadeInDown 0.8s 0.5s ease-out forwards;
  gap: 15vw;
}

.institution-left img,
.institution-center img,
.institution-right img {
  height: 200px;
  width: auto;
  object-fit: contain;

  /* Efecto de brillo inicial */
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));

  /* Nueva animación de brillo */
  animation: glow 2s infinite alternate;
}

/* 🔥 Animación de brillo */
@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.6))
            drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  }
  to {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 1))
            drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
  }
}

/* BOTÓN CON ESTILO */
.hero button {
  background: linear-gradient(to right, #bc955c, #d4af37);
  color: #772537;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;

  /* Efecto de brillo animado */
  background-size: 200% auto;
}

.hero button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background-position: right center;
}

.hero button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero button:hover::before {
  opacity: 0.3;
}

.hero button:active {
  transform: translateY(1px);
}

/* --- FOOTER --- */
footer {
  background-color: #772537;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  width: 100%;
}

.footer-content {
  max-width: 800px;
  margin: auto;
  padding: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-content a {
  color: #bc955c;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.footer-content a:hover {
  color: #ffffff;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translate(20px, -20px) scale(1.2);
    opacity: 0.8;
  }
}

/* --- PARTICLE EFFECT --- */
.particle {
  position: absolute;
  background: rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
  opacity: 0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .hero-subtitle {
    font-size: 12rem;
  }

  .institution-container {
    top: 20px;
    gap: 0px;
    /* Aumentado de 40px a 80px para más separación */
  }
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 0.5rem;
  }

  .hero-subtitle {
    font-size: 8rem;
    letter-spacing: 0.3rem;
  }

  .institution-container {
    top: 20px;
    gap: 150px;
    /* Aumentado de 40px a 80px para más separación */
  }

  .institution-left img,
  .institution-center img,
  .institution-right img {
    height: 150px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 6rem;
  }

  .institution-container {
    gap: 20px;
  }

  .institution-left img,
  .institution-center img,
  .institution-right img {
    height: 100px;
  }

  .institution-container {
    top: 20px;
    gap: 150px;
    /* Aumentado de 40px a 80px para más separación */
  }

  .hero button {
    padding: 12px 30px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 600px;
    /* Evita compresión excesiva */
  }

  .hero-title {
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
  }

  .hero-subtitle {
    font-size: 4rem;
    letter-spacing: 0.2rem;
  }

  .institution-container {
    top: 70px;
    flex-direction: row;
    gap: 15px;
  }

  .institution-left,
  .institution-center,
  .institution-right {
    width: 100%;
    justify-content: center;
  }

  .institution-left img,
  .institution-center img,
  .institution-right img {
    height: 60px;
  }

  .hero button {
    padding: 10px 25px;
    font-size: 0.9rem;
    margin-top: 30px;
  }
}