/* =================== BASE STYLES =================== */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-red: #ea384c;
  --color-red-dark: #c52c3e;
  --color-gray-light: #f1f1f1;
  --color-gray: #cccccc;
  --color-gray-dark: #333333;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1da851;
  --font-family: "Montserrat", sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-gray-dark);
  overflow-x: hidden;
  padding-top: 80px;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =================== PRELOADER =================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 150px;
  height: auto;
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-gray);
  border-top: 3px solid var(--color-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(0.98);
  }
}

/* =================== HEADER =================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 0;
  transition: var(--transition);
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 10px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--color-red);
}

.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-red);
}





/* =================== VEHICLE INFO MAIN SECTION =================== */
.vehicle-info-main {
  padding: 40px 0 60px;
}

.vehicle-header {
  text-align: center;
  margin-bottom: 40px;
}

.vehicle-status-badge {
  display: inline-block;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse-badge 2s infinite;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  }
}

.vehicle-main-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-gray-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.vehicle-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 0;
}

.vehicle-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.vehicle-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.main-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-image:hover img {
  transform: scale(1.03);
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumbnail {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  filter: grayscale(20%);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--color-red);
  transform: scale(1.05);
  filter: grayscale(0%);
}

.vehicle-details-card {
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 100px;
  transition: var(--transition);
}

.vehicle-details-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.price-section {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid var(--color-gray-light);
}

.vehicle-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--color-red);
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(234, 56, 76, 0.1);
}

.price-note {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

.vehicle-basic-info {
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}

.info-item:hover {
  background-color: rgba(241, 241, 241, 0.3);
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #666;
}

.info-value {
  font-weight: 700;
  color: var(--color-gray-dark);
  font-size: 16px;
}

.vehicle-features h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-gray-dark);
}

.features-list {
  list-style: none;
}

.features-list li {
  padding: 10px 0;
  font-size: 16px;
  color: var(--color-gray-dark);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.features-list li:hover {
  transform: translateX(5px);
}

.features-list li::before {
  content: "✓";
  color: var(--color-whatsapp);
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

/* =================== WHATSAPP CTA SECTION =================== */
.whatsapp-cta-section {
  background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-whatsapp-dark) 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.whatsapp-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-100px);
  }
}

.whatsapp-cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.whatsapp-cta-text {
  color: var(--color-white);
}

.whatsapp-cta-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.whatsapp-cta-text p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.whatsapp-benefits {
  list-style: none;
}

.whatsapp-benefits li {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.whatsapp-benefits li:hover {
  transform: translateX(5px);
}

.whatsapp-benefits li::before {
  content: "✓";
  margin-right: 12px;
  font-weight: bold;
  color: var(--color-white);
  font-size: 18px;
}

.whatsapp-cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-mega-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  color: var(--color-whatsapp);
  padding: 25px 40px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: mega-pulse 3s infinite;
  width: 100%;
  max-width: 320px;
}

@keyframes mega-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
}

.whatsapp-mega-btn:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: none;
}

.whatsapp-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.whatsapp-main-text {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
}

.whatsapp-sub-text {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

.whatsapp-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.whatsapp-particles::before,
.whatsapp-particles::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  animation: particle-float 3s infinite ease-in-out;
}

.whatsapp-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.whatsapp-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: 1.5s;
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

/* =================== SECTION STYLES =================== */
.section {
  padding: 60px 0;
}

.bg-light {
  background-color: var(--color-gray-light);
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* =================== LOCATION SECTION =================== */
.location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.location-info {
  margin-bottom: 30px;
}

.location-details {
  margin-bottom: 30px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  transition: var(--transition);
}

.location-item:hover {
  transform: translateY(-5px);
}

.location-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(234, 56, 76, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  margin-top: 5px;
  transition: var(--transition);
}

.location-item:hover .location-icon {
  background-color: var(--color-red);
}

.location-item:hover .location-icon svg {
  stroke: var(--color-white);
}

.location-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-red);
  transition: var(--transition);
}

