/* BUDANER AUTOMOTORES - Custom Styles & Animations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --brand-blue: #009FE3;
  --brand-dark-blue: #0284c7;
  --brand-navy: #0f172a;
  --brand-accent: #0284c7;
  --wa-green: #25D366;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

h1, h2, h3, .font-heading {
  font-family: 'Inter', sans-serif;
}

/* Ticker Marquee Ribbon Animations */
@keyframes ticker-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes ticker-right {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.ticker-track-left {
  display: flex;
  width: max-content;
  animation: ticker-left 28s linear infinite;
}

.ticker-track-right {
  display: flex;
  width: max-content;
  animation: ticker-right 32s linear infinite;
}

.ticker-container:hover .ticker-track-left,
.ticker-container:hover .ticker-track-right {
  animation-play-state: paused;
}

.vehicle-card {
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
}

.vehicle-card-img-wrap {
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
  transform: translateZ(0);
}

.vehicle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Card Button Celeste Oscuro */
.btn-card-consultar {
  background-color: #0284c7;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-card-consultar:hover {
  background-color: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-card-consultar:active {
  background-color: #075985;
  transform: translateY(0);
}

/* Mobile 2x2 Grid Specific Optimizations */
@media (max-width: 767px) {
  .vehicle-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  .vehicle-card {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .vehicle-card-img-wrap {
    height: 125px !important;
  }

  .vehicle-card-title {
    font-size: 0.8125rem !important;
    line-height: 1.15rem !important;
  }

  .vehicle-card-price {
    font-size: 0.9375rem !important;
  }

  .vehicle-card-btn {
    font-size: 0.725rem !important;
    padding: 0.5rem 0.35rem !important;
    letter-spacing: 0.04em !important;
  }

  .vehicle-badge-fin {
    font-size: 0.58rem !important;
    padding: 0.15rem 0.4rem !important;
  }
}

/* Desktop 4x4 Grid */
@media (min-width: 1024px) {
  .vehicle-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .vehicle-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }
}

/* Floating WhatsApp Pulse Animation */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-floating-btn {
  animation: wa-pulse 2s infinite;
}

/* Glassmorphism helpers */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Smooth modal transition */
.modal-overlay {
  transition: opacity 0.25s ease-out;
}

.modal-content {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}

/* Grid de Últimas Entregas */
.entregas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .entregas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .entregas-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

.entrega-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #f1f5f9;
  aspect-ratio: 4 / 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
}

.entrega-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.entrega-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

/* Hide scrollbar for horizontal chips */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
