/* ============================================
   Automotores Marcos — Custom Styles
   Premium Automotive Landing Page
   ============================================ */

/* ---------- Base & Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0B1426;
}

::-webkit-scrollbar-thumb {
  background: #3B82F6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #60A5FA;
}

/* ---------- Navbar ---------- */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.navbar.scrolled .nav-link {
  color: #1e293b !important;
}

.navbar.scrolled .nav-link:hover {
  color: #3B82F6 !important;
}

.navbar.scrolled .nav-cta {
  background: #1B079C !important;
  color: #ffffff !important;
}

.navbar.scrolled .logo-text {
  color: #0B1426 !important;
}

.navbar.scrolled .logo-accent {
  color: #3B82F6 !important;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3B82F6;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger Animation */
.hamburger span {
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Hero Section ---------- */
.hero-gradient {
  background: linear-gradient(
    180deg,
    rgba(5, 10, 21, 0.92) 0%,
    rgba(11, 20, 38, 0.75) 40%,
    rgba(11, 20, 38, 0.60) 100%
  );
}

.hero-title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- Vehicle Cards ---------- */
.vehicle-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

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

.vehicle-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-card:hover .vehicle-cta {
  background: #3B82F6;
  color: #ffffff;
}

/* ---------- Vehicle Modal ---------- */
.modal-overlay {
  background: rgba(11, 20, 38, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ---------- Search & Filter ---------- */
.filter-btn:hover,
.filter-btn.active {
  background: #3B82F6 !important;
  color: #ffffff !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.year-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.year-btn.active-year {
  background: #3B82F6 !important;
  color: #ffffff !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.year-btn:not(.active-year):hover {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #60A5FA !important;
}

#brand-filter {
  transition: all 0.3s ease;
}

#brand-filter:focus {
  border-color: #3B82F6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#reset-filters-btn {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  border-color: #3B82F6;
}

/* ---------- Benefits Cards ---------- */
.benefit-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.benefit-card:hover .benefit-icon {
  background: #3B82F6;
  color: #ffffff;
  transform: scale(1.1);
}

.benefit-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Form Styles ---------- */
.form-input {
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.form-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-input.vehicle-auto {
  background: #eff6ff;
  border-color: #3B82F6;
  color: #1e3a5f;
  font-weight: 600;
}

.submit-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  animation: whatsappPulse 2.5s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  animation: none;
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ---------- Section Styles ---------- */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #3B82F6;
  border-radius: 2px;
}

/* ---------- Footer ---------- */
.footer-link {
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #60A5FA;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ---------- Loading Skeleton ---------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ---------- Toast Notification ---------- */
.toast {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .vehicle-card:hover {
    transform: translateY(-4px);
  }

  .hero-title {
    font-size: 2.2rem !important;
  }

  .section-title::after {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem !important;
  }
}

/* ---------- Logo Styles ---------- */
.logo-text {
  transition: color 0.4s ease;
}

.logo-accent {
  transition: color 0.4s ease;
}

/* Image aspect ratio containers */
.aspect-vehicle {
  aspect-ratio: 4 / 3;
}

/* ---------- Card Photo Carousel ---------- */
.card-carousel {
  position: relative;
}

.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: #0B1426;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 12px;
}

.card-carousel:hover .card-arrow {
  opacity: 1;
}

.card-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.card-arrow.left { left: 8px; }
.card-arrow.right { right: 8px; }

.card-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}

.card-dot.active {
  background: #ffffff;
  width: 18px;
  border-radius: 3px;
}

/* ---------- Modal Arrows ---------- */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #0B1426;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 16px;
}

.modal-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.modal-arrow.left { left: 12px; }
.modal-arrow.right { right: 12px; }

.modal-photo-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 5;
}