.location-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-gray-dark);
}

.location-content p {
  color: #666;
  line-height: 1.6;
}

.whatsapp-location-cta {
  margin-top: 30px;
}

.whatsapp-location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: 16px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  width: 100%;
}

.whatsapp-location-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  background-color: var(--color-whatsapp-dark);
}

.whatsapp-location-btn .whatsapp-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  fill: var(--color-white);
  stroke: none;
}

.map-container {
  height: 100%;
}

.map {
  height: 100%;
  min-height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.map:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* =================== WHATSAPP FLOAT BUTTON =================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 30px;
  background-color: var(--color-whatsapp);
  color: #fff;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: float-bounce 3s infinite;
}

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

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  animation: none;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
  stroke: none;
}

/* =================== FOOTER =================== */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info {
  max-width: 300px;
}

.footer-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-info p {
  color: #aaa;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
  fill: var(--color-white);
}

.social-link:hover {
  background-color: var(--color-red);
  transform: translateY(-5px);
}

.footer-links h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #aaa;
  transition: var(--transition);
  padding: 5px 0;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-white);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #222;
}

.footer-bottom p {
  color: #aaa;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 15px;
}

/* =================== BACK TO TOP BUTTON =================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Visualizador de imagen en pantalla completa */
#image-viewer {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#image-viewer img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: all 0.3s ease;
}

#image-viewer.active img {
  transform: scale(1);
}

#close-viewer {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100000;
  transition: all 0.2s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

#close-viewer:hover {
  color: var(--color-red);
  background-color: rgba(255, 255, 255, 0.1);
}

/* =================== INSTALLMENT SLIDER SECTION =================== */
.installment-section {
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border: 1px solid #dee2e6;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.installment-section:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.installment-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-dark), var(--color-red));
  border-radius: 15px 15px 0 0;
}

.installment-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.installment-title::before {
  content: "💳";
  font-size: 20px;
}

.slider-container {
  position: relative;
  margin: 25px 0;
}

.installment-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #e9ecef 0%, #e9ecef 100%);
  outline: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.installment-slider:hover {
  opacity: 1;
}

.installment-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(234, 56, 76, 0.3);
  transition: all 0.3s ease;
  border: 3px solid white;
}

.installment-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 12px rgba(234, 56, 76, 0.4);
}

.installment-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(234, 56, 76, 0.3);
  border: 3px solid white;
  transition: all 0.3s ease;
}

.installment-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 12px rgba(234, 56, 76, 0.4);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 12px;
}

.slider-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.slider-label.active {
  color: var(--color-red);
  font-weight: 700;
  transform: scale(1.1);
}

.installment-display {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.installment-display:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.installment-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.installment-count {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-dark);
  background: var(--color-gray-light);
  padding: 8px 16px;
  border-radius: 20px;
}

.installment-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-red);
  text-shadow: 0 2px 4px rgba(234, 56, 76, 0.1);
}

