/* ==================== VARIABLES CSS ==================== */
    :root {
      --primary: #62257e;
      --primary-dark: #4a1c60;
      --primary-light: #8a3ba8;
      --primary-soft: #f3eef6;
      --primary-gradient: linear-gradient(135deg, #62257e 0%, #4a1c60 100%);
      
      --secondary: #ff6b35;
      --accent: #ffd700;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
      --info: #3b82f6;
      
      --neutral-50: #fafafa;
      --neutral-100: #f5f5f5;
      --neutral-200: #e5e5e5;
      --neutral-300: #d4d4d4;
      --neutral-400: #a3a3a3;
      --neutral-500: #737373;
      --neutral-600: #525252;
      --neutral-700: #404040;
      --neutral-800: #262626;
      --neutral-900: #171717;
      
      --border: #e2e8f0;
      --border-light: #f1f5f9;
      --bg-soft: #fafbfc;
      --text: #1e293b;
      --text-muted: #64748b;
      --text-light: #94a3b8;
      
      --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
      --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
      --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
      --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
      
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 20px;
      --radius-full: 9999px;
      
      --transition-fast: 0.15s ease;
      --transition-base: 0.3s ease;
      --transition-slow: 0.5s ease;
      
      --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      
      --spacing-xs: 8px;
      --spacing-sm: 12px;
      --spacing-md: 16px;
      --spacing-lg: 24px;
      --spacing-xl: 32px;
      --spacing-2xl: 48px;
    }

    /* ==================== RESET Y BASE ==================== */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.6;
      color: var(--text);
      background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 50%, #e8e8e8 100%);
      min-height: 100vh;
      padding: 20px 16px;
      position: relative;
      overflow-x: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        radial-gradient(circle at 20% 80%, rgba(98, 37, 126, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
      pointer-events: none;
      z-index: 0;
    }

    /* ==================== CONTENEDOR PRINCIPAL ==================== */
    .bf-shell {
      max-width: 720px;
      margin: 0 auto;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    .bf-wrapper {
      background: #ffffff;
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-xl);
      overflow: hidden;
      animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
    }

    .bf-wrapper::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 6px;
      background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 50%, var(--info) 100%);
      z-index: 10;
    }

    @keyframes slideUpFade {
      0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* ==================== HEADER ==================== */
    .bf-header {
      background: var(--primary-gradient);
      padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-xl);
      text-align: center;
      color: #ffffff;
      position: relative;
      overflow: hidden;
    }

    .bf-header::after {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
      border-radius: 50%;
      animation: float 8s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      50% { transform: translate(-30px, -30px) rotate(180deg); }
    }

    .bf-logo {
      width: 140px;
      height: 140px;
      background: #ffffff;
      border-radius: 50%;
      margin: 0 auto var(--spacing-lg);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
      position: relative;
      z-index: 2;
      animation: logoPulse 3s ease-in-out infinite;
    }

    @keyframes logoPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
      50% { transform: scale(1.05); box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3); }
    }

    .bf-logo-text {
      font-size: 32px;
      font-weight: 800;
      color: var(--primary);
      letter-spacing: -1px;
      text-transform: uppercase;
    }

    .bf-title {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: var(--spacing-sm);
      letter-spacing: -0.5px;
      position: relative;
      z-index: 2;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .bf-subtitle {
      font-size: 15px;
      opacity: 0.95;
      margin-bottom: var(--spacing-md);
      font-weight: 400;
      line-height: 1.5;
      position: relative;
      z-index: 2;
    }

    .bf-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(16px);
      padding: 8px 20px;
      border-radius: var(--radius-full);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.5px;
      position: relative;
      z-index: 2;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .bf-badge i {
      font-size: 16px;
      animation: spin 3s linear infinite;
    }

    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* ==================== BARRA DE PROGRESO ==================== */
    .bf-progress-container {
      background: linear-gradient(to bottom, var(--neutral-50), var(--neutral-100));
      padding: var(--spacing-lg) var(--spacing-lg);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(10px);
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .bf-progress-label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: var(--spacing-sm);
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }

    .bf-progress-percent {
      color: var(--primary);
      font-weight: 800;
      font-size: 16px;
      font-feature-settings: 'tnum';
    }

    .bf-progress-bar-container {
      height: 10px;
      background: var(--neutral-200);
      border-radius: var(--radius-full);
      overflow: hidden;
      position: relative;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .bf-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
      background-size: 200% 100%;
      border-radius: var(--radius-full);
      transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      width: 0%;
      position: relative;
      overflow: hidden;
      animation: shimmer 2s linear infinite;
    }

    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .bf-progress-fill::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
      animation: slideProgress 1.5s ease-in-out infinite;
    }

    @keyframes slideProgress {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

    /* ==================== CUERPO DEL FORMULARIO ==================== */
    .bf-body {
      padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-2xl);
    }

    .bf-section {
      background: #ffffff;
      border: 2px solid var(--border-light);
      border-radius: var(--radius-lg);
      padding: var(--spacing-xl) var(--spacing-lg);
      margin-bottom: var(--spacing-lg);
      transition: var(--transition-base);
      position: relative;
    }

    .bf-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--primary-gradient);
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      opacity: 0;
      transition: var(--transition-base);
    }

    .bf-section:hover {
      border-color: var(--primary-light);
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }

    .bf-section:hover::before {
      opacity: 1;
    }

    .bf-section-header {
      display: flex;
      align-items: center;
      gap: var(--spacing-md);
      margin-bottom: var(--spacing-lg);
      padding-bottom: var(--spacing-md);
      border-bottom: 2px solid var(--primary-soft);
    }

    .bf-section-icon {
      width: 48px;
      height: 48px;
      background: var(--primary-gradient);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      font-size: 22px;
      flex-shrink: 0;
      box-shadow: var(--shadow-sm);
      transition: var(--transition-base);
    }

    .bf-section:hover .bf-section-icon {
      transform: scale(1.1) rotate(5deg);
    }

    .bf-section-title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
      margin: 0;
      letter-spacing: -0.3px;
    }

    .bf-section-subtitle {
      font-size: 13px;
      color: var(--text-muted);
      margin: 0;
      font-weight: 500;
    }

    /* ==================== CAMPOS DEL FORMULARIO ==================== */
    .form-label {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: var(--spacing-sm);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .required::after {
      content: '*';
      color: var(--danger);
      font-size: 18px;
      font-weight: 700;
      margin-left: 2px;
    }

    .optional-badge {
      background: var(--neutral-100);
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: var(--radius-sm);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .form-control,
    .form-select {
      border: 2px solid var(--border);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      font-size: 15px;
      color: var(--text);
      transition: var(--transition-base);
      background: #ffffff;
      font-family: var(--font-body);
      font-weight: 500;
      box-shadow: var(--shadow-xs);
    }

    .form-control:focus,
    .form-select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(98, 37, 126, 0.12), var(--shadow-sm);
      outline: none;
      background: #ffffff;
    }

    .form-control::placeholder {
      color: var(--text-light);
      font-size: 14px;
      font-weight: 400;
    }

    textarea.form-control {
      min-height: 120px;
      resize: vertical;
      line-height: 1.7;
      padding: 14px 16px;
    }

    .form-text {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
      font-weight: 500;
    }

    .form-text i {
      font-size: 14px;
      color: var(--info);
    }

    .invalid-feedback {
      font-size: 12px;
      font-weight: 600;
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .invalid-feedback i {
      font-size: 14px;
    }

    /* ==================== INPUT GROUPS ==================== */
    .input-group {
      box-shadow: var(--shadow-xs);
      border-radius: var(--radius-md);
      overflow: hidden;
    }

    .input-group .form-select,
    .input-group .form-control {
      border-radius: 0;
      box-shadow: none;
    }

    .input-group .form-select:first-child {
      border-radius: var(--radius-md) 0 0 var(--radius-md);
      border-right: none;
    }

    .input-group .form-control:last-child {
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      border-left: none;
    }

    .input-group:focus-within {
      box-shadow: 0 0 0 4px rgba(98, 37, 126, 0.12);
    }

    /* ==================== CHECKBOXES Y RADIOS ==================== */
    .form-check {
      padding: 14px 16px;
      background: var(--bg-soft);
      border: 2px solid var(--border);
      border-radius: var(--radius-md);
      margin-bottom: var(--spacing-sm);
      transition: var(--transition-base);
      cursor: pointer;
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .form-check:hover {
      background: var(--primary-soft);
      border-color: var(--primary-light);
      transform: translateX(4px);
    }

    .form-check-input {
      width: 22px;
      height: 22px;
      border: 2px solid var(--neutral-400);
      border-radius: 6px;
      cursor: pointer;
      margin: 0;
      flex-shrink: 0;
      transition: var(--transition-fast);
    }

    .form-check-input[type="radio"] {
      border-radius: 50%;
    }

    .form-check-input:checked {
      background-color: var(--primary);
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(98, 37, 126, 0.2);
    }

    .form-check-input:focus {
      box-shadow: 0 0 0 4px rgba(98, 37, 126, 0.15);
      outline: none;
    }

    .form-check-label {
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      user-select: none;
      line-height: 1.5;
      flex: 1;
    }

    .form-check:has(.form-check-input:checked) {
      background: var(--primary-soft);
      border-color: var(--primary);
    }

    /* ==================== SELECTORES ESPECIALES ==================== */
    .select-code-country {
      max-width: 140px;
      font-weight: 700;
      color: var(--primary);
    }

    /* ==================== CAMPO OCULTO ==================== */
    .bf-hidden {
      display: none !important;
    }

    .bf-field-animated {
      animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
      }
      to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
      }
    }

    /* ==================== CONTADOR DE CARACTERES ==================== */
    .char-counter {
      font-size: 11px;
      color: var(--text-light);
      font-weight: 600;
      text-align: right;
      margin-top: 4px;
      font-feature-settings: 'tnum';
    }

    /* ==================== CHECKBOX LIMIT INDICATOR ==================== */
    .checkbox-limit-msg {
      background: var(--warning);
      color: #ffffff;
      padding: 8px 12px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 700;
      margin-top: var(--spacing-sm);
      display: none;
      align-items: center;
      gap: 6px;
      animation: shake 0.4s ease;
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
    }

    /* ==================== BOTÓN DE ENVÍO ==================== */
    .bf-submit-container {
      margin-top: var(--spacing-2xl);
    }

    .bf-submit-btn {
      width: 100%;
      background: var(--primary-gradient);
      border: none;
      border-radius: var(--radius-lg);
      padding: 18px 32px;
      font-size: 17px;
      font-weight: 800;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      transition: var(--transition-base);
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(98, 37, 126, 0.35);
      letter-spacing: 0.3px;
      position: relative;
      overflow: hidden;
    }

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

    .bf-submit-btn:hover:not(:disabled)::before {
      left: 100%;
    }

    .bf-submit-btn:hover:not(:disabled) {
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(98, 37, 126, 0.5);
    }

    .bf-submit-btn:active:not(:disabled) {
      transform: translateY(-1px);
    }

    .bf-submit-btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      animation: pulse 1.5s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.7; }
      50% { opacity: 0.9; }
    }

    .bf-submit-btn i {
      font-size: 20px;
    }

    .bf-submit-btn .spinner {
      animation: rotate 1s linear infinite;
    }

    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* ==================== FOOTER ==================== */
    .bf-footer {
      background: linear-gradient(to top, var(--neutral-100), var(--neutral-50));
      padding: var(--spacing-lg) var(--spacing-lg);
      text-align: center;
      border-top: 2px solid var(--border);
    }

    .bf-footer-text {
      font-size: 12px;
      color: var(--text-muted);
      margin: 0;
      line-height: 1.7;
      font-weight: 500;
    }

    .bf-footer-icon {
      color: var(--success);
      margin-right: 4px;
      font-size: 14px;
    }

    .bf-footer-links {
      margin-top: var(--spacing-sm);
      display: flex;
      justify-content: center;
      gap: var(--spacing-md);
      flex-wrap: wrap;
    }

    .bf-footer-link {
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      font-size: 12px;
      transition: var(--transition-fast);
    }

    .bf-footer-link:hover {
      color: var(--primary-dark);
      text-decoration: underline;
    }

    /* ==================== TOAST DE ÉXITO ==================== */
    .bf-success-toast {
      position: fixed;
      top: 20px;
      right: 20px;
      background: var(--success);
      color: #ffffff;
      padding: 16px 24px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      display: none;
      align-items: center;
      gap: 12px;
      z-index: 9999;
      animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      max-width: 400px;
    }

    @keyframes slideInRight {
      from {
        opacity: 0;
        transform: translateX(100%);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .bf-success-toast i {
      font-size: 24px;
    }

    .bf-success-toast-content {
      flex: 1;
    }

    .bf-success-toast-title {
      font-weight: 700;
      font-size: 15px;
      margin-bottom: 2px;
    }

    .bf-success-toast-message {
      font-size: 13px;
      opacity: 0.95;
    }

    /* ==================== VALIDACIÓN VISUAL ==================== */
    .was-validated .form-control:invalid,
    .was-validated .form-select:invalid {
      border-color: var(--danger);
    }

    .was-validated .form-control:valid,
    .was-validated .form-select:valid {
      border-color: var(--success);
    }

    .was-validated .form-check-input:invalid {
      border-color: var(--danger);
    }

    /* ==================== RESPONSIVE DESIGN ==================== */
    @media (min-width: 576px) {
      body {
        padding: 32px 24px;
      }

      .bf-header {
        padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-2xl);
      }

      .bf-logo {
        width: 160px;
        height: 160px;
      }

      .bf-logo-text {
        font-size: 36px;
      }

      .bf-title {
        font-size: 32px;
      }

      .bf-subtitle {
        font-size: 16px;
      }

      .bf-body {
        padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-2xl);
      }

      .bf-section {
        padding: var(--spacing-2xl) var(--spacing-xl);
      }
    }

    @media (min-width: 768px) {
      .bf-shell {
        max-width: 800px;
      }
    }

    /* ==================== ACCESIBILIDAD ==================== */
    :focus-visible {
      outline: 3px solid var(--primary);
      outline-offset: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* ==================== UTILIDADES ==================== */
    .text-gradient {
      background: var(--primary-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .badge-new {
      background: var(--danger);
      color: #ffffff;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      vertical-align: middle;
      margin-left: 6px;
    }

    /* ==================== SCROLLBAR PERSONALIZADO ==================== */
    ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    ::-webkit-scrollbar-track {
      background: var(--neutral-100);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--primary);
      border-radius: var(--radius-full);
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--primary-dark);
    }

    /* ==================== RESET COMPLETO DE SELECTS ==================== */
select.form-select {
  /* Reset completo de Bootstrap */
  background-image: none !important;
  background-position: unset !important;
  background-repeat: unset !important;
  background-size: unset !important;
  padding-right: 48px !important;
  
  /* Nuestra flecha personalizada */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2362257e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px 16px !important;
  
  /* Remover estilos nativos */
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

select.form-select::-ms-expand {
  display: none !important;
}


/* ==================== FIX DEFINITIVO PARA CHECKBOXES ==================== */

/* Contenedor principal del checkbox */
.form-check {
  padding: 16px 16px 16px 48px !important; /* Más espacio a la izquierda para el checkbox */
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  transition: var(--transition-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 56px;
}

/* Checkbox POSICIONADO ABSOLUTAMENTE a la izquierda */
.form-check-input {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border: 2px solid var(--neutral-400);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

/* Checkbox checked con icono centrado */
.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px !important;
}

/* Label con alineación correcta */
.form-check-label {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  line-height: 1.4;
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==================== ESTADOS INTERACTIVOS ==================== */

/* Hover en todo el contenedor */
.form-check:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Checkbox checked - estado activo */
.form-check:has(.form-check-input:checked) {
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* Focus state */
.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(98, 37, 126, 0.15) !important;
  outline: none !important;
}

/* ==================== VALIDACIÓN ==================== */

/* Checkbox inválido */
.was-validated .form-check-input:invalid {
  border-color: var(--danger) !important;
}

.was-validated .form-check-input:invalid:checked {
  background-color: var(--danger) !important;
  border-color: var(--danger) !important;
}

/* Checkbox válido */
.was-validated .form-check-input:valid {
  border-color: var(--success) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 576px) {
  .form-check {
    padding: 14px 14px 14px 44px !important;
    min-height: 52px;
  }
  
  .form-check-input {
    left: 14px !important;
    width: 18px !important;
    height: 18px !important;
  }
  
  .form-check-label {
    font-size: 13px;
  }
}

/* ==================== GRID DE CHECKBOXES ==================== */
#valoresTiendaContainer .form-check {
  margin-bottom: 8px;
}

/* Asegurar que los checkboxes en grid tengan el mismo alto */
#valoresTiendaContainer .col-md-6 .form-check {
  height: 100%;
  min-height: 60px;
}




/* ==================== LOGO DUBTECH ==================== */
.bf-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Opción 1: Logo como imagen */
.bf-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* filter: brightness(0) invert(1); Hace el logo blanco si es necesario */
}

/* Opción 2: Logo SVG */
.bf-logo-svg {
  width: 100%;
  height: 100%;
  color: #ffffff; /* Color del logo */
}

/* Opción 3: Logo + Texto */
.bf-logo.hybrid {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bf-logo.hybrid .bf-logo-img {
  width: 50px;
  height: 50px;
}

.bf-logo.hybrid .bf-logo-text {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* Responsive */
@media (max-width: 576px) {
  .bf-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 15px;
  }
  
  .bf-logo.hybrid .bf-logo-text {
    font-size: 22px;
  }
}

/* CAPA CSS PARA INPUT TELEFONO */
/* ==================== INPUT GROUP TELEFÓNICO UNIFICADO ==================== */
/* .bf-phone-input-group {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: var(--transition-base);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.bf-phone-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(98, 37, 126, 0.12), var(--shadow-sm);
}

.bf-phone-code {
  flex: 0 0 120px;
  border: none;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  appearance: none;
  background-image: url("data:image/svg+xml,...");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
}

.bf-phone-number {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 15px;
  background: transparent;
  outline: none;
  min-width: 0;
} */

/* Estados de validación unificados */
/* .was-validated .bf-phone-input-group:has(.bf-phone-code:invalid),
.was-validated .bf-phone-input-group:has(.bf-phone-number:invalid) {
  border-color: var(--danger);
}

.was-validated .bf-phone-input-group:has(.bf-phone-code:valid):has(.bf-phone-number:valid) {
  border-color: var(--success);
} */