/* ---------- Logo Ticker ---------- */
.logo-ticker {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll linear infinite;
  align-items: center;
  gap: 4rem; /* Gap between logos */
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

.logo-item {
  flex: 0 0 auto;
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-item {
    filter: grayscale(0%);
    opacity: 1;
  }
}

/* ---------- Review Ticker ---------- */
.reviews-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.reviews-track {
  display: flex;
  width: max-content;
  animation: scroll-ticker linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- Offer Badge Premium ---------- */
.offer-badge {
  position: absolute;
  top: 15px;
  right: -35px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white;
  padding: 8px 45px;
  transform: rotate(40deg);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: offer-shimmer 3s infinite;
}

@keyframes offer-shimmer {
  0% { left: -100%; }
  30% { left: 100%; }
  100% { left: 100%; }
}

.offer-badge i {
  margin-right: 6px;
  font-size: 13px;
  animation: offer-tag-shake 1s ease-in-out infinite;
}

@keyframes offer-tag-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.offer-price-highlight {
  position: relative;
  display: inline-block;
  color: #ef4444;
  animation: price-pulse 2s infinite;
}

@keyframes price-pulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0px rgba(239, 68, 68, 0); }
  50% { transform: scale(1.05); text-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
}

@keyframes pulse-gentle {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); }
  50% { transform: scale(1.005); box-shadow: 0 25px 50px rgba(249, 115, 22, 0.15); }
}

.animate-bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }
.animate-pulse-gentle { animation: pulse-gentle 4s ease-in-out infinite; }

.vehicle-hot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(249, 115, 22, 0.1);
  pointer-events: none;
  z-index: 1;
}

.vehicle-new {
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.vehicle-new:hover {
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.vehicle-new::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  z-index: 10;
}

.vehicle-reserved {
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.vehicle-reserved::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  z-index: 10;
}

.animate-spin-slow {
  animation: spin 3s linear infinite;
}

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

.review-slide {
  flex: 0 0 400px;
  padding: 0 1.25rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #3B82F6;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.star-rating {
  color: #fbbf24;
  margin-bottom: 1.25rem;
}

.review-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
  font-size: 1.05rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-info h4 {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0;
}

.author-info p {
  font-size: 0.9rem;
  color: #3B82F6;
  margin: 0;
  font-weight: 500;
}

/* ============================================
   🔥 HOT SALE SECTION STYLES
   ============================================ */

/* Main Section Background */
.hotsale-section {
  background: linear-gradient(180deg, 
    #000a14 0%, 
    #051a2d 15%, 
    #0a2d4a 30%, 
    #08182d 60%, 
    #000a14 100%
  );
  position: relative;
}

/* Animated glow overlay */
.hotsale-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
  z-index: 0;
  animation: hotsale-glow 4s ease-in-out infinite alternate;
}

@keyframes hotsale-glow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Flame border effects */
.hotsale-flame-top {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, 
    #2563eb, #3b82f6, #60a5fa, #3b82f6, #2563eb, #3b82f6, #60a5fa, #2563eb
  );
  background-size: 200% 100%;
  animation: flame-border-flow 3s linear infinite;
  z-index: 20;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(37, 99, 235, 0.3);
}

.hotsale-flame-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, 
    #2563eb, #3b82f6, #60a5fa, #3b82f6, #2563eb, #3b82f6, #60a5fa, #2563eb
  );
  background-size: 200% 100%;
  animation: flame-border-flow 3s linear infinite reverse;
  z-index: 20;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(37, 99, 235, 0.3);
}

@keyframes flame-border-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Title effects */
.hotsale-title {
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(37, 99, 235, 0.3);
}

/* Highlighted word "OFERTAS" */
.hotsale-highlight-word {
  position: relative;
  -webkit-text-fill-color: white;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 40px rgba(96, 165, 250, 0.5);
  padding: 0 0.15em;
}

.hotsale-highlight-word::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
  border-radius: 2px;
  animation: highlight-glow 2s ease-in-out infinite alternate;
}

@keyframes highlight-glow {
  0% { opacity: 0.6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
  100% { opacity: 1; box-shadow: 0 0 16px rgba(59, 130, 246, 0.8); }
}

/* Decorative blue divider */
.hotsale-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.hotsale-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.8), 0 0 20px rgba(59, 130, 246, 0.4);
  animation: divider-dot-pulse 2s ease-in-out infinite;
}

@keyframes divider-dot-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
}

.hotsale-fire-text {
  background: linear-gradient(180deg, #93c5fd, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fire-text-flicker 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.hotsale-sale-text {
  background: linear-gradient(180deg, #ffffff, #bfdbfe, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0.3em;
  filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.4));
}

