/* ===================================
   FORTUNE MASTERS - Hoja de Estilos (Actualizada)
   Tema: Financiero + Histórico
   =================================== */

/* Variables de Color */
:root {
  --primary-green: #10B981;
  --primary-green-dark: #059669;
  --alert-red: #EF4444;
  --alert-red-dark: #DC2626;
  --warning-gold: #F59E0B;
  --warning-gold-dark: #D97706;
  --primary-blue: #3B82F6;
  --primary-blue-dark: #2563EB;
  --neutral-gray: #6B7280;
  --dark-gray: #374151;
  --light-gray: #F3F4F6;
  --bg-dark: #1a1a2e;
  --bg-light: #16213e;
  --text-light: #F9FAFB;
  --text-dark: #1F2937;
  --gold: #F59E0B;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --paper-bg: #F5E6D3;
  --paper-text: #2D3748;
  --paper-ink: #1A202C;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
}

/* Pantallas */
.screen {
  display: none;
  padding: 2rem;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

/* ===================================
   PANTALLA DE INICIO
   =================================== */
#start-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero {
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.title {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}

.subtitle {
  font-size: 1.8rem;
  color: var(--neutral-gray);
  margin-bottom: 2rem;
  font-weight: 300;
}

.level-indicator {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.level-badge {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 1rem;
  opacity: 0.5;
  transition: all 0.3s;
}

.level-badge.active {
  opacity: 1;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Botones */
.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

.btn-large {
  padding: 1.25rem 3.5rem;
  font-size: 1.3rem;
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-light);
  border: 2px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
}

.btn-danger {
  background: linear-gradient(135deg, var(--alert-red), var(--alert-red-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-gold), var(--warning-gold-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ===================================
   PANTALLA DE CONTEXTO
   =================================== */
.content-container {
  max-width: 1000px;
  margin: 0 auto;
}

.historical-header {
  text-align: center;
  margin-bottom: 3rem;
}

.era-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--gold);
  color: var(--dark-gray);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.historical-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.era-subtitle {
  font-size: 1.2rem;
  color: var(--neutral-gray);
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: center;
}

.story-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.historical-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  transition: transform 0.3s;
}

.historical-image:hover {
  transform: scale(1.02);
}

.placeholder-art {
  font-size: 8rem;
  opacity: 0.8;
}

.story-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  border: 2px solid var(--primary-green);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.money-display {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-green);
}

.small-text {
  font-size: 0.9rem;
  color: var(--neutral-gray);
  margin-top: 0.5rem;
}

/* ===================================
   PANTALLA DE JUEGO - CÁLCULO MANUAL
   =================================== */
.game-container {
  max-width: 1200px;
  margin: 0 auto;
}

.game-header {
  display: flex;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-info .label {
  color: var(--neutral-gray);
  font-size: 1rem;
}

.score-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.challenge-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.challenge-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-green);
}

.offer-box {
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--primary-green);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.offer-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.offer-details {
  display: grid;
  gap: 1rem;
}

.offer-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.offer-label {
  color: var(--neutral-gray);
}

.offer-value {
  font-weight: 600;
  color: var(--text-light);
}

.offer-value.highlight {
  color: var(--gold);
}

/* CÁLCULO MANUAL - SIN FÓRMULA */
.calculator-section {
  margin-top: 2rem;
}

.calculator-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.calc-instructions {
  color: var(--neutral-gray);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--primary-blue);
}

.manual-calc {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  padding: 2rem;
}

.calc-row {
  margin-bottom: 1.5rem;
}

.calc-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

.input-with-currency {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.input-with-currency input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  font-size: 1.2rem;
}

.input-with-currency input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.currency-label {
  color: var(--neutral-gray);
  font-size: 1rem;
  min-width: 80px;
}

.calc-feedback {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.calc-feedback.correct {
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid var(--primary-green);
}

.calc-feedback.incorrect {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid var(--alert-red);
}

/* Decision Cards */
.decision-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gold);
}

.decision-prompt {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--neutral-gray);
}

.calc-summary {
  text-align: center;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--primary-green);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.calc-summary strong {
  color: var(--primary-green);
  font-size: 1.2rem;
}

.decision-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.decision-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.decision-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.decision-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.decision-card p {
  color: var(--neutral-gray);
  margin-bottom: 1.5rem;
}

