  /* Fallback por si no tienes estilos para .modal1 */
  .modal1{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.5); z-index:9999; }
  .modal1.show{ display:flex; }
  .modal-success #formModalTitle{ color:#16a34a; }  /* Verde */
  .modal-error   #formModalTitle{ color:#b91c1c; }  /* Rojo  */
  .modal1 {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem;
}

.modal1-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 10% auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.3); /* fondo translúcido */
  border-radius: 15px;
  overflow: hidden;
  z-index: 1;
  backdrop-filter: blur(0);
}

.modal1-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/car-featured-img2.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  z-index: -1;
}

/* Estilos para el botón de cierre */
.close1 {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  background-color: purple;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ✅ Responsive para pantallas pequeñas */
@media (max-width: 575.98px) {
  .modal1-content {
    margin-top: 20%;
    padding: 15px;
    border-radius: 10px;
  }

  .modal1-message {
    font-size: 1.4rem !important;
  }

  .text-dark1 {
    font-size: 1rem !important;
  }

  input.form-control {
    font-size: 1rem;
  }

  button.btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .close1 {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

  /* ====== Estilos scoped con prefijo gc- ====== */
  .gc-modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.6); z-index:99999; }
  .gc-modal.gc-show{ display:flex; }

  .gc-wrap{
    width:min(96vw, 1000px);
    background:#fff; border-radius:16px; padding:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    position:relative;
  }
  .gc-close{
    position:absolute; right:16px; top:16px; width:36px; height:36px;
    border:none; border-radius:999px; cursor:pointer;
    background:#111827; color:#fff; font-size:22px; line-height:1;
    display:flex; align-items:center; justify-content:center;
  }
  .gc-title{ margin:0 0 10px; font-size:1.1rem; font-weight:700; color:#111827; }

  .gc-main{
    position:relative; width:100%;
    aspect-ratio:16/9; background:#000;
    display:flex; align-items:center; justify-content:center;
    border-radius:12px; overflow:hidden;
  }
  #gcGalleryMainImg{ max-width:100%; max-height:100%; object-fit:contain; }

  .gc-nav{
    position:absolute; top:50%; transform:translateY(-50%);
    width:44px; height:44px; border:none; border-radius:999px;
    background:rgba(17,24,39,.7); color:#fff; font-size:28px;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
  }
  .gc-nav--prev{ left:10px; }
  .gc-nav--next{ right:10px; }

  .gc-counter{ margin:10px 0; text-align:center; font-size:.95rem; color:#374151; }

  .gc-thumbs{
    display:grid; gap:8px;
    grid-template-columns:repeat(auto-fill, minmax(80px, 1fr));
  }
  .gc-thumbs button{
    padding:0; border:2px solid transparent; border-radius:8px;
    overflow:hidden; cursor:pointer; background:#fff;
  }
  .gc-thumbs img{ width:100%; height:70px; object-fit:cover; display:block; }
  .gc-thumbs button.gc-active{ border-color:#6d28d9; }

  @media (max-width:480px){ .gc-thumbs img{ height:56px; } }

  /* Mejora UX en la tarjeta */
  .gc-card{ cursor:pointer; }
  .gc-card:focus{ outline:2px solid #6d28d9; outline-offset:2px; border-radius:12px; }
  /* ====== Mobile: modal casi a pantalla completa y foto grande ====== */
@media (max-width: 768px) {
  .gc-modal { padding: 8px; }

  .gc-wrap{
    width: 100vw;
    max-width: 100vw;
    max-height: 96dvh;          /* respeta barra del navegador móvil */
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
  }

  .gc-title{
    font-size: 1rem;
    margin-right: 44px;         /* espacio para el botón cerrar */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gc-close{
    right: 10px; top: 10px;
    width: 34px; height: 34px; font-size: 20px;
  }

  /* La imagen principal manda: más altura real y sin aspect-ratio fijo */
  .gc-main{
    flex: 1 1 auto;
    height: 60dvh;              /* ¡foto grande! ajusta 55–70dvh si quieres */
    aspect-ratio: auto;
    border-radius: 12px;
  }
  #gcGalleryMainImg{
    width: auto; height: 100%;  /* llena en alto, respeta proporción */
    max-width: 100%;
  }

  .gc-nav{
    width: 40px; height: 40px; font-size: 24px;
  }

  .gc-counter{ margin: 6px 0 8px; }

  /* Thumbs en 1 sola fila con scroll horizontal (ahorra alto) */
  .gc-thumbs{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .gc-thumbs button{ flex: 0 0 84px; }
  .gc-thumbs img{ height: 64px; }
}

/* Opcional: en móviles muy pequeños, aún más alto para la foto */
@media (max-width: 420px){
  .gc-main{ height: 65dvh; }
  .gc-thumbs img{ height: 58px; }
}

/* ===== SIDEBAR GENERAL ===== */
.header-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    padding: 18px 18px 14px;
    overflow: hidden;
    box-sizing: border-box;
}

.nk-sidebar-top {
    flex: 0 0 auto;
}

.nk-sidebar-middle {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-top: 12px;
    box-sizing: border-box;
}

/* Scroll bonito */
.nk-sidebar-middle::-webkit-scrollbar {
    width: 6px;
}

.nk-sidebar-middle::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
}

.nk-sidebar-middle::-webkit-scrollbar-track {
    background: transparent;
}

/* ===== LOGO Y TITULOS ===== */
.navbar-header {
    text-align: center;
    margin-bottom: 14px;
}

.navbar-header .navbar-brand {
    display: block;
    text-decoration: none;
}

.navbar-header .logo-icon {
    max-width: 82px;
    height: auto;
    margin-bottom: 8px;
}

.navbar-header h1 {
    font-size: 32px;
    line-height: 1.05;
    margin: 0 0 6px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.navbar-header h3 {
    font-size: 15px;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
    color: #fff;
}

/* ===== BOTONES DE USUARIO ===== */
.nk-user-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 10px;
    width: 100%;
}

.nk-user-sidebar-nav .nk-nav-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-sizing: border-box;
}

.nk-user-sidebar-nav .nk-nav-btn i {
    font-size: 12px;
    opacity: 0.9;
    min-width: 14px;
    text-align: center;
}

.nk-user-sidebar-nav .nk-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.25);
    filter: brightness(1.03);
    color: #fff;
    text-decoration: none;
}

.nk-user-sidebar-nav .nk-nav-btn:focus {
    outline: 2px solid rgba(255,255,255,0.18);
    outline-offset: 2px;
    color: #fff;
    text-decoration: none;
}

.nk-user-sidebar-nav .nk-nav-btn-login {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%);
}