@keyframes fire-text-flicker {
  0% { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5)) brightness(1); }
  25% { filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.7)) brightness(1.1); }
  50% { filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4)) brightness(0.95); }
  75% { filter: drop-shadow(0 0 18px rgba(29, 78, 216, 0.6)) brightness(1.05); }
  100% { filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5)) brightness(1); }
}

/* Live dot indicator */
.hotsale-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: live-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.8);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(59, 130, 246, 0.8); }
  50% { opacity: 0.4; box-shadow: 0 0 2px rgba(59, 130, 246, 0.3); }
}

/* Info pills */
.hotsale-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.hotsale-pill:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  transform: translateY(-2px);
}

/* Hot Sale Vehicle Cards */
.hotsale-card {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.9) 0%, rgba(5, 10, 20, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.hotsale-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #60a5fa, #3b82f6, #1d4ed8);
  background-size: 200% 100%;
  animation: flame-border-flow 2s linear infinite;
}

.hotsale-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 20px 40px rgba(37, 99, 235, 0.15),
    0 0 30px rgba(59, 130, 246, 0.1),
    inset 0 0 30px rgba(59, 130, 246, 0.03);
}

.hotsale-card:hover .hotsale-card-img {
  transform: scale(1.08);
}

.hotsale-card-img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hot Sale Badge on cards */
.hotsale-badge {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5);
  animation: badge-glow 2s ease-in-out infinite alternate;
}

@keyframes badge-glow {
  0% { box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5); }
  100% { box-shadow: 0 4px 25px rgba(37, 99, 235, 0.8), 0 0 10px rgba(59, 130, 246, 0.3); }
}

/* Discount percentage badge */
.hotsale-discount {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  font-size: 13px;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
  animation: discount-pulse 1.5s ease-in-out infinite;
}

@keyframes discount-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Hot Sale price styling */
.hotsale-price {
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.hotsale-old-price {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
  text-decoration-color: rgba(96, 165, 250, 0.6);
  text-decoration-thickness: 2px;
}

/* Hot Sale CTA button */
.hotsale-cta {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hotsale-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: hotsale-shimmer 2.5s infinite;
}

@keyframes hotsale-shimmer {
  0% { left: -100%; }
  40% { left: 100%; }
  100% { left: 100%; }
}

.hotsale-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hotsale-title {
    font-size: 2.5rem !important;
  }
  
  .hotsale-fire-text,
  .hotsale-sale-text {
    display: block;
    text-align: center;
  }
  
  .hotsale-sale-text {
    margin-left: 0;
  }
}

/* Chatbot Quick Replies Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- Ciruela chat ---------- */
.ai-chat-widget {
  position: fixed;
  right: 24px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 48;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Inter', sans-serif;
}

.ai-chat-widget.chat-open {
  z-index: 54;
}

.ai-chat-teaser {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(300px, calc(100vw - 32px));
  margin-bottom: 12px;
  padding: 11px 15px;
  border: 1px solid #e3eaf4;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(12, 29, 58, .14);
  color: #52617a;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.ai-chat-teaser strong {
  color: #102b57;
  font-weight: 700;
}

.ai-chat-teaser-dot,
.ai-chat-online-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2db47b;
  box-shadow: 0 0 0 3px rgba(45, 180, 123, .14);
}

.ai-chat-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 3px;
  border: 2px solid #dce9ff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(9, 43, 100, .23), 0 2px 7px rgba(9, 43, 100, .1);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ai-chat-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(9, 43, 100, .28);
}

.ai-chat-toggle:focus-visible,
.ai-chat-icon-button:focus-visible,
.ai-chat-send:focus-visible,
.ai-chat-quick-reply:focus-visible,
.ai-chat-vehicle-action:focus-visible,
.ai-chat-vehicle-photo:focus-visible,
.ai-chat-whatsapp-link:focus-visible {
  outline: 3px solid #77adff;
  outline-offset: 3px;
}

.ai-chat-toggle-icon,
.ai-chat-toggle-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.ai-chat-toggle-icon {
  position: relative;
  overflow: hidden;
}

