/**
 * ═══════════════════════════════════════════════════════════
 * SUPER CLIN PROFESIONAL - COMPONENTES REUTILIZABLES
 * ═══════════════════════════════════════════════════════════
 * 
 * Biblioteca de componentes con identidad corporativa oficial
 * Versión: 1.0.0
 * Fecha: 2025
 * ═══════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════
   🎯 BOTONES CORPORATIVOS
   ═══════════════════════════════════════════════════════════ */

/* Botón Principal - Rojo Corporativo */
.btn-brand-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: #FFFFFF;
  background: #EC3337;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(236, 51, 55, 0.25);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-brand-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-brand-primary:hover::before {
  left: 100%;
}

.btn-brand-primary:hover {
  background: #D12D31;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 51, 55, 0.35);
  color: #FFFFFF;
}

.btn-brand-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(236, 51, 55, 0.3);
}

.btn-brand-primary:focus-visible {
  outline: 3px solid #00A3E0;
  outline-offset: 2px;
}

/* Botón Secundario - Azul Principal */
.btn-brand-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #FFFFFF;
  background: #426BBA;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(66, 107, 186, 0.25);
  text-decoration: none;
}

.btn-brand-secondary:hover {
  background: #003896;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 56, 150, 0.35);
  color: #FFFFFF;
}

.btn-brand-secondary:focus-visible {
  outline: 3px solid #00A3E0;
  outline-offset: 2px;
}

/* Botón de Acento - Amarillo */
.btn-brand-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #000000;
  background: #FFEC17;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 236, 23, 0.3);
  text-decoration: none;
}

.btn-brand-accent:hover {
  background: #F0DD00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 236, 23, 0.4);
  color: #000000;
}

/* Botón Outline - Azul */
.btn-brand-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #426BBA;
  background: transparent;
  border: 2px solid #426BBA;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-brand-outline:hover {
  background: #426BBA;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 107, 186, 0.3);
}

/* Tamaños de botones */
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   📇 CARDS CORPORATIVAS
   ═══════════════════════════════════════════════════════════ */

.card-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(66, 107, 186, 0.1);
}

.card-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #EC3337 0%, #426BBA 50%, #00A3E0 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-brand:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #00A3E0;
}

.card-brand:hover::before {
  transform: scaleX(1);
}

.card-brand-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(66, 107, 186, 0.05) 0%, rgba(0, 163, 224, 0.05) 100%);
  border-bottom: 1px solid rgba(66, 107, 186, 0.1);
}

.card-brand-body {
  padding: 1.5rem;
  flex: 1;
}

.card-brand-footer {
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.5);
  border-top: 1px solid rgba(66, 107, 186, 0.1);
}

.card-brand-title {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #426BBA;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.card-brand-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #6B7280;
  margin: 0;
}

.card-brand-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

/* Card con imagen */
.card-brand-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F2F4F7;
}

.card-brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-brand:hover .card-brand-image img {
  transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════════════
   🏷️ BADGES Y ETIQUETAS
   ═══════════════════════════════════════════════════════════ */

.badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: #426BBA;
  color: #FFFFFF;
}

.badge-secondary {
  background: #003896;
  color: #FFFFFF;
}

.badge-accent {
  background: #EC3337;
  color: #FFFFFF;
}

.badge-highlight {
  background: #FFEC17;
  color: #000000;
}

.badge-info {
  background: #00A3E0;
  color: #000000;
}

.badge-success {
  background: #10B981;
  color: #FFFFFF;
}

.badge-warning {
  background: #F59E0B;
  color: #000000;
}

/* Badge outline */
.badge-outline-primary {
  background: transparent;
  color: #426BBA;
  border: 2px solid #426BBA;
}

.badge-outline-accent {
  background: transparent;
  color: #EC3337;
  border: 2px solid #EC3337;
}

/* ═══════════════════════════════════════════════════════════
   🎨 BANNERS PROMOCIONALES
   ═══════════════════════════════════════════════════════════ */

.banner-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #003896 0%, #426BBA 50%, #00A3E0 100%);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 56, 150, 0.25);
}

