  /* === CARRUSEL DE MARCAS CON REINICIO SUAVE === */
  .brands-carousel.auto {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
    width: 100%;
  }

  .brands-carousel.auto .brands-track {
    display: flex;
    width: max-content;
    will-change: transform;
  }

  .brands-carousel.auto .brands-container {
    display: flex;
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-md);
  }

  /* === CONTENEDOR ESTÁTICO PARA ADMIN - HORIZONTAL === */
  .brands-container-static {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    width: 100%;
  }

  /* === ITEM DE MARCA MEJORADO === */
  .brand-item {
    flex: 0 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
    min-width: 150px;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
  }

  .brand-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #4a6fa5;
  }

  .brand-image {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .brand-item:hover .brand-image {
    transform: scale(1.1);
  }

  /* === BOTÓN ELIMINAR VISIBLE Y CERCANO === */
  .delete-brand-form {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    opacity: 0.9;
    transition: all 0.3s ease;
  }

  /* No ocultar en hover - siempre visible para admin */
  .brand-item .delete-brand-form {
    opacity: 1;
  }

  .delete-brand-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
    position: relative;
    z-index: 11;
  }

  .delete-brand-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.2) rotate(90deg);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
  }

  /* Efecto de pulso sutil para llamar atención */
  @keyframes pulseAttention {

    0%,
    100% {
      box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
    }

    50% {
      box-shadow: 0 3px 15px rgba(239, 68, 68, 0.5);
    }
  }

  .delete-brand-btn {
    animation: pulseAttention 2s infinite;
  }


  /* Efecto de desvanecimiento suave en bordes */
  .brands-carousel.auto::before,
  .brands-carousel.auto::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
  }

  .brands-carousel.auto::before {
    left: 0;
    background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.5) 40%, transparent 100%);
  }

  .brands-carousel.auto::after {
    right: 0;
    background: linear-gradient(270deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.5) 40%, transparent 100%);
  }

  /* === 🌙 Dark Mode === */
  .dark-mode .brands-carousel.auto::before {
    background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(30, 30, 30, 0.9) 20%, rgba(30, 30, 30, 0.5) 40%, transparent 100%);
  }

  .dark-mode .brands-carousel.auto::after {
    background: linear-gradient(270deg, var(--dark-bg) 0%, rgba(30, 30, 30, 0.9) 20%, rgba(30, 30, 30, 0.5) 40%, transparent 100%);
  }

  /* === MODOS PARA DIFERENTES ROLES === */
  /* Admin - diseño estático horizontal */
  .brands-carousel.static {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
  }

  .brands-carousel.static .brands-container-static {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Empleados/Visitantes - diseño carrusel */
  .brands-carousel.auto .brands-container {
    display: flex;
    gap: 40px;
  }

  /* === RESPONSIVE === */
  @media (max-width: 1200px) {
    .brands-container-static {
      gap: 25px;
    }

    .brand-item {
      min-width: 140px;
      padding: 18px;
    }

    .brand-image {
      max-height: 55px;
      max-width: 110px;
    }
  }

  @media (max-width: 992px) {
    .brands-container-static {
      gap: 20px;
    }

    .brand-item {
      min-width: 130px;
      padding: 16px;
    }

    .brand-image {
      max-height: 50px;
      max-width: 100px;
    }

    .delete-brand-form {
      top: -6px;
      right: -6px;
    }

    .delete-brand-btn {
      width: 28px;
      height: 28px;
      font-size: 14px;
    }
  }

  @media (max-width: 768px) {
    .brands-carousel.auto .brands-track {
      animation-duration: 45s;
    }

    .brands-container-static {
      gap: 15px;
      padding: 15px;
    }

    .brand-item {
      min-width: 120px;
      padding: 12px;
      border-radius: 10px;
    }

    .brand-image {
      max-height: 40px;
      max-width: 90px;
    }

    .delete-brand-form {
      top: -5px;
      right: -5px;
    }

    .delete-brand-btn {
      width: 26px;
      height: 26px;
      font-size: 13px;
    }
  }

  @media (max-width: 576px) {
    .brands-carousel.auto .brands-track {
      animation-duration: 35s;
    }

    .brands-container-static {
      gap: 12px;
      padding: 12px;
    }

    .brand-item {
      min-width: 110px;
      padding: 10px;
      border-radius: 8px;
    }

    .brand-image {
      max-height: 35px;
      max-width: 80px;
    }

    .delete-brand-form {
      top: -4px;
      right: -4px;
    }

    .delete-brand-btn {
      width: 24px;
      height: 24px;
      font-size: 12px;
    }
  }

  /* === MEJORAS DE DISEÑO ESPECÍFICAS PARA ADMIN === */
  .brands-carousel.static .brand-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .brands-carousel.static .brand-item:hover {
    z-index: 5;
  }

  /* Efecto de tarjeta elevada */
  .brands-carousel.static .brand-item {
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.07),
      0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .brands-carousel.static .brand-item:hover {
    box-shadow:
      0 10px 25px rgba(0, 0, 0, 0.15),
      0 5px 10px rgba(0, 0, 0, 0.1);
  }

  /* === MODO OSCURO PARA BRANDS === */
  .dark-mode .brand-item {
    background: var(--dark-card);
    border-color: var(--dark-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .dark-mode .brand-item:hover {
    border-color: var(--dark-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .dark-mode .delete-brand-btn {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  }

  .dark-mode .delete-brand-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }

  /* === MENSALE SIN MARCAS === */
  .no-brands-message {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 1.1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
  }

  .dark-mode .no-brands-message {
    background: var(--dark-surface);
    color: var(--dark-text-secondary);
    border-color: var(--dark-border);
  }

  /* === BOTÓN AGREGAR MARCA === */
  .btn-add-brand {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
    margin-top: 30px;
  }

  .btn-add-brand:hover {
    background: linear-gradient(135deg, #4a6fa5 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.3);
  }

  .dark-mode .btn-add-brand {
    background: linear-gradient(135deg, #2A6CA0 0%, #19507F 100%);
    box-shadow: 0 4px 12px rgba(42, 108, 160, 0.3);
  }

  .dark-mode .btn-add-brand:hover {
    background: linear-gradient(135deg, #19507F 0%, #2A6CA0 100%);
    box-shadow: 0 6px 16px rgba(42, 108, 160, 0.4);
  }

  /* === EFECTO DE CONFIRMACIÓN AL ELIMINAR === */
  .brand-item.deleting {
    animation: deleteShake 0.5s ease;
    opacity: 0.7;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  }

  @keyframes deleteShake {

    0%,
    100% {
      transform: translateX(0);
    }

    25% {
      transform: translateX(-5px);
    }

    75% {
      transform: translateX(5px);
    }
  }

  .dark-mode .brand-item.deleting {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  }

  /* === TEXTO DE CONFIRMACIÓN === */
  .confirm-delete-text {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 12;
    opacity: 0;
    animation: fadeInConfirm 0.3s ease forwards;
  }

  @keyframes fadeInConfirm {
    to {
      opacity: 1;
    }
  }

  /* === GRID RESPONSIVE PARA ADMIN === */
  @media (max-width: 1400px) {
    .brands-carousel.static .brands-container-static {
      max-width: 1100px;
    }
  }

  @media (max-width: 1200px) {
    .brands-carousel.static .brands-container-static {
      max-width: 900px;
    }
  }

  @media (max-width: 992px) {
    .brands-carousel.static .brands-container-static {
      max-width: 700px;
    }
  }

  @media (max-width: 768px) {
    .brands-carousel.static .brands-container-static {
      max-width: 100%;
      padding: 10px;
    }
  }

  /* ===================================== */
  /* 🎨 MODAL MEJORADO - FORMAL Y LLAMATIVO */
  /* ===================================== */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
  }

  .modal.show {
    opacity: 1;
  }

  .modal-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .modal.show .modal-box {
    transform: translateY(0);
    opacity: 1;
  }

  .modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a6fa5 0%, #2c3e50 100%);
    z-index: 1;
  }

  .modal-titulo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    padding: 28px 30px 20px;
    margin: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
  }

  .modal-box form {
    padding: 0 30px 30px;
  }

  .form-group {
    margin-bottom: 22px;
  }

  .form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
  }

  .form-group input[type="text"],
  .form-group input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
    box-sizing: border-box;
  }

  .form-group input[type="text"]:focus,
  .form-group input[type="file"]:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
  }

  .form-group input[type="text"]::placeholder {
    color: #94a3b8;
  }

  .o-texto {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 12px 0 8px;
    position: relative;
  }

  .o-texto::before,
  .o-texto::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e2e8f0;
  }

  .o-texto::before {
    left: 0;
  }

  .o-texto::after {
    right: 0;
  }

  /* Botones del modal */
  .modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
  }

  .btn-guardar,
  .btn-cancelar {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
  }

  .btn-guardar {
    background: linear-gradient(135deg, #4a6fa5 0%, #2c3e50 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
  }

  .btn-guardar:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 111, 165, 0.4);
  }

  .btn-cancelar {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }

  .btn-cancelar:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  }

  /* === DARK MODE PARA EL MODAL === */
  .dark-mode .modal-box {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a1f2e 100%);
    border: 1px solid var(--dark-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .dark-mode .modal-titulo {
    background: linear-gradient(135deg, #2A6CA0 0%, #19507F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .dark-mode .form-group label {
    color: #cbd5e1;
  }

  .dark-mode .form-group input[type="text"],
  .dark-mode .form-group input[type="file"] {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: #e2e8f0;
  }

  .dark-mode .form-group input[type="text"]:focus,
  .dark-mode .form-group input[type="file"]:focus {
    border-color: #2A6CA0;
    box-shadow: 0 0 0 3px rgba(42, 108, 160, 0.2);
  }

  .dark-mode .o-texto {
    color: #94a3b8;
  }

  .dark-mode .o-texto::before,
  .dark-mode .o-texto::after {
    background: #374151;
  }

  .dark-mode .btn-guardar {
    background: linear-gradient(135deg, #2A6CA0 0%, #19507F 100%);
    box-shadow: 0 4px 12px rgba(42, 108, 160, 0.3);
  }

  .dark-mode .btn-guardar:hover {
    background: linear-gradient(135deg, #19507F 0%, #2A6CA0 100%);
    box-shadow: 0 6px 16px rgba(42, 108, 160, 0.4);
  }

  .dark-mode .btn-cancelar {
    background: var(--dark-surface);
    color: #cbd5e1;
    border-color: var(--dark-border);
  }

  .dark-mode .btn-cancelar:hover {
    background: #2d3748;
    border-color: #4b5563;
  }

  /* === RESPONSIVE PARA EL MODAL === */
  @media (max-width: 576px) {
    .modal-box {
      width: 95%;
      border-radius: 12px;
    }

    .modal-titulo {
      font-size: 1.5rem;
      padding: 22px 20px 16px;
    }

    .modal-box form {
      padding: 0 20px 24px;
    }

    .form-group input[type="text"],
    .form-group input[type="file"] {
      padding: 12px 14px;
      font-size: 0.95rem;
    }

    .modal-buttons {
      flex-direction: column;
      gap: 12px;
    }

    .btn-guardar,
    .btn-cancelar {
      width: 100%;
    }
  }