.ai-chat-toggle-image {
  object-fit: cover;
  transition: opacity .2s ease;
}

.ai-chat-toggle-close {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #0b2a55;
  font-size: 21px;
  opacity: 0;
  transform: translate(-50%, -35%);
  transition: opacity .2s ease, transform .2s ease;
}

.chat-open .ai-chat-toggle-image { opacity: .25; }
.chat-open .ai-chat-toggle-close { opacity: 1; transform: translate(-50%, -50%); }

.ai-chat-toggle-status {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #29b977;
}

.ai-chat-window {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 32px));
  height: min(640px, calc(100dvh - 250px));
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #dce5f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 29, 61, .24), 0 4px 18px rgba(8, 29, 61, .08);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.ai-chat-window.hidden { display: none; }
.ai-chat-window.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ai-chat-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 13px 16px;
  color: #fff;
  background: linear-gradient(115deg, #0b2449 0%, #123967 68%, #174779 100%);
}

.ai-chat-header-identity,
.ai-chat-header-actions { display: flex; align-items: center; }
.ai-chat-header-identity { gap: 11px; min-width: 0; }
.ai-chat-header-actions { gap: 5px; flex: 0 0 auto; }

.ai-chat-header-avatar,
.ai-chat-message-avatar {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.ai-chat-header-avatar {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
}

.ai-chat-header-avatar img,
.ai-chat-message-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ai-chat-header-copy { min-width: 0; }

.ai-chat-header-copy h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.ai-chat-header-copy h3 span {
  color: #cbdcf4;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.ai-chat-header-copy p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0 0;
  color: #d7e6fa;
  font-size: 11px;
  line-height: 1.3;
}

.ai-chat-icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #f2f7ff;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease;
}

.ai-chat-icon-button:hover { background: rgba(255, 255, 255, .2); }

.ai-chat-messages {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 20px 17px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f5f8fc;
  color: #24354f;
  font-size: 13px;
  line-height: 1.55;
}

.ai-chat-message { width: 100%; min-width: 0; }
.ai-chat-message-user { display: flex; justify-content: flex-end; }

.ai-chat-user-bubble {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 16px 16px 4px 16px;
  background: #1b4d91;
  box-shadow: 0 3px 10px rgba(27, 77, 145, .12);
  color: #fff;
  overflow-wrap: anywhere;
}

.ai-chat-bot-row,
.ai-chat-typing { display: flex; align-items: flex-start; gap: 9px; }

.ai-chat-message-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe7f7;
  box-shadow: 0 2px 7px rgba(18, 50, 91, .08);
}

.ai-chat-bot-bubble,
.ai-chat-typing-bubble {
  max-width: calc(100% - 41px);
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e1e9f3;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(13, 43, 85, .04);
  overflow-wrap: anywhere;
}

