/* ============================================
   TEMA VERDE - ELEMENTOS DE ONDA
   Extensión del modern-style.css
   ============================================ */

/* Tema Verde - Variables personalizadas */
.tema-verde {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary: #14b8a6;
  --secondary-dark: #0d9488;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  
  --bg-gradient: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.tema-verde .titulo {
  /* Color sólido verde visible */
  color: #10b981;
  text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.tema-verde .titulo::after {
  background: linear-gradient(90deg, #10b981, #14b8a6);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.tema-verde .titulo:hover {
  /* Gradiente verde al hacer hover */
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.tema-verde h4 {
  border-left-color: #10b981;
  color: #059669;
}

.tema-verde h4:hover {
  color: #14b8a6;
}

.tema-verde strong {
  color: #059669;
}

.tema-verde .seccion-card::before {
  background: linear-gradient(90deg, #10b981, #14b8a6);
}

.tema-verde .seccion-card:hover {
  border-color: #10b981;
}

/* Badge específico para elementos de onda */
.badge-amplitud {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
}

.badge-longitud {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  color: white;
}

.badge-cresta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

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

/* Contenedor para fórmulas */
.formula-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #059669;
  transition: all 0.3s ease;
}

.formula-box:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

/* Cajas de definición */
.definicion-box {
  background: white;
  border-left: 5px solid #10b981;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.definicion-box:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Destacar conceptos importantes */
.concepto-importante {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
  border-left: 4px solid #10b981;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 8px;
  font-weight: 500;
}

/* Estilo para aplicación interactiva */
.app-interactiva {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
  border: 3px solid #10b981;
  transition: all 0.3s ease;
}

.app-interactiva:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  transform: translateY(-3px);
}

/* Botón de actividad */
.btn-actividad {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  color: white;
  padding: 15px 35px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.btn-actividad::before {
  content: '📄';
  margin-right: 10px;
  font-size: 1.3rem;
}

.btn-actividad:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

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

/* Grid para mostrar elementos */
.elementos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

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

.elemento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
}

.elemento-amplitud {
  border-top-color: #f59e0b;
}

.elemento-longitud {
  border-top-color: #10b981;
}

.elemento-cresta {
  border-top-color: #3b82f6;
}

.elemento-valle {
  border-top-color: #8b5cf6;
}

/* Nota informativa */
.nota-info {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nota-info::before {
  content: 'ℹ️ ';
  font-size: 1.2rem;
  margin-right: 8px;
}

/* Comparación visual */
.comparacion-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}

.comparacion-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.comparacion-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .comparacion-box {
    grid-template-columns: 1fr;
  }
  
  .elementos-grid {
    grid-template-columns: 1fr;
  }
}