.card-pros, .card-cons {
  text-align: left;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.card-pros strong {
  color: var(--primary-green);
}

.card-cons strong {
  color: var(--alert-red);
}

.card-pros ul, .card-cons ul {
  list-style: none;
  margin-top: 0.5rem;
}

.card-pros li, .card-cons li {
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.btn-decision {
  width: 100%;
  margin-top: 1rem;
}

/* ===================================
   PANTALLA DE PERIÓDICO - NOTICIAS
   =================================== */
.newspaper {
  background: var(--paper-bg);
  color: var(--paper-text);
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.newspaper-header {
  text-align: center;
  border-bottom: 3px double var(--paper-ink);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.newspaper-title {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--paper-ink);
  margin-bottom: 0.5rem;
  font-family: 'Times New Roman', serif;
}

.newspaper-date {
  font-size: 1rem;
  color: var(--neutral-gray);
  font-style: italic;
}

.newspaper-motto {
  font-size: 0.9rem;
  color: var(--neutral-gray);
  font-style: italic;
  margin-top: 0.5rem;
}

.newspaper-headline {
  text-align: center;
  border-bottom: 2px solid var(--paper-ink);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.newspaper-headline h1 {
  font-size: 2.5rem;
  color: var(--paper-ink);
  line-height: 1.2;
  margin: 0;
}

.newspaper-content {
  column-count: 1;
  text-align: justify;
  line-height: 1.8;
}

.article-intro {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.newspaper-content p {
  margin-bottom: 1rem;
  text-indent: 2rem;
}

.newspaper-content p:first-of-type {
  text-indent: 0;
}

.newspaper-content blockquote {
  margin: 1.5rem 2rem;
  padding: 1rem;
  border-left: 4px solid var(--gold);
  background: rgba(245, 158, 11, 0.1);
  font-style: italic;
}

.newspaper-content cite {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--neutral-gray);
}

.opportunity-box {
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.opportunity-box h3 {
  color: var(--primary-green-dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-family: 'Georgia', serif;
}

.opportunity-box p {
  text-indent: 0;
  margin-bottom: 1rem;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.offer-list li {
  padding: 0.5rem 0;
  text-indent: 0;
}

.opportunity-note {
  font-style: italic;
  color: var(--neutral-gray);
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Decisiones del mercado */
.market-decision {
  max-width: 900px;
  margin: 3rem auto 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
}

.market-decision h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gold);
}

.decision-context {
  text-align: center;
  color: var(--neutral-gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.panic-decisions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.panic-decisions .btn {
  min-width: 200px;
}

/* ===================================
   PANTALLA DE RESULTADOS
   =================================== */
.result-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.result-icon {
  font-size: 6rem;
  margin-bottom: 1rem;
  animation: bounce 0.6s ease-out;
}

.result-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.result-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
}

.result-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-stat .stat-label {
  color: var(--neutral-gray);
  font-size: 0.9rem;
}

.result-stat .money-display {
  font-size: 2.5rem;
}

.result-stat .currency {
  color: var(--neutral-gray);
  font-size: 1rem;
}

.result-arrow {
  font-size: 2rem;
  color: var(--alert-red);
}

.feedback-section {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.feedback-section h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.lesson-section {
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.lesson-section h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.lesson-key-points {
  margin-top: 1rem;
}

.lesson-key-points h4 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.lesson-key-points ul {
  list-style: none;
}

.lesson-key-points li {
  padding: 0.5rem 0;
  color: var(--neutral-gray);
}

.badge-section {
  margin-bottom: 2rem;
}

.badge-section h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.badge-earned {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
  border: 2px solid var(--gold);
  padding: 1rem 2rem;
  border-radius: 12px;
}

.badge-icon {
  font-size: 3rem;
}

.badge-name {
  font-size: 1.2rem;
  font-weight: 600;
}

.score-summary {
  margin-bottom: 2rem;
}

.score-summary p {
  font-size: 1.5rem;
}

.score-summary .score-display {
  color: var(--gold);
  font-size: 2.5rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Utilidades */
.hidden {
  display: none !important;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===================================
   ESTILOS ESPECÍFICOS NIVEL 2
   =================================== */

.level-2 {
  --bg-dark: #0f1419;
  --bg-light: #1a1f2e;
}

/* Nivel completado en badge */
.level-badge.completed {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  opacity: 1;
}

.level-badge.completed::before {
  content: '✓ ';
}

/* Capital carry */
.capital-carry {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.capital-carry p {
  margin: 0;
  font-size: 1.1rem;
}

/* Margin explanation */
.margin-explanation {
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.margin-explanation h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.example-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.example-box ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.risk-warning {
  background: rgba(239, 68, 68, 0.2);
  border-left: 4px solid var(--alert-red);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0 8px 8px 0;
}

/* Debt display */
.debt-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--alert-red);
}

/* Phase 2 */
#phase-2 {
  margin-top: 2rem;
}

/* Phone call styling */
.phone-call {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.phone-call::before {
  content: '📞';
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 2rem;
  background: var(--bg-dark);
  padding: 0 10px;
}

.phone-call blockquote {
  font-style: italic;
  margin: 0;
  padding-top: 1rem;
  color: var(--text-light);
}

/* Margin details */
.margin-details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.margin-details h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.margin-details ul {
  list-style: none;
}

.margin-details li {
  padding: 0.5rem 0;
}

/* Danger card */
.decision-card.danger {
  border-color: var(--alert-red);
}

.decision-card.danger:hover {
  border-color: var(--alert-red);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.decision-card.safe {
  border-color: var(--primary-green);
}

.decision-card.safe:hover {
  border-color: var(--primary-green);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* ajuste screen */
#ajuste-screen {
  background: linear-gradient(180deg, #1a0000 0%, #0a0000 100%);
}

.ajuste-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}

.ajuste-header {
  margin-bottom: 3rem;
}

.date-badge {
  display: inline-block;
  background: var(--alert-red);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.ajuste-title {
  font-size: 4rem;
  color: var(--alert-red);
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
  margin-bottom: 0.5rem;
  animation: pulse 2s infinite;
}

.ajuste-subtitle {
  font-size: 1.5rem;
  color: var(--neutral-gray);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* News ticker */
.news-ticker {
  background: var(--alert-red);
  color: white;
  padding: 1rem;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.ticker-item {
  display: inline-block;
  animation: ticker 10s linear infinite;
  margin-right: 3rem;
  font-weight: 600;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ajuste stats */
.ajuste-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.ajuste-stats .stat {
  text-align: center;
}

.ajuste-stats .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--alert-red);
}

.ajuste-stats .stat-label {
  color: var(--neutral-gray);
  font-size: 0.9rem;
}

/* Peak value in results */
.result-stat.peak {
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  padding: 1rem;
}

/* Debt section */
.debt-section {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid var(--alert-red);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.debt-section h3 {
  color: var(--alert-red);
  margin-bottom: 0.5rem;
}

/* ===================================
   COLORES DE RESULTADO DE CAPITAL
   =================================== */

/* Capital final: BANCARROTA (negativo) */
.money-display.negative {
  color: var(--alert-red) !important;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Capital final: PÉRDIDA (positivo pero menor a inicial) */
.money-display.warning {
  color: var(--warning-gold) !important;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Capital final: GANANCIA (mayor a inicial) */
.money-display.positive {
  color: var(--primary-green) !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Lesson grid */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lesson-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.lesson-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.lesson-card h4 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.lesson-card p {
  color: var(--neutral-gray);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ajuste-title {
    font-size: 2.5rem;
  }

  .ajuste-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .phone-call::before {
    font-size: 1.5rem;
    top: -10px;
  }
}


/* ===================================
   NIVEL 3 - ESTILOS ADICIONALES
   =================================== */

.calculation-options {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.calc-option-box {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.calc-option-box.tech {
  border-color: var(--alert-red);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
}

.formula-hint {
  color: var(--primary-blue);
  font-style: italic;
  font-size: 0.9rem;
}

.portfolio-allocation {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.total-allocation {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 2px solid transparent;
}

.total-allocation.valid {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--primary-green);
}

.total-allocation.invalid {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--alert-red);
}

.allocation-slider {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slider-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--card-border);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-blue);
  cursor: pointer;
}

.projections-reference {
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--primary-green);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.proj-value {
  font-weight: 700;
  color: var(--primary-green);
}

.proj-value.high-return {
  color: var(--alert-red);
}

.portfolio-breakdown {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
