/* =========================================================
   CENTUAL PREMIUM - 04 COMPONENTS
   Botones, Cards, Forms, Icons, Badges
   ========================================================= */

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
}

/* Primary Button */
.btn-primary {
  background: var(--centual-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(27, 20, 100, 0.25);
}

.btn-primary:hover {
  background: var(--centual-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 20, 100, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: white;
  color: var(--centual-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: var(--centual-subtle);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: white;
  border-radius: 16px;
  padding: var(--space-xl);
  transition: all var(--transition-base) var(--ease-out);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Card with image */
.card-image {
  width: calc(100% + var(--space-xl) * 2);
  height: 180px;
  object-fit: cover;
  margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-lg);
  border-radius: 16px 16px 0 0;
}

/* Centered card images (for industry section) */
.card.text-center .card-image {
  width: 100%;
  height: 160px;
  margin: 0 auto var(--space-md);
  border-radius: 12px;
  display: block;
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--centual-subtle);
  border-radius: 14px;
  margin-bottom: var(--space-md);
  color: var(--centual-primary);
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-base);
}

/* Card text on dark backgrounds - higher specificity */
.card-text.text-light,
.text-on-dark .card-text,
.card-glass .card-text,
.card-glass-dark .card-text {
  color: rgba(255, 255, 255, 0.95);
}

.card-title.text-light,
.text-on-dark .card-title,
.card-glass .card-title,
.card-glass-dark .card-title {
  color: #fff;
}

.card-meta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

/* Card number (for steps) */
.card-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--centual-primary);
  opacity: 0.2;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

/* Card stat */
.card-stat {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--centual-primary);
  margin-bottom: var(--space-xs);
  line-height: 1;
}

/* Card badge */
.card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--centual-primary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card featured */
.card-featured {
  border: 2px solid var(--centual-primary);
}

/* Card glass (dark backgrounds) */
.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-glass-dark {
  background: rgba(27, 20, 100, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-xl);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-fast) var(--ease-out);
  background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--centual-primary);
  box-shadow: 0 0 0 4px rgba(27, 20, 100, 0.1);
}

.form-input::placeholder {
  color: var(--centual-muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 6px;
  background: var(--centual-subtle);
  color: var(--centual-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

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

/* ========================================
   LISTS
   ======================================== */
.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 18px;
  height: 18px;
  background: var(--centual-primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

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

.list-none li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-light);
}

.list-none li:last-child {
  border-bottom: none;
}

/* ========================================
   ICONS
   ======================================== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

.icon-md {
  width: 24px;
  height: 24px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

/* ========================================
   DIVIDERS
   ======================================== */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-xl) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--border-light);
}

/* ========================================
   SPACING UTILITIES
   ======================================== */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  .card {
    padding: var(--space-lg);
  }

  .card-image {
    width: calc(100% + var(--space-lg) * 2);
    margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-md);
    height: 160px;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
  }
}
