/* Components CSS - Componentes reutilizables */

/* Card Component */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-light);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.card-body {
  color: var(--color-gray);
}

.card-footer {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-light);
}

/* Stat Box Component */
.stat-box {
  text-align: center;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.stat-number {
  font-family: var(--font-data);
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quote Block Component */
.quote-block {
  position: relative;
  padding: var(--space-6);
  margin: var(--space-6) 0;
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 8rem;
  font-family: serif;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.quote-text {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.quote-author {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  opacity: 0.9;
}

/* Icon Box Component */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
}

.icon-box.primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.icon-box.success {
  background: var(--color-success);
  color: var(--color-white);
}

.icon-box.danger {
  background: var(--color-danger);
  color: var(--color-white);
}

.icon-box.accent {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Badge Component */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-danger {
  background: var(--color-danger);
  color: var(--color-white);
}

.badge-success {
  background: var(--color-success);
  color: var(--color-white);
}

.badge-warning {
  background: var(--color-accent);
  color: var(--color-white);
}

.badge-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Chart Container Component */
.chart-container {
  position: relative;
  width: 100%;
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.chart-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  text-align: center;
}

.chart-wrapper {
  position: relative;
  height: 300px;
}

@media (min-width: 768px) {
  .chart-wrapper {
    height: 400px;
  }
}

/* Table Component */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead {
  background: var(--color-dark);
  color: var(--color-white);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-3);
  text-align: left;
}

.comparison-table th {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tbody tr {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light);
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: var(--color-light);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

/* Responsive Table */
@media (max-width: 767px) {
  .comparison-table {
    font-size: var(--text-sm);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-2);
  }
}

/* Timeline Component */
.timeline {
  position: relative;
  padding-left: var(--space-4);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-4);
  padding-left: var(--space-4);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-primary);
}

.timeline-date {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.timeline-content {
  color: var(--color-gray);
}
