@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #f4f1ec;
  color: #2f2f2f;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  background-color: black;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  border-bottom: 10px solid yellow;
  flex-wrap: wrap;
}

#logo {
  width: 50px;
  height: 50px;
}

#titulo-header {
  font-size: 1.8rem;
  margin: 0;
}

#foto-perfil {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: white;
  object-fit: cover;
}

form,
.contenedor {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#mensaje {
  text-align: center;
  font-weight: 600;
  color: #5e503f;
}

#palabra {
  background-color: #f7f5f2;
  border: 2px solid #d6cec0;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  font-size: 2rem;
  text-align: center;
  color: #5e503f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  width: 100%;
}

input,
select {
  padding: 1rem;
  border: 1px solid #ccc6b8;
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  background-color: #fbfaf9;
  color: #2f2f2f;
  width: 100%;
}

input:focus,
select:focus {
  border-color: #b8a17f;
  outline: none;
}

button {
  padding: 0.85rem 1.2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: #b8a17f;
  color: white;
  transition: background-color 0.3s ease;
  width: fit-content;
  align-self: center;
}

.equipo1 {
  padding: 0.85rem 1.2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: blue;
  color: white;
  transition: background-color 0.3s ease;
  width: fit-content;
  align-self: center;
}



.equipo1:hover {
  background-color: blue;
}



.equipo2:hover {
  background-color: red;
}

.equipo2 {
  padding: 0.85rem 1.2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: red;
  color: white;
  transition: background-color 0.3s ease;
  width: fit-content;
  align-self: center;
}

button:hover {
  background-color: #9f8b6b;
}

button a {
  text-decoration: none;
  color: inherit;
}

button.secundario {
  background-color: #a8a8a8;
}

button.secundario:hover {
  background-color: #868686;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

.galeria form {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

#invitados {
  margin-top: 60%;
  text-align: center;
}

#contador {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  color: #d96b3b;
  margin: 1rem 0;
}

#tiempo {
  width: 100%;
}

.centrado {
  text-align: center;
}

#error,
.error {
  color: #a94442;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #titulo-header {
    font-size: 1.5rem;
    margin-top: 1rem;
  }

  form,
  .contenedor,
  .galeria form {
    width: 90%;
    padding: 1.2rem;
    margin: auto;
  }

  .galeria {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #palabra {
    font-size: 1.5rem;
    padding: 1rem;
  }

  #contador {
    font-size: 1.8rem;
  }

  button {
    width: 100%;
    max-width: 280px;
  }

  input,
  select {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  #palabra {
    font-size: 1.3rem;
  }

  #contador {
    font-size: 1.6rem;
  }

  .galeria {
    padding: 0.5rem;
  }

  .galeria form {
    padding: 1rem;
  }

  input,
  select {
    font-size: 0.95rem;
  }

  button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}
