/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5e8c8;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative; /* para el selector absoluto */
}

.lang-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 1rem;
  z-index: 1000;
}

/* Header centrado bajo el selector */
/* Header: relativo para contener el selector absoluto */
.logo-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;     /* centra el logo */
  padding-top: 40px;
  gap: 10px;
}

/* Logo centrado */
.logo {
  width: 150px;
  margin: 0 auto;          /* fuerza el logo en el centro */
}

.mensaje-acceso {
  font-size: 22px;
  font-weight: bold;
  color: #b42424;
  animation: fadeInUp 1s ease-in-out both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contenedor principal */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: 40px;
}

/* Botones */
.boton-contenedor {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.boton-contenedor button {
  padding: 15px 35px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background-color: #b42424;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s;
}

.boton-contenedor button:hover {
  transform: scale(1.05);
  background-color: #d13b3b;
}

/* Enlace de ayuda */
.ayuda {
  display: block;
  margin-top: 20px;
  color: #fbbc09;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ayuda:hover {
  color: #084776;
}

/* Footer */
footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  margin-top: auto;
}

/* Modal de contacto */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-contenido {
  background-color: #fff;
  color: #333;
  margin: 15% auto;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  position: relative;
}

.modal-contenido h3 {
  color: #b42424;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}
