  /* ══════════════════════════════════════════
     SISTEMA DE GRID RESPONSIVO (LO HICE PARECIDO A BOOTSTRAP PERO SIN TANTA LIBRERIA)
     Breakpoints:
       xs  < 576px   → 1 col
       sm  ≥ 576px   → 2 cols
       md  ≥ 768px   → 4 cols (configurable)
       lg  ≥ 992px   → 4 cols
  ══════════════════════════════════════════ */
 
  .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -9px;
    margin-right: -9px;
  }
 
  [class*="col-"] {
    padding-left: 9px;
    padding-right: 9px;
    width: 100%;
  }
 
  /* xs (default): todo full width */
  .col-1  { width: 8.333%; }
  .col-2  { width: 16.666%; }
  .col-3  { width: 25%; }
  .col-4  { width: 33.333%; }
  .col-6  { width: 50%; }
  .col-8  { width: 66.666%; }
  .col-9  { width: 75%; }
  .col-12 { width: 100%; }
 
  /* sm ≥ 576px */
  @media (min-width: 576px) {
    .col-sm-1  { width: 8.333%; }
    .col-sm-2  { width: 16.666%; }
    .col-sm-3  { width: 25%; }
    .col-sm-4  { width: 33.333%; }
    .col-sm-6  { width: 50%; }
    .col-sm-8  { width: 66.666%; }
    .col-sm-9  { width: 75%; }
    .col-sm-12 { width: 100%; }
  }
 
  /* md ≥ 768px */
  @media (min-width: 768px) {
    .col-md-1  { width: 8.333%; }
    .col-md-2  { width: 16.666%; }
    .col-md-3  { width: 25%; }
    .col-md-4  { width: 33.333%; }
    .col-md-6  { width: 50%; }
    .col-md-8  { width: 66.666%; }
    .col-md-9  { width: 75%; }
    .col-md-12 { width: 100%; }
  }
 
  /* lg ≥ 992px */
  @media (min-width: 992px) {
    .col-lg-1  { width: 8.333%; }
    .col-lg-2  { width: 16.666%; }
    .col-lg-3  { width: 25%; }
    .col-lg-4  { width: 33.333%; }
    .col-lg-6  { width: 50%; }
    .col-lg-8  { width: 66.666%; }
    .col-lg-9  { width: 75%; }
    .col-lg-12 { width: 100%; }
  }
 
  /* xl ≥ 1200px */
  @media (min-width: 1200px) {
    .col-xl-1  { width: 8.333%; }
    .col-xl-2  { width: 16.666%; }
    .col-xl-3  { width: 25%; }
    .col-xl-4  { width: 33.333%; }
    .col-xl-6  { width: 50%; }
    .col-xl-8  { width: 66.666%; }
    .col-xl-9  { width: 75%; }
    .col-xl-12 { width: 100%; }
  }
 
  /* col full span dentro de row (equivalente a Bootstrap's col-12) */
  .col-full {
    width: 100%;
    padding-left: 9px;
    padding-right: 9px;
  }
 
  /* ── HERO ── */
  .comp-hero {
    position: relative; height: 220px;
    display: flex; align-items: center; justify-content: center;
    background: url('https://images.unsplash.com/photo-1571260899304-425eee4c7efc?w=1400&q=80') center/cover no-repeat;
  }
  .comp-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,46,90,.92) 0%, rgba(192,57,43,.7) 100%);
  }
  .comp-hero-content {
    position: relative; z-index: 2;
    text-align: center; color: var(--blanco); padding: 0 5%;
  }
  .comp-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: var(--blanco); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    padding: 5px 16px; border-radius: 30px; margin-bottom: 12px;
  }
  .comp-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900; margin-bottom: 8px;
  }
  .comp-hero-content h1 span { color: var(--rojo-claro); }
  .comp-hero-content p { font-size: 0.95rem; color: rgba(255,255,255,.8); }
 
  /* ── WRAP ── */
  .comp-wrap {
    max-width: 1100px; margin: 0 auto;
    padding: 40px 5% 80px;
    display: flex; flex-direction: column; gap: 32px;
  }
 
  /* ── BLOQUE ── */
  .comp-block {
    background: var(--blanco);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    overflow: hidden;
  }
  .comp-block-header {
    display: flex; align-items: center; gap: 16px;
    padding: 24px 32px;
    background: var(--azul);
    color: var(--blanco);
  }
  .comp-block-header > i {
    font-size: 1.6rem; color: var(--rojo-claro);
    flex-shrink: 0;
  }
  .comp-block-header h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; }
  .comp-block-header p { font-size: 0.78rem; color: rgba(255,255,255,.65); }
 
  /* ── CATEGORÍA ── */
  .comp-category {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .comp-category:last-child { border-bottom: none; }
  .comp-category-label {
    display: inline-block;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; color: var(--rojo);
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--rojo);
  }
 
  /* ── FILAS ── */
  .comp-row {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  }
  .comp-row--wrap { gap: 14px; }
 
  /* ── BOTONES ── */
  .btn-primary, .btn-secondary, .btn-ghost, .btn-danger, .btn-success {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 30px;
    font-family: var(--font); font-size: 0.84rem; font-weight: 700;
    cursor: pointer; border: 2px solid transparent;
    transition: all .2s ease;
  }
  .btn-primary { background: var(--rojo); color: var(--blanco); border-color: var(--rojo); }
  .btn-primary:hover:not(:disabled) { background: var(--rojo-claro); border-color: var(--rojo-claro); transform: translateY(-2px); }
 
  .btn-secondary { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
  .btn-secondary:hover:not(:disabled) { background: var(--azul-medio); border-color: var(--azul-medio); transform: translateY(-2px); }
 
  .btn-ghost { background: transparent; color: var(--azul); border-color: var(--azul); }
  .btn-ghost:hover:not(:disabled) { background: var(--azul); color: var(--blanco); transform: translateY(-2px); }
 
  .btn-danger { background: transparent; color: #c0392b; border-color: #c0392b; }
  .btn-danger:hover:not(:disabled) { background: #c0392b; color: var(--blanco); transform: translateY(-2px); }
 
  .btn-success { background: var(--verde); color: var(--blanco); border-color: var(--verde); }
  .btn-success:hover:not(:disabled) { background: #2ecc71; border-color: #2ecc71; transform: translateY(-2px); }
 
  .btn-sm { padding: 7px 16px; font-size: 0.76rem; }
  .btn-lg { padding: 13px 30px; font-size: 0.95rem; }
 
  button:disabled { opacity: .45; cursor: not-allowed; }
 
  /* Circulares */
  .btn-circle-primary, .btn-circle-secondary, .btn-circle-ghost, .btn-circle-danger {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer; border: 2px solid transparent;
    font-family: var(--font); transition: all .2s;
  }
  .btn-circle-primary { background: var(--rojo); color: var(--blanco); border-color: var(--rojo); }
  .btn-circle-primary:hover { background: var(--rojo-claro); transform: translateY(-2px); }
  .btn-circle-secondary { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
  .btn-circle-secondary:hover { background: var(--azul-medio); transform: translateY(-2px); }
  .btn-circle-ghost { background: transparent; color: var(--azul); border-color: var(--azul); }
  .btn-circle-ghost:hover { background: var(--azul); color: var(--blanco); transform: translateY(-2px); }
  .btn-circle-danger { background: transparent; color: var(--rojo); border-color: var(--rojo); }
  .btn-circle-danger:hover { background: var(--rojo); color: var(--blanco); transform: translateY(-2px); }
 
  /* ── FORM GRID (ahora usa .row + .col-*) ── */
  .comp-form-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -9px;
    margin-right: -9px;
    gap: 0;
    row-gap: 18px;
  }
 
  .comp-field {
    display: flex; flex-direction: column; gap: 6px;
    padding-left: 9px;
    padding-right: 9px;
    /* xs: 1 col */
    width: 100%;
  }
  /* sm: 2 cols */
  @media (min-width: 576px) {
    .comp-field { width: 50%; }
    .comp-field--full { width: 100%; }
  }
  /* md: 4 cols */
  @media (min-width: 768px) {
    .comp-field { width: 25%; }
    .comp-field--full { width: 100%; }
  }
 
  /* Override manual col-md classes dentro de comp-form-grid */
  .comp-form-grid .col-md-3  { width: 25%; }
  .comp-form-grid .col-md-4  { width: 33.333%; }
  .comp-form-grid .col-md-6  { width: 50%; }
  .comp-form-grid .col-md-12 { width: 100%; }
  @media (max-width: 767px) {
    .comp-form-grid .col-md-3,
    .comp-form-grid .col-md-4,
    .comp-form-grid .col-md-6 { width: 50%; }
    .comp-form-grid .col-md-12 { width: 100%; }
  }
  @media (max-width: 575px) {
    .comp-form-grid .col-md-3,
    .comp-form-grid .col-md-4,
    .comp-form-grid .col-md-6,
    .comp-form-grid .col-md-12 { width: 100%; }
  }
 
  .comp-field label {
    font-size: 0.76rem; font-weight: 700; color: var(--azul);
  }
  .req { color: var(--rojo); }
 
  /* Input wrap */
  .input-wrap {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid #dde2ec;
    border-radius: 10px; padding: 10px 14px;
    background: var(--blanco);
    transition: border-color .2s, box-shadow .2s;
  }
  .input-wrap:focus-within {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(26,46,90,.1);
  }
  .input-wrap i { color: #aab4cc; font-size: 0.85rem; flex-shrink: 0; }
  .input-wrap input {
    border: none; outline: none; width: 100%;
    font-family: var(--font); font-size: 0.84rem; color: var(--negro);
    background: transparent;
  }
  .input-wrap input::placeholder { color: #bcc4d4; }
 
  .input-success { border-color: var(--verde); }
  .input-success:focus-within { box-shadow: 0 0 0 3px rgba(39,174,96,.12); }
  .input-success i { color: var(--verde); }
 
  .input-error { border-color: var(--rojo); }
  .input-error:focus-within { box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
  .input-error i { color: var(--rojo); }
 
  .input-disabled { background: var(--gris-claro); cursor: not-allowed; }
  .input-disabled input { cursor: not-allowed; color: var(--gris); }
 
  .field-msg { font-size: 0.72rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
  .msg-success { color: var(--verde); }
  .msg-error { color: var(--rojo); }
  .field-hint { font-size: 0.7rem; color: var(--gris); }
 
  /* ── SELECT ── */
  .select-wrap {
    position: relative;
    border: 1.5px solid #dde2ec;
    border-radius: 10px; overflow: hidden;
    background: var(--blanco);
    transition: border-color .2s, box-shadow .2s;
  }
  .select-wrap:focus-within {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(26,46,90,.1);
  }
  .select-wrap select {
    width: 100%; padding: 11px 40px 11px 14px;
    border: none; outline: none; background: transparent;
    font-family: var(--font); font-size: 0.84rem; color: var(--negro);
    appearance: none; cursor: pointer;
  }
  .select-wrap > i {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: #aab4cc; font-size: 0.75rem; pointer-events: none;
  }
  .select-disabled { background: var(--gris-claro); cursor: not-allowed; }
  .select-disabled select { color: var(--gris); cursor: not-allowed; }
 
  /* ── TEXTAREA ── */
  textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid #dde2ec; border-radius: 10px;
    font-family: var(--font); font-size: 0.84rem; color: var(--negro);
    resize: vertical; outline: none;
    transition: border-color .2s, box-shadow .2s;
  }
  textarea:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(26,46,90,.1);
  }
  textarea::placeholder { color: #bcc4d4; }
  textarea.textarea-error { border-color: var(--rojo); }
  textarea.textarea-error:focus { box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
 
  /* ── RADIO ── */
  .radio-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.84rem; font-weight: 600; color: var(--azul);
    cursor: pointer; user-select: none;
  }
  .radio-label input[type="radio"] { display: none; }
  .radio-custom {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #dde2ec; background: var(--blanco);
    flex-shrink: 0; transition: border-color .2s;
    position: relative;
  }
  .radio-custom::after {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--rojo); transition: transform .2s;
  }
  .radio-label input:checked + .radio-custom { border-color: var(--rojo); }
  .radio-label input:checked + .radio-custom::after { transform: translate(-50%,-50%) scale(1); }
  .radio-disabled { opacity: .45; cursor: not-allowed; }
 
  /* ── CHECKBOX ── */
  .check-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.84rem; font-weight: 600; color: var(--azul);
    cursor: pointer; user-select: none;
  }
  .check-label input[type="checkbox"] { display: none; }
  .check-custom {
    width: 20px; height: 20px; border-radius: 5px;
    border: 2px solid #dde2ec; background: var(--blanco);
    flex-shrink: 0; transition: all .2s;
    display: flex; align-items: center; justify-content: center;
  }
  .check-custom::after {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 0.65rem; color: var(--blanco);
    opacity: 0; transition: opacity .2s;
  }
  .check-label input:checked + .check-custom {
    background: var(--rojo); border-color: var(--rojo);
  }
  .check-label input:checked + .check-custom::after { opacity: 1; }
  .check-disabled { opacity: .45; cursor: not-allowed; }
 
  /* ── TOGGLE ── */
  .toggle-label {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.84rem; font-weight: 600; color: var(--azul);
    cursor: pointer; user-select: none;
  }
  .toggle-label input[type="checkbox"] { display: none; }
  .toggle-track {
    width: 46px; height: 26px; border-radius: 30px;
    background: #dde2ec; position: relative;
    transition: background .25s;
    flex-shrink: 0;
  }
  .toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--blanco);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    transition: left .25s;
  }
  .toggle-label input:checked + .toggle-track { background: var(--rojo); }
  .toggle-label input:checked + .toggle-track .toggle-thumb { left: 23px; }
  .toggle-disabled { opacity: .45; cursor: not-allowed; }
 
  /* ── ALERTAS ── */
  .comp-alerts { display: flex; flex-direction: column; gap: 12px; }
  .alert {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: 10px;
    font-size: 0.84rem; font-weight: 600; border-left: 4px solid transparent;
  }
  .alert i { font-size: 1rem; flex-shrink: 0; }
  .alert-info { background: #eaf2fb; color: #1a5276; border-color: #2e86c1; }
  .alert-info i { color: #2e86c1; }
  .alert-success { background: #eafaf1; color: #1e8449; border-color: var(--verde); }
  .alert-success i { color: var(--verde); }
  .alert-warning { background: #fef9e7; color: #9a7d0a; border-color: var(--amarillo); }
  .alert-warning i { color: var(--amarillo); }
  .alert-danger { background: #fdedec; color: #922b21; border-color: var(--rojo); }
  .alert-danger i { color: var(--rojo); }
 
  /* ── RESPONSIVE BLOQUE ── */
  @media (max-width: 560px) {
    .comp-block-header { padding: 20px; }
    .comp-category { padding: 20px; }
    .comp-row { gap: 10px; }
  }
