/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f5eee3;
  background-image: url("../image/portada-web-adoc.jpg");
  background-size: cover;
  background-position: bottom center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

h1 {
  font-size: 1rem;
  color: #5c5c5c;
  text-align: center;
  margin-bottom: 1.5rem;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.box {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;
  width: 100%;
  transition: transform 0.3s ease;
}

.box-adoc {
  background: #000;
  color: #fff;
}

.box:hover {
  transform: translateY(-4px);
}

.logo-placeholder {
  width: 180px;
  height: 70px;
  background-color: transparent;
  border-radius: 10px;
  margin: 0 auto 1.5rem;
  display: flex;
}

.logo-placeholder img {
  width: 100%;
  height: auto;
  margin: auto;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #111;
}

.box-adoc h1 {
  color: #fff;
}

.countries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 85%;
  }

  .countries {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 1.5rem;
    justify-items: center;
    align-items: center;
    padding: 0 1rem;
    margin: 0 auto;
  }
  
  body {
    background-color: #e9d2b3;
    background-image: unset;
  }
}

.countries img {
  width: 40px;
  max-height: 40px;
  object-fit: 100%;
  border-radius: 10px;
}

.country {
  display: inline-block;
  background-color: #e0e0e0;
  padding: 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  max-width: fit-content;
  display: grid;
  grid-template-columns: 1fr;
}

.country:hover,
.country:focus {
  background-color: #e9d2b3;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.box-adoc .country:hover,
.box-adoc .country:focus {
  background-color: #e9d2b3;
}

/* Animación de entrada */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
