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

body {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
  color: #2c3e50;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.nav {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2rem 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 220px;
  max-width: 320px;
  border-right: 1px solid #34495e;
}

.nav:last-child {
  border-right: none;
  border-left: 1px solid #34495e;
}

.nav h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  color: #3498db;
  text-transform: uppercase;
  border-bottom: 1px solid #3498db;
  padding-bottom: 8px;
}

.nav a {
  color: #bdc3c7;
  text-decoration: none;
  background: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  display: block;
}

.nav a:hover, .nav a.active {
  background: #3498db;
  color: #fff;
}

.main-content {
  flex: 1;
  background: #ffffff;
  padding: 2rem;
  box-sizing: border-box;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

iframe#content-frame {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Estilos para contenido interno */
h1, h2, h3, h4, h5, h6 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.2rem;
  color: #1e3a5c;
}

h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.4rem;
  color: #34495e;
}

p {
  margin-bottom: 1rem;
  color: #2c3e50;
  line-height: 1.7;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

strong {
  color: #1e3a5c;
  font-weight: 600;
}

/* Estilos para elementos especiales */
.hero-section {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.fun-fact {
  background: #ecf0f1;
  border-left: 4px solid #3498db;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.highlight-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.emoji-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-warning {
  background: #f39c12;
  color: white;
}

.btn-warning:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

/* Navegación */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}

/* Tarjetas */
.card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contenedores de juegos */
.game-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.question-card {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.choice-button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: left;
}

.choice-button:hover {
  border-color: #3498db;
  background: #e8f4fd;
}

.choice-button.correct {
  border-color: #27ae60;
  background: #d4edda;
  color: #155724;
}

.choice-button.incorrect {
  border-color: #e74c3c;
  background: #f8d7da;
  color: #721c24;
}

.feedback {
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: 500;
}

.feedback.positive {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #27ae60;
}

.feedback.negative {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #e74c3c;
}

.score-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin: 1rem 0;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }
  
  .nav {
    min-width: auto;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid #34495e;
  }
  
  .nav:last-child {
    border-left: none;
    border-top: 1px solid #34495e;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
} 