.ai-chat-bot-bubble strong { color: #102d57; font-weight: 700; }

.ai-chat-vehicle-grid {
  display: grid;
  gap: 9px;
  width: 100%;
  margin-top: 13px;
}

.ai-chat-vehicle-card {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dde7f4;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(14, 50, 98, .05);
}

.ai-chat-vehicle-photo {
  flex: 0 0 86px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 91px;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #ebf1f8;
  color: #7894b6;
  font-size: 24px;
  cursor: pointer;
}

.ai-chat-vehicle-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ai-chat-vehicle-details { flex: 1 1 auto; min-width: 0; }

.ai-chat-vehicle-details h4 {
  margin: 0;
  color: #172d4b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ai-chat-vehicle-details p {
  margin: 3px 0 4px;
  color: #6c7c93;
  font-size: 10px;
  line-height: 1.4;
}

.ai-chat-vehicle-price {
  display: block;
  color: #174e91;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.ai-chat-vehicle-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.ai-chat-vehicle-action {
  min-height: 27px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease;
}

.ai-chat-vehicle-action-secondary { border: 1px solid #dce6f1; background: #f5f8fc; color: #315070; }
.ai-chat-vehicle-action-secondary:hover { background: #e8eff8; }
.ai-chat-vehicle-action-primary { border: 1px solid #1b4d91; background: #1b4d91; color: #fff; }
.ai-chat-vehicle-action-primary:hover { background: #123d78; }

.ai-chat-whatsapp-cta { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e8edf4; }
.ai-chat-whatsapp-cta > span { color: #344c69; font-size: 11px; font-weight: 600; }
.ai-chat-whatsapp-cta > span i { margin-right: 4px; color: #199d68; }

.ai-chat-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #168a60;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.ai-chat-whatsapp-link:hover { background: #107650; color: #fff; }

.ai-chat-quick-replies {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 55px;
  padding: 10px 15px;
  overflow-x: auto;
  border-top: 1px solid #e8eef5;
  background: #fff;
  scrollbar-width: none;
}

.ai-chat-quick-replies::-webkit-scrollbar { display: none; }

.ai-chat-quick-reply {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #dce6f3;
  border-radius: 999px;
  background: #f7faff;
  color: #204570;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.ai-chat-quick-reply:hover { border-color: #b7d0ee; background: #eaf3ff; }

.ai-chat-footer {
  flex: 0 0 auto;
  padding: 12px 15px 13px;
  border-top: 1px solid #e8eef5;
  background: #fff;
}

.ai-chat-form { display: flex; align-items: center; gap: 9px; }

.ai-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  outline: 0;
  background: #f7f9fc;
  color: #1e304a;
  font: inherit;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ai-chat-input::placeholder { color: #8a98aa; }
.ai-chat-input:focus { border-color: #4b8ddb; background: #fff; box-shadow: 0 0 0 3px rgba(75, 141, 219, .14); }

.ai-chat-send {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #1b4d91;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.ai-chat-send:hover { background: #123d78; }
.ai-chat-send:active { transform: scale(.96); }
.ai-chat-send:disabled { background: #a9b8ca; cursor: not-allowed; }

.ai-chat-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 10px;
  padding: 0 2px;
  color: #8190a4;
  font-size: 10px;
  line-height: 1.35;
}

.ai-chat-footer-meta i { margin-right: 2px; }
.ai-chat-footer-meta > span i { color: #3e79c3; }
.ai-chat-footer-meta a { color: #167e59; font-weight: 700; text-decoration: none; }
.ai-chat-footer-meta a:hover { text-decoration: underline; }

.ai-chat-typing-bubble { display: flex; align-items: center; gap: 5px; min-height: 37px; }
.ai-chat-typing-bubble span { width: 6px; height: 6px; border-radius: 50%; background: #6e93c3; animation: ai-chat-dot 1.2s infinite; }
.ai-chat-typing-bubble span:nth-child(2) { animation-delay: .15s; }
.ai-chat-typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-chat-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 640px) {
  body.ai-chat-open { overflow: hidden; }
  .ai-chat-widget { right: 17px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .ai-chat-toggle { width: 62px; height: 62px; }
  .ai-chat-window {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    transform: translateY(12px);
  }
  .ai-chat-window.is-visible { transform: translateY(0); }
  .ai-chat-header { padding-top: calc(13px + env(safe-area-inset-top, 0px)); }
  .ai-chat-messages { padding: 18px 14px; }
  .ai-chat-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .ai-chat-input { font-size: 16px; }
}

@media (min-width: 641px) and (max-height: 450px) {
  .ai-chat-window {
    position: fixed;
    top: 12px;
    right: 12px;
    bottom: 12px;
    height: calc(100dvh - 24px);
  }
}

@media (max-width: 370px) {
  .ai-chat-header { gap: 7px; padding-left: 11px; padding-right: 11px; }
  .ai-chat-header-identity { gap: 8px; }
  .ai-chat-header-avatar { width: 40px; height: 40px; }
  .ai-chat-header-copy h3 span { display: none; }
  .ai-chat-header-copy p { font-size: 10px; }
  .ai-chat-messages { padding-left: 10px; padding-right: 10px; }
  .ai-chat-vehicle-card { flex-direction: column; }
  .ai-chat-vehicle-photo { flex-basis: auto; width: 100%; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-window,
  .ai-chat-toggle,
  .ai-chat-toggle-image,
  .ai-chat-toggle-close,
  .ai-chat-typing-bubble span { transition: none; animation: none; }
}
