/* Global & partagé */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
}

html, body {
  height: 100%;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}

body {
  color: white;
  min-height: 100vh;
  min-width: 100vw;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000; /* color de respaldo */
}



/* Video como “fondo” centrado detrás del contenido */
.logo-video-wrapper {
  display: none; /* o elimínalo del HTML */
}

/* Fondo de imagen o video */
#bg-video {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100vw;          /* Se adapta al ancho siempre */
  height: auto;          /* Altura proporcional */
  min-width: 100vw;
  min-height: 0;
  transform: translate(-50%, -50%);
  object-fit: contain;   /* No recorta, puede dejar franjas arriba/abajo */
  background: #000;      /* Color de fondo para franjas */
  z-index: -2;
  pointer-events: none;
  border: none;
  outline: none;
}

/* Opcional: sobre-extiende un poco en móviles para evitar líneas */
@media (max-width: 600px) {
  #bg-video {
    width: 105vw;
  }
}

/* Si prefieres que no se vea espacio vacío arriba/abajo y aceptas recorte vertical,
   cambia ONLY object-fit y quita contain:
   object-fit: cover;  (← entonces se adaptará al ancho y recortará vertical) */

/* Opcional: en pantallas muy anchas puedes limitar altura máxima para evitar un video demasiado “chato” */
@media (min-aspect-ratio: 21/9) {
  #bg-video {
    max-height: 75vh;
  }
}

/* Opcional: en móviles muy altos puedes centrar mejor visualmente */
@media (max-width: 600px) {
  #bg-video {
    width: 115vw;      /* un poco más ancho para compensar barras UI */
  }
}

/* (Opcional) capa encima del video */
#bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.0); /* ajusta si quieres velo */
  z-index: -1;
  pointer-events: none;
}

/* Asegura que el contenido no se vea afectado */
body {
  position: relative;
  overflow: hidden;
}

/* Transición mantiene prioridad sobre fondo */
.transition-animation {
  z-index: 10000;
}

/* Spécifique */
.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2; /* Asegura que el login quede encima */
  width: auto;
  min-width: 260px;
  max-width: 350px;
  padding: 32px 22px 24px 22px;
  min-height: unset;
  background: #ffffff00;           /* Fondo blanco */
  border-radius: 22px;        /* Opcional: bordes redondeados */
  color: #205c1c;             /* Texto verde oscuro */
  margin: 0 auto;
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.6s ease;
}


/* Input */
.landing input[type="text"] {
  width: 80%;
  padding: 8px;
  font-size: 1.1rem;
  color: #909090;             /* Texto del input verde oscuro */
  background-color: #f6f8fa;  /* Fondo claro para input */
  border: none;
  border-radius: 20px;
  cursor: pointer;

  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
  text-align: center;
}

/* Placeholder blanco */
.landing input[type="text"]::placeholder {
  color: #0000003d;
  opacity: 1;
  font-weight: 300;
}

.landing input[type="text"]:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.landing button {
  width: 80%;
  padding: 12px;
  border: none;
  border-radius: 15px;
  margin-bottom: 20px;
  font-size: 1rem;
  text-align: center;
  background-color: #f9f9f900;
  color: #262626;
  cursor: pointer;
  transition: all 0.3s ease;        /* ✅ Transición suave */
  font-weight: 500;
}

/* ✅ CAMBIAR PARPADEO POR BOTÓN VERDE ATRACTIVO */
.landing button.move-blink {
  background: #ffffff ; /* ✅ Gradiente verde */
  color: #000000;                   /* ✅ Texto blanco */
  transform: scale(1.05);           /* ✅ Ligeramente más grande */
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4); /* ✅ Sombra verde */
  font-weight: 600;                 /* ✅ Texto más bold */
  animation: button-glow 2s ease-in-out infinite; /* ✅ Animación de brillo */
}

/* ✅ NUEVA ANIMACIÓN DE BRILLO VERDE */
@keyframes button-glow {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
  }
  50% { 
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
  }
}

/* Agregar al final del archivo index.css */

/* Animación de transición */
.transition-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #44bf41 0%, #2e7d32 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

.transition-animation.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.transition-animation.show {
  opacity: 1;
  pointer-events: all;
  display: flex;
}

.main-content {
  transition: opacity 0.5s ease-out;
}

.main-content.fade-out {
  opacity: 0;
  pointer-events: none;
}

.animation-content {
  text-align: center;
  max-width: 80%;
}

.transition-title {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out;
  font-weight: bold;
  letter-spacing: 2px;
}

.plant-animation {
  margin: 30px 0;
  animation: bounceIn 1.5s ease-out 0.5s both;
}

.flag-image {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: pulse 2s ease-in-out infinite;
}

.transition-subtitle {
  font-size: 1.3rem;
  color: #c4ffbe;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 1s both;
  font-weight: 500;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.loading-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  animation: loadingProgress 3s ease-out 2s forwards;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes loadingProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* ✅ Fondo con GIF (adaptado al ancho, centrado) */
#bg-gif {
  position: fixed;
  top: 41%;
  left: 50%;
  width: 100vw;          /* Se adapta al ancho */
  height: auto;          /* Mantiene proporción */
  min-width: 100vw;
  transform: translate(-50%, -50%);
  image-rendering: -webkit-optimize-contrast;
  background:#000;
  z-index: -2;
  pointer-events: none;
  user-select: none;
}

/* Evita líneas en algunos móviles (ligero sobre-ancho opcional) */
@media (max-width: 600px) {
  #bg-gif {
    width: 105vw;
  }
}

@media (min-width: 600px) {
  #bg-gif {
    width: min(92vw, 800px);
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 800px;
    max-height: 450px;
  }
}

/* Si quieres cubrir totalmente (recorta vertical):
#bg-gif { width:100vw; height:100vh; object-fit:cover; }
*/

/* Respeta accesibilidad (si el usuario prefiere menos movimiento) */
@media (prefers-reduced-motion: reduce) {
  .logo-video {
    animation: none;
  }
}


