/* ==========================================================================
   AGENTE CONVERSACIONAL AUTONIZA - ESTILOS
   Soporte Híbrido:
   - PC (Split View): Panel Visual a la Izquierda + Chat a la Derecha
   - Mobile: Experiencia completa 100% dentro del Chat (estilo WhatsApp / Autivo)
   ========================================================================== */

:root {
  --aut-bg-dark: #101012;
  --aut-bg-surface: #171719;
  --aut-bg-card: #202124;
  --aut-bg-card-hover: #27282c;
  --aut-bg-bot-bubble: #25262a;
  --aut-bg-user-bubble: #1270b6;
  
  --aut-text-primary: #f3f4f6;
  --aut-text-secondary: #c0c7d2;
  --aut-text-muted: #8b949e;
  
  --aut-blue: #1270b6;
  --aut-blue-light: #9dcaff;
  --aut-blue-hover: #0f5d99;
  --aut-gold: #ceb60c;
  --aut-gold-light: #f1dc4f;
  --aut-red: #e10b17;
  --aut-green: #20a19c;
  --aut-border: rgba(255, 255, 255, 0.08);
  --aut-border-focus: rgba(18, 112, 182, 0.6);
  
  --aut-radius-lg: 18px;
  --aut-radius-md: 12px;
  --aut-radius-sm: 8px;
  --aut-radius-full: 9999px;
  
  --aut-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --aut-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --aut-font-heading: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--aut-font-sans);
  background-color: var(--aut-bg-dark);
  color: var(--aut-text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Franja Multicolor Oficial Autoniza */
.autoniza-multi-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(to right,
    #2e2d31 0%, #2e2d31 14.28%,
    #606060 14.28%, #606060 28.57%,
    #1270b6 28.57%, #1270b6 42.85%,
    #e10b17 42.85%, #e10b17 57.14%,
    #20a19c 57.14%, #20a19c 71.42%,
    #101529 71.42%, #101529 85.71%,
    #ceb60c 85.71%, #ceb60c 100%
  );
  flex-shrink: 0;
}

/* ==========================================================================
   LAYOUT MAESTRO: SPLIT SCREEN (PC)
   ========================================================================== */
.autoniza-app-container {
  width: 100%;
  max-width: 1680px;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: var(--aut-bg-surface);
}

/* Lado Izquierdo: Escenario Visual */
.autoniza-visual-panel {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #141416;
  border-right: 1px solid var(--aut-border);
  position: relative;
  overflow: hidden;
}

.visual-panel-topbar {
  background-color: #1a1a1c;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--aut-border);
  flex-shrink: 0;
}

.visual-brand-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.visual-panel-nav {
  display: flex;
  gap: 8px;
}