.nk-user-sidebar-nav .nk-nav-btn-profile {
    background: linear-gradient(135deg, #065f46 0%, #10b981 50%, #34d399 100%);
}

.nk-user-sidebar-nav .nk-nav-btn-sell {
    background: linear-gradient(135deg, #92400e 0%, #f59e0b 50%, #fcd34d 100%);
}

.nk-user-sidebar-nav .nk-nav-btn-appointments {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #5eead4 100%);
}

.nk-user-sidebar-nav .nk-nav-btn-admin {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a78bfa 100%);
}

.nk-user-sidebar-nav .nk-nav-btn-logout {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #6b7280 100%);
}

/* ===== MENU PRINCIPAL ===== */
.nav-wrap {
    margin-top: 6px;
}

#menu-primary {
    margin: 0;
    padding: 0;
}

#menu-primary li {
    margin-bottom: 8px;
}

#menu-primary li:last-child {
    margin-bottom: 0;
}

#menu-primary li a {
    font-size: 14px;
    letter-spacing: 0.8px;
}

/* ===== FOOTER ===== */
.exalt-sidebar-menu-footer {
    flex: 0 0 auto;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.exalt-sidebar-menu-footer .copyright-txt {
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

.exalt-sidebar-menu-footer .footer-social {
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .header-inner {
        padding: 14px 14px 12px;
    }

    .navbar-header {
        margin-bottom: 12px;
    }

    .navbar-header .logo-icon {
        max-width: 70px;
        margin-bottom: 6px;
    }

    .navbar-header h1 {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .navbar-header h3 {
        font-size: 13px;
    }

    .nk-user-sidebar-nav {
        gap: 7px;
        margin: 12px 0 8px;
    }

    .nk-user-sidebar-nav .nk-nav-btn {
        min-height: 35px;
        padding: 8px 10px;
        font-size: 12px;
        gap: 8px;
    }

    .nk-user-sidebar-nav .nk-nav-btn i {
        font-size: 11px;
        min-width: 12px;
    }

    #menu-primary li {
        margin-bottom: 7px;
    }

    #menu-primary li a {
        font-size: 13px;
    }

    .exalt-sidebar-menu-footer {
        margin-top: 8px;
        padding-top: 10px;
    }

    .exalt-sidebar-menu-footer .copyright-txt {
        font-size: 11px;
        line-height: 1.3;
    }

    .exalt-sidebar-menu-footer .footer-social {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 12px 12px 10px;
    }

    .navbar-header .logo-icon {
        max-width: 62px;
    }

    .navbar-header h1 {
        font-size: 22px;
    }

    .navbar-header h3 {
        font-size: 12px;
    }

    .nk-user-sidebar-nav .nk-nav-btn {
        min-height: 34px;
        font-size: 11.5px;
        padding: 7px 10px;
    }

    #menu-primary li a {
        font-size: 12px;
    }

    .exalt-sidebar-menu-footer .copyright-txt {
        font-size: 10.5px;
    }
}
/* ===== ALERTA INDEX ===== */
.gc-index-alert-wrap{
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 0 15px;
}

