/* ===========================================================
   ASEF Landing Page — Versión Final Limpia y Validada
   =========================================================== */

/* === Footer institucional ASEF === */
.landing-footer {
  background-color: #243447;
  color: #e2e8f0;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin: 0.4rem 0;
  opacity: 0.9;
}

.footer-section li:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* === Logo ASEF institucional centrado === */
.landing-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
}

.logo-icon {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
  object-fit: contain;
}

.logo-text {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1e293b;
  line-height: 1;
}

.landing-hero .logo-text {
  color: #ffffff;
}

/* === Hero institucional ASEF === */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url("../images/landing/hero-bg.jpg") center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
  background-size: 110%;
  animation: slowPan 30s ease-in-out infinite alternate;
}

@keyframes slowPan {
  0% { background-position: center top; }
  100% { background-position: center bottom; }
}

/* Capa oscura para contraste */
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(1px);
}

/* === Contenido principal === */
.landing-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
  text-align: center;
}

.landing-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.landing-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* === Mensajes rotativos ASEF === */
.landing-messages {
  position: relative;
  height: 3.5rem;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.message {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  opacity: 0;
  transition: opacity 1.3s ease, transform 1.3s ease;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: #e5e7eb;
  white-space: nowrap;
  width: 100vw;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.message.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Barra de progreso sincronizada === */
.progress-container {
  width: 60%;
  max-width: 600px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  margin: 2.5rem auto 0;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #93c5fd, #60a5fa);
  border-radius: 4px;
  animation: progressFill 6s ease-in-out infinite;
}

@keyframes progressFill {
  0% { width: 0%; opacity: 0.4; }
  60% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* === Responsividad base === */
@media (max-width: 768px) {
  .logo-icon {
    width: 42px;
    height: 42px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .landing-content h1 {
    font-size: 2.2rem;
  }

  .landing-content p {
    font-size: 1.1rem;
  }
}

/* ==========================================================
   🔧 Ajustes finales ASEF — móviles
   ========================================================== */
@media (max-width: 768px) {

  /* Corrige fondo y altura */
  .landing-hero {
    height: 100dvh;
    min-height: -webkit-fill-available;
    background-size: cover !important;
    background-position: center !important;
    animation: none !important;
  }

  /* Centra y ordena el contenido */
  .landing-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 60vh !important;
    padding: 0 2rem !important;
    margin-top: 8vh !important;
  }

  .landing-content h1 {
    font-size: 1.8rem !important;
    margin-bottom: 0.8rem !important;
  }

  /* Mensajes legibles y centrados */
  .landing-messages .message {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-align: center !important;
    width: 90vw !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.5 !important;
    font-size: 1rem !important;
  }

  /* Barra de progreso */
  .progress-container {
    margin-top: 2rem !important;
    width: 80% !important;
    max-width: 400px !important;
    height: 6px !important;
  }
}
