/* Hero Title Styles */
.tool-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  position: relative;
}

.tool-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f97316, #db2777); /* Naranja a Rosa vibrante */
  color: #ffffff;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(2db, 39, 119, 0.4);
  font-size: 28px;
}

.tool-hero .page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.tool-hero .gradient-text {
  background: linear-gradient(135deg, #f97316, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tool-hero .page-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* SEO Article Styles */
.seo-article { max-width: 800px; margin-top: 40px; margin-left: auto; margin-right: auto; }
.article-section { 
  background: var(--bg-card); 
  backdrop-filter: blur(12px); 
  border: 1px solid var(--border-color); 
  border-radius: 16px; 
  padding: 32px; 
  margin-bottom: 24px; 
}
.article-section h2 { 
  font-size: 24px; 
  margin-bottom: 20px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  color: var(--text-primary); 
}
.article-section h2 i { 
  color: #f97316; 
  background: rgba(249, 115, 22, 0.15); 
  padding: 12px; 
  border-radius: 12px; 
  font-size: 20px; 
}
.article-section p { 
  color: var(--text-secondary); 
  line-height: 1.8; 
  margin-bottom: 16px; 
  font-size: 15px; 
}

.trimmer-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.drop-zone {
  border: 2px dashed var(--accent-primary);
  border-radius: 16px;
  padding: 50px 20px;
  text-align: center;
  background: rgba(59, 130, 246, 0.05);
  transition: all 0.3s;
  cursor: pointer;
}

.drop-zone.dragover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #10B981;
}

.cloud-icon {
  font-size: 60px;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.drop-zone h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.drop-zone p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-primary:hover { box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }
.btn-primary:active { transform: scale(0.95); }

.editor-area.hidden { display: none; }

.waveform-wrapper {
  position: relative;
  width: 100%;
  height: 150px;
  background: var(--bg-main);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 25px;
}

#waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.selection-box {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(59, 130, 246, 0.2);
  border-left: 2px solid var(--accent-primary);
  border-right: 2px solid var(--accent-primary);
  pointer-events: none;
}

.handle {
  position: absolute;
  top: 0;
  width: 20px;
  height: 100%;
  background: rgba(59, 130, 246, 0.5);
  pointer-events: auto;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.handle::after {
  content: '';
  width: 4px;
  height: 30px;
  background: white;
  border-radius: 2px;
}

.handle-left { left: 0; transform: translateX(-50%); }
.handle-right { right: 0; transform: translateX(50%); }

.playhead {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: #EF4444;
  box-shadow: 0 0 5px #EF4444;
  pointer-events: none;
  display: none;
  z-index: 5;
}

.time-controls {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}

@media(max-width: 600px) {
  .time-controls { flex-direction: column; }
}

.time-box {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  flex: 1;
}
.time-box.highlight {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-primary);
}

.time-box label {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.time-box span {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-box.highlight span { color: var(--accent-primary); }

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-success, .btn-danger {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: transform 0.1s, opacity 0.2s;
  justify-content: center;
}

.btn-success { background: #10B981; color: white; }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.btn-success:hover { opacity: 0.9; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }
.btn-success:active, .btn-danger:active { transform: scale(0.95); }
