/* =========================
   CONTENEDOR GENERAL
========================= */
#screen-animales {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #fff8f0, #fff0e0);
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

/* =========================
   HEADER
========================= */
.animales-header {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: fadeSlideUp 0.4s ease both;
}

/* =========================
   CONTENIDO
========================= */
.animales-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 18px 0;
}

/* =========================
   INSTRUCCIÓN
========================= */
.animales-instruccion {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 600px;
  animation: fadeSlideUp 0.5s ease 0.1s both;
}

.animales-instruccion h2 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.animales-instruccion p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-medium);
}

/* =========================
   EMOJI GRANDE
========================= */
.animales-emoji-grande {
  font-size: 100px;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s ease;
  user-select: none;
}

.animales-emoji-grande.acierto-anim {
  animation: rebote 0.5s ease;
}

.animales-emoji-grande.error-anim {
  animation: temblor 0.4s ease;
}

/* =========================
   PISTA
========================= */
.animales-pista {
  font-size: 16px;
  color: #555;
  text-align: center;
  background: rgba(255,255,255,0.7);
  padding: 8px 18px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  max-width: 320px;
}

/* =========================
   OPCIONES (solo texto, sin emoji)
========================= */
.animales-opciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 360px;
}

.animales-opcion {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 18px 14px;
  background: white;
  border: 3px solid #e5e7eb;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.07);
  transition: all 0.2s ease;
  font-family: 'Segoe UI', sans-serif;
}

.animales-opcion:hover {
  transform: scale(1.05);
  border-color: #f59e0b;
}

.animales-opcion:active {
  transform: scale(0.97);
}

.opcion-nombre {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  text-align: center;
}

/* Estados de respuesta */
.animales-opcion.opcion-correcta {
  border-color: #22c55e;
  background: #f0fdf4;
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(34,197,94,0.25);
}

.animales-opcion.opcion-incorrecta {
  border-color: #ef4444;
  background: #fef2f2;
  animation: temblor 0.4s ease;
}

/* =========================
   FOOTER / PROGRESO
========================= */
.animales-footer {
  padding: var(--space-lg) var(--space-xl);
  animation: fadeSlideUp 0.5s ease 0.5s both;
}

.animales-progreso-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

/* =========================
   ANIMACIONES
========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rebote {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes temblor {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
  .animales-emoji-grande {
    font-size: 80px;
  }

  .animales-opciones {
    gap: 10px;
  }

  .animales-opcion {
    min-height: 60px;
  }

  .opcion-nombre {
    font-size: 15px;
  }
}

/* ========== CARD DE INSTRUCCIONES ========== */
.animales-instruccion,
.clasifica-instruccion,
.reloj-instruccion,
.memoria-instruccion,
.sec-instruccion,
.vocal-objetivo-header,
.inicial-instruccion,
.manzanas-instruccion {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 32px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.animales-instruccion h2,
.clasifica-instruccion h2,
.reloj-instruccion h2,
.memoria-instruccion h2,
.sec-instruccion h2,
.vocal-objetivo-header h2,
.inicial-instruccion h2,
.manzanas-instruccion h2 {
  margin: 0 0 12px 0;
  font-size: 1.6rem;
  color: var(--text-dark);
}

.animales-instruccion p,
.clasifica-instruccion p,
.reloj-instruccion p,
.memoria-instruccion p,
.sec-instruccion p,
.vocal-objetivo-header p,
.inicial-instruccion p,
.manzanas-instruccion p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-medium);
}