.banner-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 10% 0%, rgba(0, 163, 224, 0.3), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.banner-brand::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 236, 23, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.banner-brand-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.banner-brand-title {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.banner-brand-text {
  font-family: 'Raleway', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.95;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

/* Banner con acento rojo */
.banner-brand-accent {
  background: linear-gradient(135deg, #EC3337 0%, #D12D31 100%);
}

.banner-brand-accent::before {
  background: radial-gradient(600px 300px at 10% 0%, rgba(255, 236, 23, 0.2), transparent);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIOS CORPORATIVOS
   ═══════════════════════════════════════════════════════════ */

.form-group-brand {
  margin-bottom: 1.5rem;
}

.form-label-brand {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #374151;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.form-label-brand.required::after {
  content: '*';
  color: #EC3337;
  margin-left: 0.25rem;
  font-weight: 700;
}

.form-input-brand {
  display: block;
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background: #FFFFFF;
  border: 2px solid #D1D5DB;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.form-input-brand:hover {
  border-color: #9CA3AF;
}

.form-input-brand:focus {
  border-color: #426BBA;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(66, 107, 186, 0.1);
}

.form-input-brand::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

/* Estados de validación */
.form-input-brand.is-valid {
  border-color: #10B981;
}

.form-input-brand.is-invalid {
  border-color: #EC3337;
}

.form-feedback-brand {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.form-feedback-brand.valid {
  color: #10B981;
}

.form-feedback-brand.invalid {
  color: #EC3337;
}

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS CORPORATIVAS
   ═══════════════════════════════════════════════════════════ */

.alert-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: none;
  border-left: 4px solid;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.25rem;
}

.alert-brand-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.alert-brand-content {
  flex: 1;
}

.alert-brand-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.375rem;
}

.alert-brand-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
  color: #374151;
}

/* Variantes de alertas */
.alert-brand.alert-success {
  border-left-color: #10B981;
  background: #F0FDF4;
}

.alert-brand.alert-success .alert-brand-icon,
.alert-brand.alert-success .alert-brand-title {
  color: #059669;
}

.alert-brand.alert-danger {
  border-left-color: #EC3337;
  background: #FEF2F2;
}

.alert-brand.alert-danger .alert-brand-icon,
.alert-brand.alert-danger .alert-brand-title {
  color: #DC2626;
}

.alert-brand.alert-warning {
  border-left-color: #FFEC17;
  background: #FFFBEB;
}

.alert-brand.alert-warning .alert-brand-icon,
.alert-brand.alert-warning .alert-brand-title {
  color: #D97706;
}

.alert-brand.alert-info {
  border-left-color: #00A3E0;
  background: #F0F9FF;
}

.alert-brand.alert-info .alert-brand-icon,
.alert-brand.alert-info .alert-brand-title {
  color: #0284C7;
}

/* ═══════════════════════════════════════════════════════════
   🎯 ICONOS DECORATIVOS CON PROFUNDIDAD
   ═══════════════════════════════════════════════════════════ */

.icon-box-brand {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #426BBA 0%, #00A3E0 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 25px rgba(66, 107, 186, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-box-brand:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(66, 107, 186, 0.35);
}

.icon-box-brand i {
  font-size: 2rem;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

/* Variantes de iconos */
.icon-box-brand.icon-accent {
  background: linear-gradient(135deg, #EC3337 0%, #D12D31 100%);
  box-shadow: 
    0 10px 25px rgba(236, 51, 55, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.icon-box-brand.icon-accent:hover {
  box-shadow: 0 15px 35px rgba(236, 51, 55, 0.35);
}

.icon-box-brand.icon-highlight {
  background: linear-gradient(135deg, #FFEC17 0%, #F0DD00 100%);
  box-shadow: 
    0 10px 25px rgba(255, 236, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.icon-box-brand.icon-highlight i {
  color: #000000;
}

/* ═══════════════════════════════════════════════════════════
   📊 STATS COUNTER CON GRADIENTE
   ═══════════════════════════════════════════════════════════ */

.stat-box-brand {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(66, 107, 186, 0.1);
}

.stat-box-brand:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: #00A3E0;
}

.stat-number-brand {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #426BBA, #00A3E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label-brand {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #6B7280;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   🎬 ANIMACIONES BRAND
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeInBrand {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBrand {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(236, 51, 55, 0.25);
  }
  50% {
    box-shadow: 0 10px 35px rgba(236, 51, 55, 0.45);
  }
}

@keyframes shimmerBrand {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-fade-in-brand {
  animation: fadeInBrand 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-pulse-brand {
  animation: pulseBrand 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .banner-brand {
    padding: 2rem 1.5rem;
  }
  
  .btn-brand-primary,
  .btn-brand-secondary,
  .btn-brand-accent,
  .btn-brand-outline {
    width: 100%;
    justify-content: center;
  }
  
  .icon-box-brand {
    width: 64px;
    height: 64px;
  }
  
  .icon-box-brand i {
    font-size: 1.5rem;
  }
  
  .stat-number-brand {
    font-size: 2.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ♿ ACCESIBILIDAD
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .card-brand,
  .card-brand-image img,
  .btn-brand-primary,
  .btn-brand-secondary,
  .btn-brand-accent,
  .btn-brand-outline,
  .form-input-brand,
  .icon-box-brand,
  .stat-box-brand {
    transition: none !important;
  }
  
  .animate-fade-in-brand,
  .animate-pulse-brand {
    animation: none !important;
  }
}

