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

body {
  font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  background-color: #f4f7f6;
  color: #333;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Carrusel Horizontal a pantalla completa */
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100vh;
  width: 100vw;
  -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de scroll */
.carousel-container::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 15px;
  position: relative;
}

/* Encabezado de Bienvenida (Solo visible en la portada / primera letra A) */
.welcome-header {
  text-align: center;
  margin-bottom: 5px;
}

.welcome-header h1 {
  font-size: 1.8rem;
  color: #2c3e50;
}

.welcome-header p {
  font-size: 1rem;
  color: #7f8c8d;
}

/* Tamaño de fuente del juego principal */
.letter-display {
  font-size: 28vh; 
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
  user-select: none;
  position: relative;
  display: inline-block;
}

/* --- Ñ PERSONALIZADA --- */
.letter-n-tilde {
  font-size: 28vh;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
  user-select: none;
  position: relative;
  display: inline-block;
}

.letter-n-tilde::before {
  content: "";
  position: absolute;
  top: --2%;            /* Distancia óptima sobre la N */
  left: 35%;           /* Centrada horizontalmente */
  width: 30%;          /* 1/3 del ancho de la N */
  height: 0.08em;      /* Barra recta limpia */
  background-color: #2c3e50;
  border-radius: 2px;
}

/* --- Q PERSONALIZADA CON PATICA EN FORMA DE S ACOSTA Y ALARGADA --- */
.letter-q-curved {
  font-size: 28vh;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
  user-select: none;
  position: relative;
  display: inline-block;
}

.q-svg-container {
  display: inline-block;
  position: relative;
}

.q-tail-svg {
  position: absolute;
  bottom: -4%;
  right: -12%;
  width: 0.42em;
  height: 0.42em;
  pointer-events: none;
}

/* Área Didáctica */
.didactic-box {
  text-align: center;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.didactic-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  transition: transform 0.1s ease;
  width: 90%;
}

.didactic-btn:active {
  transform: scale(0.98);
}

.examples-container {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.examples-container.visible {
  opacity: 1;
  visibility: visible;
}

.example-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.example-icon {
  font-size: 3.8rem;
  line-height: 1;
}

.example-word {
  font-size: 1.2rem;
  font-weight: 600;
  color: #34495e;
  margin-top: 5px;
}
