/* ============================================
   TEMA NARANJA - PERIODO Y FRECUENCIA
   Extensión del modern-style.css
   ============================================ */

.tema-naranja {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --secondary: #f97316;
  --secondary-dark: #ea580c;
  --accent: #fb923c;
  --accent-dark: #f97316;
  
  --bg-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.tema-naranja .titulo {
  color: #d97706;
}

.tema-naranja .titulo::after {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.tema-naranja .titulo:hover::after {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.tema-naranja .titulo:hover {
  color: #f97316;
  text-shadow: 0 2px 12px rgba(249, 115, 22, 0.5);
}

.tema-naranja h4 {
  border-left-color: #f59e0b;
  color: #d97706;
}

.tema-naranja h4:hover {
  color: #f97316;
}

.tema-naranja strong {
  color: #d97706;
}

.tema-naranja .seccion-card::before {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.tema-naranja .seccion-card:hover {
  border-color: #f59e0b;
}

/* Badges específicos tema naranja */
.badge-periodo {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: white;
}

.badge-frecuencia {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: white;
}

.badge-velocidad {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: white;
}

/* ============================================
   TEMA MORADO - ACTIVIDADES
   Extensión del modern-style.css
   ============================================ */

.tema-morado {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --secondary: #a855f7;
  --secondary-dark: #9333ea;
  --accent: #c084fc;
  --accent-dark: #a855f7;
  
  --bg-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.tema-morado .titulo {
  color: #7c3aed;
}

.tema-morado .titulo::after {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.tema-morado .titulo:hover::after {
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.tema-morado .titulo:hover {
  color: #a855f7;
  text-shadow: 0 2px 12px rgba(168, 85, 247, 0.5);
}

.tema-morado h4 {
  border-left-color: #8b5cf6;
  color: #7c3aed;
}

.tema-morado h4:hover {
  color: #a855f7;
}

.tema-morado strong {
  color: #7c3aed;
}

.tema-morado .seccion-card::before {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.tema-morado .seccion-card:hover {
  border-color: #8b5cf6;
}

/* Badges específicos tema morado */
.badge-actividad {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
}

.badge-experimental {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  color: white;
}

.badge-ejercicio {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  color: white;
}

/* ============================================
   ESTILOS COMUNES PARA FÓRMULAS
   ============================================ */

.formula-destacada {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
  text-align: center;
  transition: all 0.3s ease;
}

.formula-destacada:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.formula-destacada img {
  margin: 10px auto;
  display: block;
}

/* Cajas de ejemplo */
.ejemplo-box {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ejemplo-box:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Grid para simulaciones y apps */
.simulacion-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.simulacion-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.simulacion-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Botones de actividad mejorados */
.btn-actividad-moderna {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin: 10px 5px;
  border: none;
  cursor: pointer;
}

.btn-actividad-moderna::before {
  content: '📄 ';
  font-size: 1.2rem;
}

.btn-actividad-moderna:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-actividad-moderna:active {
  transform: translateY(-1px);
}

/* Estilo específico para actividad experimental */
.btn-experimental::before {
  content: '🔬 ';
}

/* Grid de actividades */
.actividades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.actividad-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  border-top: 4px solid transparent;
}

.actividad-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-top-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .actividades-grid {
    grid-template-columns: 1fr;
  }
}