.visual-nav-btn {
  background: transparent;
  color: var(--aut-text-secondary);
  border: 1px solid var(--aut-border);
  padding: 8px 16px;
  border-radius: var(--aut-radius-full);
  font-family: var(--aut-font-heading);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.visual-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.visual-nav-btn.active {
  background-color: var(--aut-blue);
  color: #fff;
  border-color: var(--aut-blue);
  box-shadow: 0 4px 12px rgba(18, 112, 182, 0.35);
}

.visual-stage-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.visual-stage-content::-webkit-scrollbar {
  width: 7px;
}

.visual-stage-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* ==========================================================================
   COMPONENTES DEL PANEL VISUAL IZQUIERDO (DESKTOP)
   ========================================================================== */

.visual-hero-banner {
  background: linear-gradient(135deg, #1b1b1e 0%, #17212d 100%);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-lg);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual-hero-banner::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(18, 112, 182, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.visual-hero-title {
  font-family: var(--aut-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.4;
  padding-bottom: 8px;
}

.visual-hero-nizito {
  position: absolute;
  bottom: -5px;
  right: 20px;
  height: 150px;
  width: auto;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0px 8px 10px rgba(0,0,0,0.4));
}

.visual-hero-subtitle {
  font-size: 14.5px;
  color: var(--aut-text-secondary);
  max-width: 650px;
  line-height: 1.5;
}

.visual-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.visual-hero-tag {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--aut-blue-light);
  font-weight: 600;
}

/* Filtros de Marcas */
.visual-brand-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-filter-pill {
  background-color: var(--aut-bg-card);
  border: 1px solid var(--aut-border);
  color: var(--aut-text-secondary);
  padding: 8px 16px;
  border-radius: var(--aut-radius-full);
  font-family: var(--aut-font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.brand-filter-pill:hover {
  background-color: var(--aut-bg-card-hover);
  color: #fff;
}

.brand-filter-pill.active {
  background-color: var(--aut-blue);
  color: #fff;
  border-color: var(--aut-blue);
}

/* Grid de Modelos */
.visual-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.visual-model-card {
  background-color: var(--aut-bg-card);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  cursor: pointer;
}

.visual-model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 112, 182, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.visual-model-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.visual-model-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s;
}

.visual-model-card:hover .visual-model-img {
  transform: scale(1.05);
}

.visual-model-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: var(--aut-gold-light);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(206, 182, 12, 0.3);
  text-transform: uppercase;
}

.visual-model-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.visual-model-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--aut-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.visual-model-name {
  font-family: var(--aut-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 2px 0 6px 0;
}

.visual-model-specs {
  font-size: 12px;
  color: var(--aut-text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.visual-model-price {
  font-family: var(--aut-font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--aut-gold-light);
  margin-top: auto;
  margin-bottom: 10px;
}

.visual-model-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-visual-details, .btn-visual-chat {
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--aut-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-visual-details {
  background-color: transparent;
  color: #fff;
  border: 1px solid var(--aut-border);
}

.btn-visual-details:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-visual-chat {
  background-color: var(--aut-blue);
  color: #fff;
  border: none;
}

.btn-visual-chat:hover {
  background-color: var(--aut-blue-hover);
}

/* ==========================================================================
   VISTA SHOWCASE / FICHA EN GRANDE DEL VEHÍCULO (DESKTOP)
   ========================================================================== */
.showcase-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

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

.showcase-back-btn {
  background: transparent;
  border: none;
  color: var(--aut-text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: var(--aut-radius-sm);
  transition: all 0.2s;
}

.showcase-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.showcase-hero-stage {
  background: radial-gradient(circle at center, #24262c 0%, #151518 70%);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.showcase-hero-img {
  max-width: 90%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s;
}

.showcase-hero-img:hover {
  transform: scale(1.02);
}

.showcase-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-header-left {
  display: flex;
  flex-direction: column;
}

.showcase-brand-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--aut-blue-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.showcase-title {
  font-family: var(--aut-font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.showcase-category {
  font-size: 14px;
  color: var(--aut-text-secondary);
}

.showcase-price-block {
  text-align: right;
}

.showcase-price-label {
  font-size: 12px;
  color: var(--aut-text-muted);
}

.showcase-price-val {
  font-family: var(--aut-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--aut-gold-light);
}

/* Grilla de Especificaciones en Grande */
.showcase-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1200px) {
  .showcase-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.showcase-spec-box {
  background-color: var(--aut-bg-card);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-md);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.showcase-spec-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: rgba(18, 112, 182, 0.15);
  color: var(--aut-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-spec-meta {
  display: flex;
  flex-direction: column;
}

.showcase-spec-label {
  font-size: 11px;
  color: var(--aut-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.showcase-spec-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

/* Equipamiento Destacado */
.showcase-features-card {
  background-color: var(--aut-bg-card);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-md);
  padding: 20px;
}

.showcase-features-title {
  font-family: var(--aut-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.showcase-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--aut-text-secondary);
}

.showcase-features-list .material-symbols-outlined {
  color: var(--aut-green);
  font-size: 18px;
}

/* Barra de Acciones del Showcase */
.showcase-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.btn-showcase-quote {
  flex: 1;
  background-color: var(--aut-blue);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: var(--aut-radius-sm);
  font-family: var(--aut-font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-showcase-quote:hover {
  background-color: var(--aut-blue-hover);
  box-shadow: 0 4px 15px rgba(18, 112, 182, 0.4);
}

.btn-showcase-chat {
  background-color: transparent;
  color: var(--aut-text-primary);
  border: 1px solid var(--aut-border);
  padding: 13px 20px;
  border-radius: var(--aut-radius-sm);
  font-family: var(--aut-font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-showcase-chat:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   LADO DERECHO: CHAT CONVERSACIONAL
   ========================================================================== */
.autoniza-chat-panel {
  width: 30%;
  min-width: 360px;
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--aut-bg-surface);
  position: relative;
  overflow: hidden;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.3);
}

.mobile-only-bar {
  display: none;
}

/* Header Estilo WhatsApp */
.chat-header {
  background-color: #1a1a1c;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--aut-border);
  z-index: 10;
  flex-shrink: 0;
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.chat-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1270b6, #20a19c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(18, 112, 182, 0.3);
}

.chat-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-online-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background-color: #10b981;
  border: 2px solid #1a1a1c;
  border-radius: 50%;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-title {
  font-family: var(--aut-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--aut-text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.verified-icon {
  color: #38bdf8;
  font-size: 16px !important;
}

.chat-header-status {
  font-size: 12px;
  color: var(--aut-text-muted);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  background: transparent;
  border: none;
  color: var(--aut-text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.header-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Menú Desplegable */
.chat-dropdown-menu {
  position: absolute;
  top: 60px;
  right: 16px;
  background-color: var(--aut-bg-card);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  width: 210px;
  z-index: 50;
  overflow: hidden;
}

.chat-dropdown-menu.active {
  display: flex;
}

.chat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--aut-text-secondary);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.chat-dropdown-item .material-symbols-outlined {
  font-size: 18px;
}

/* Área de Mensajes del Chat */
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #141416;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  scroll-behavior: smooth;
}

/* Fila de Mensajes */
.message-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 90%;
  animation: fadeInMsg 0.25s ease-out;
}

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

.message-row.bot {
  align-self: flex-start;
  flex-direction: row;
}

.chat-bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
  background-color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-bot-avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.chat-bot-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-row.user {
  align-self: flex-end;
}

/* Burbujas de Texto */
.chat-bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}

.message-row.bot .chat-bubble {
  background-color: var(--aut-bg-bot-bubble);
  color: var(--aut-text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.message-row.user .chat-bubble {
  background-color: var(--aut-bg-user-bubble);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble p {
  margin-bottom: 6px;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble strong {
  color: #ffffff;
  font-weight: 600;
}

.message-time {
  display: block;
  font-size: 10.5px;
  color: var(--aut-text-muted);
  text-align: right;
  margin-top: 4px;
}

.response-time-badge {
  font-size: 10px;
  color: var(--aut-blue-light);
  background: rgba(18, 112, 182, 0.15);
  padding: 2px 6px;
  border-radius: 10px;
}

.message-row.user .message-time {
  color: rgba(255, 255, 255, 0.75);
}

/* Indicador Escribiendo (Typing) */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  background-color: var(--aut-bg-bot-bubble);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background-color: var(--aut-text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Botones Rápidos (Quick Replies Chips) */
.quick-replies-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  animation: fadeInMsg 0.3s ease;
}

.quick-reply-btn {
  background-color: rgba(18, 112, 182, 0.12);
  color: var(--aut-blue-light);
  border: 1px solid rgba(18, 112, 182, 0.35);
  padding: 8px 14px;
  border-radius: 20px;
  font-family: var(--aut-font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.quick-reply-btn:hover {
  background-color: var(--aut-blue);
  color: #fff;
  border-color: var(--aut-blue);
  transform: translateY(-1px);
}

.quick-reply-btn.highlight {
  background-color: rgba(206, 182, 12, 0.15);
  color: var(--aut-gold-light);
  border-color: rgba(206, 182, 12, 0.4);
}

.quick-reply-btn.highlight:hover {
  background-color: var(--aut-gold);
  color: #121213;
}

/* Carrusel de Vehículos en el Chat (Móvil & Chips en Desktop) */
.vehicle-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 14px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 6px;
  max-width: 100%;
}

.vehicle-carousel::-webkit-scrollbar {
  height: 6px;
}

.vehicle-carousel::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.vehicle-card {
  min-width: 240px;
  max-width: 240px;
  background-color: var(--aut-bg-card);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 112, 182, 0.4);
}

.vehicle-card-img-wrap {
  width: 100%;
  height: 130px;
  background-color: #171719;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vehicle-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.vehicle-card:hover .vehicle-card-img {
  transform: scale(1.04);
}

.vehicle-badge-category {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: var(--aut-gold-light);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(206, 182, 12, 0.3);
  text-transform: uppercase;
}

.vehicle-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vehicle-brand {
  font-size: 11px;
  color: var(--aut-blue-light);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vehicle-title {
  font-family: var(--aut-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 2px 0 6px 0;
}

.vehicle-specs-list {
  list-style: none;
  font-size: 11.5px;
  color: var(--aut-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.vehicle-specs-list li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vehicle-specs-list .material-symbols-outlined {
  font-size: 14px;
  color: var(--aut-green);
}

.vehicle-price-tag {
  margin-top: auto;
  font-family: var(--aut-font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--aut-gold-light);
  margin-bottom: 10px;
}

.vehicle-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-card-details, .btn-card-quote {
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--aut-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-card-details {
  background-color: transparent;
  color: var(--aut-text-secondary);
  border: 1px solid var(--aut-border);
}

.btn-card-details:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-card-quote {
  background-color: var(--aut-blue);
  color: #fff;
  border: none;
}

.btn-card-quote:hover {
  background-color: var(--aut-blue-hover);
}

/* Tarjeta de Cotización en el Chat */
.quote-card {
  background-color: var(--aut-bg-card);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-md);
  padding: 16px;
  margin-top: 8px;
  width: 100%;
}

.quote-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--aut-blue-light);
  font-family: var(--aut-font-heading);
  font-size: 15px;
  font-weight: 700;
}

.quote-form-group {
  margin-bottom: 10px;
}

.quote-form-group label {
  display: block;
  font-size: 11.5px;
  color: var(--aut-text-muted);
  margin-bottom: 4px;
}

.quote-input, .quote-select {
  width: 100%;
  background-color: #171719;
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-sm);
  color: #fff;
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.quote-input:focus, .quote-select:focus {
  border-color: var(--aut-blue);
}

.quote-privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--aut-text-muted);
  margin: 12px 0;
}

.quote-privacy-check input {
  margin-top: 3px;
}

.quote-privacy-check a {
  color: var(--aut-blue-light);
  text-decoration: underline;
}

.btn-submit-quote {
  width: 100%;
  background-color: var(--aut-blue);
  color: #fff;
  border: none;
  border-radius: var(--aut-radius-sm);
  padding: 11px;
  font-family: var(--aut-font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s;
}

.btn-submit-quote:hover {
  background-color: var(--aut-blue-hover);
}

.btn-submit-quote:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modal Emergente de Sedes para Móvil */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  z-index: 100;
  animation: fadeInMsg 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content-drawer {
  background-color: var(--aut-bg-surface);
  border-top-left-radius: var(--aut-radius-lg);
  border-top-right-radius: var(--aut-radius-lg);
  border: 1px solid var(--aut-border);
  border-bottom: none;
  width: 100%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--aut-border);
}

.modal-header h3 {
  font-family: var(--aut-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--aut-text-muted);
  cursor: pointer;
  display: flex;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.local-modal-card {
  background-color: var(--aut-bg-card);
  border: 1px solid var(--aut-border);
  border-radius: var(--aut-radius-md);
  padding: 14px;
}

.local-modal-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--aut-blue-light);
  background-color: rgba(18, 112, 182, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.local-modal-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.local-modal-address {
  font-size: 12.5px;
  color: var(--aut-text-secondary);
  margin-bottom: 8px;
}

.local-modal-phones {
  font-size: 12px;
  color: var(--aut-text-muted);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.local-modal-actions {
  display: flex;
  gap: 8px;
}

.btn-local-dir, .btn-local-call {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--aut-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-local-dir {
  background-color: rgba(206, 182, 12, 0.15);
  color: var(--aut-gold-light);
  border: 1px solid rgba(206, 182, 12, 0.3);
}

.btn-local-call {
  background-color: rgba(18, 112, 182, 0.15);
  color: var(--aut-blue-light);
  border: 1px solid rgba(18, 112, 182, 0.3);
}

/* Barra Inferior de Entrada (Input Bar) */
.chat-input-bar {
  background-color: #1a1a1c;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--aut-border);
  flex-shrink: 0;
}

.chat-input-pill {
  flex: 1;
  background-color: #25262a;
  border-radius: var(--aut-radius-full);
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.chat-input-pill:focus-within {
  border-color: var(--aut-border-focus);
}

.chat-text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: var(--aut-font-sans);
}

.chat-text-input::placeholder {
  color: var(--aut-text-muted);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--aut-blue);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background-color: var(--aut-blue-hover);
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  background-color: #2e3035;
  color: var(--aut-text-muted);
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE: EN MÓVIL (< 960px) SE OCULTA EL PANEL VISUAL Y EL CHAT ES 100%
   ========================================================================== */
@media (max-width: 960px) {
  .autoniza-visual-panel {
    display: none !important;
  }
  
  .autoniza-chat-panel {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    box-shadow: none;
  }
  
  .mobile-only-bar {
    display: block;
  }
}

.visual-disclaimer {
  font-size: 11px;
  color: var(--aut-text-muted);
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--aut-border);
}
.visual-disclaimer a {
  color: var(--aut-blue-light);
  text-decoration: none;
}
.visual-disclaimer a:hover {
  text-decoration: underline;
}