.installment-note {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  margin-top: 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-dark));
  border-radius: 2px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 1200px) {
  .section {
    padding: 60px 0;
  }

  .vehicle-main-title {
    font-size: 36px;
  }

  .vehicle-price {
    font-size: 32px;
  }

  .whatsapp-cta-text h2 {
    font-size: 28px;
  }

  .main-image img {
    height: 350px;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 50px 0;
  }

  .vehicle-info-grid,
  .whatsapp-cta-content,
  .location-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .vehicle-gallery {
    position: static;
  }

  .vehicle-details-card {
    position: static;
  }

  .vehicle-main-title {
    font-size: 32px;
  }

  .whatsapp-cta-text {
    text-align: center;
  }

  .whatsapp-cta-text h2 {
    font-size: 26px;
  }

  .whatsapp-cta-button {
    margin: 0 auto;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .main-image img {
    height: 400px;
  }

  .location-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .location-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .location-item {
    width: 100%;
    max-width: 300px;
  }

  .whatsapp-location-cta {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .container {
    padding: 0 15px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }

  .main-nav.active {
    max-height: 400px;
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:after {
    display: none;
  }

  .vehicle-main-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .vehicle-details-card {
    padding: 25px 20px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .whatsapp-mega-btn {
    padding: 20px;
  }

  .whatsapp-main-text {
    font-size: 18px;
  }

  .whatsapp-sub-text {
    font-size: 12px;
  }

  .map {
    min-height: 300px;
  }

  .map iframe {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .vehicle-gallery .main-image img {
    height: 300px;
  }

  .location-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .location-icon {
    margin: 0 0 15px 0;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }

  .vehicle-header {
    margin-bottom: 25px;
  }

  .vehicle-main-title {
    font-size: 24px;
  }

  .vehicle-subtitle {
    font-size: 16px;
  }

  .vehicle-price {
    font-size: 26px;
  }

  .price-note {
    font-size: 14px;
  }

  .vehicle-info-main {
    padding: 30px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .vehicle-info-grid {
    gap: 25px;
  }

  .vehicle-details-card {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .info-item {
    padding: 12px 0;
  }

  .info-label,
  .info-value {
    font-size: 14px;
  }

  .features-list li {
    font-size: 14px;
  }

  .whatsapp-cta-text h2 {
    font-size: 22px;
  }

  .whatsapp-cta-text p {
    font-size: 14px;
  }

  .whatsapp-benefits li {
    font-size: 14px;
  }

  .whatsapp-mega-btn {
    padding: 15px;
  }

  .whatsapp-main-text {
    font-size: 16px;
  }

  .whatsapp-sub-text {
    font-size: 10px;
  }

  .location-content h3 {
    font-size: 16px;
  }

  .location-content p {
    font-size: 14px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .thumbnail {
    height: 60px;
  }

  .main-image {
    margin-bottom: 10px;
  }

  .main-image img {
    height: 250px;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-info h3,
  .footer-links h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .footer-info p,
  .footer-links a {
    font-size: 14px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .social-link {
    width: 35px;
    height: 35px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .vehicle-main-title {
    font-size: 22px;
  }

  .vehicle-subtitle {
    font-size: 14px;
  }

  .vehicle-status-badge {
    font-size: 12px;
    padding: 6px 15px;
  }

  .vehicle-price {
    font-size: 24px;
  }

  .price-note {
    font-size: 13px;
  }

  .vehicle-features h3 {
    font-size: 18px;
  }

  .features-list li {
    font-size: 13px;
  }

  .features-list li::before {
    font-size: 16px;
  }

  .whatsapp-cta-text h2 {
    font-size: 20px;
  }

  .whatsapp-cta-text p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .whatsapp-benefits li {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .whatsapp-benefits li::before {
    font-size: 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  .location-content h3 {
    font-size: 15px;
  }

  .location-content p {
    font-size: 13px;
  }

  .whatsapp-location-btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .main-image img {
    height: 200px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumbnail {
    height: 50px;
  }

  .map,
  .map iframe {
    min-height: 250px;
  }
}

@media (max-width: 400px) {
  .vehicle-main-title {
    font-size: 20px;
  }

  .vehicle-price {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .footer-info p,
  .footer-links a {
    font-size: 12px;
  }

  .footer-bottom p {
    font-size: 11px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .thumbnail {
    height: 45px;
  }

  .main-image img {
    height: 180px;
  }

  .whatsapp-mega-btn {
    padding: 12px;
  }

  .whatsapp-main-text {
    font-size: 14px;
  }

  .whatsapp-sub-text {
    font-size: 9px;
  }
}

/* =================== UTILITY CLASSES =================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================== PRINT STYLES =================== */
@media print {
  .header,
  .whatsapp-float,
  .back-to-top,
  .footer,
  .whatsapp-cta-section {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }

  .vehicle-main-title,
  .vehicle-price {
    color: var(--color-black) !important;
  }
}

/* =================== ANIMATIONS =================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Mejora de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