.gc-index-alert{
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.gc-index-alert-success{
    background: rgba(16,185,129,0.14);
    color: #d1fae5;
    border: 1px solid rgba(16,185,129,0.30);
}

.gc-index-alert-info{
    background: rgba(59,130,246,0.14);
    color: #dbeafe;
    border: 1px solid rgba(59,130,246,0.30);
}

.gc-index-alert-warning{
    background: rgba(245,158,11,0.14);
    color: #fef3c7;
    border: 1px solid rgba(245,158,11,0.30);
}

.gc-index-alert-danger{
    background: rgba(239,68,68,0.14);
    color: #fee2e2;
    border: 1px solid rgba(239,68,68,0.30);
}

/* ===== BADGE TU AUTO ===== */
.gc-owner-badge{
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #042f2e;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* ===== ACCIONES EN CARD ===== */
.gc-card-actions{
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gc-interest-form{
    margin: 0;
    width: 100%;
}

.gc-action-btn{
    width: 100%;
    min-height: 42px;
    border: none;
    outline: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
    padding: 10px 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.gc-action-btn:hover{
    transform: translateY(-1px);
    text-decoration: none;
}

.gc-action-btn-interest{
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}

.gc-action-btn-login{
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
}

.gc-action-btn-admin{
    color: #fff;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a78bfa 100%);
}

.gc-action-btn-owned{
    color: #ecfdf5;
    background: linear-gradient(135deg, #065f46 0%, #10b981 50%, #34d399 100%);
    cursor: default;
    opacity: .95;
}

.gc-action-btn-done{
    color: #e0f2fe;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #38bdf8 100%);
    cursor: default;
    opacity: .95;
}

.gc-action-btn:disabled{
    cursor: default;
    filter: saturate(.95);
}

@media (max-width: 991.98px){
    .gc-index-alert-wrap{
        margin-top: 14px;
    }
}
