*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fondo terciopelo + tipografía */
body {
  font-family: "Georgia", serif;
  color: #f8f0f0;
  text-align: center;
  background: url("https://www.transparenttextures.com/patterns/velvet.png"),
    #7b1b1b;
  background-size: cover;
  background-repeat: repeat;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  padding: 1rem;
}

/* Capa opcional para niebla */
.fog-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Contenido centrado */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Logotipo */
.logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.shadow {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Texto principal */
.text {
  font-size: 1rem;
  color: #ffdada;
  text-shadow: 1px 1px 3px #000;
  line-height: 1.8;
  text-align: justify;
  padding: 1rem 2rem;
}

/* Selector de idioma */
.language-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.language-selector img {
  width: 36px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.language-selector img:hover {
  transform: scale(1.1);
}

.language-selector img.active {
  border: 2px solid #ffdada;
}

/* Estilos comunes para los divs de idioma */
.language-content {
  text-align: left;
  padding: 20px;
}

.language-content h3 {
  text-align: center;
  margin-bottom: 30px;
}

.language-content p:last-of-type {
  text-align: center;
  margin-top: 30px;
}

.language-content p {
  text-align: justify;
}

/* Mobile first: ajustamos para pantallas pequeñas */
@media (max-width: 600px) {
  .logo {
    max-width: 150px;
  }

  .text {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .language-selector {
    gap: 0.5rem;
  }

  .language-selector img {
    width: 30px;
  }

  .language-content {
    padding: 10px;
  }
}

/* Estilos para pantallas más grandes */
@media (min-width: 601px) {
  .text {
    font-size: 1.1rem;
  }

  .language-selector {
    flex-direction: row;
  }
}
