@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  overflow: hidden;
}

.wrapper {
  display: flex;
  height: 100vh;
}

.left {
  flex: 1;
  background-image: url('/images/bg1.jpg');
  background-size: cover;
  background-position: center;
  animation: fadeInLeft 1s ease-out;
}

.right {
  flex: 1;
  background-color: white;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeInUp 0.8s ease-out;
  height: 100vh;
  box-sizing: border-box;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

/* LOGO */
.logo {
  text-align: center;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}

.logo img {
  max-width: 250px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* TEXTO DESCRIPCIÓN */
.description {
  font-size: 1rem;
  color: #91929c;
  margin-bottom: 30px;
  line-height: 1.5;
  text-align: center;
}

/* SELECCIÓN DE PAÍS */
.selector p {
  font-weight: 500;
  margin-bottom: 10px;
  color: #91929c;
  text-align: center;
}

.flags {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.flag-img {
  display: inline-block;
  width: 60px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.flag-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flag-img:hover,
.flag-img:active {
  transform: scale(1.1) rotate(1deg);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #91929c;
  padding-top: 30px;
  border-top: 1px solid #eee;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-text {
  flex: 1;
  text-align: left;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  font-size: 1.3rem;
  color: #91929c;
  transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover,
.footer-socials a:focus {
  color: #21c2f8;
  transform: translateY(-3px);
  cursor: pointer;
}

/* ANIMACIONES */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
    height: auto;
  }

  .left {
    display: none;
  }

  .right {
    width: 100%;
    height: auto;
    padding: 40px 20px;
  }

  .description, .selector p {
    text-align: center;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
  }

  .footer-text {
    margin-bottom: 10px;
    text-align: center;
  }
}
