/* =================== 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;
}

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;
}

.preloader-logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  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;
}

@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: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 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;
}

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

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

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

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

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

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

/* =================== HERO SECTION =================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  color: var(--color-white);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  color: var(--color-white);
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-red-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-dark:hover {
  background-color: var(--color-red);
}

.btn-full {
  width: 100%;
}

.btn-seguirleyendo {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 10px 20px;
  display: inline-block;
  margin: 20px auto;
  text-align: center;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Centrar horizontalmente */
.btn-seguirleyendo {
  display: block;
  max-width: 200px;
  width: 80%;
  margin: 20px auto;
}

/* Responsive font size y padding */
@media (max-width: 600px) {
  .btn-seguirleyendo {
    font-size: 14px;
    padding: 8px 16px;
  }
}

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

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

.section-title {
  font-size: 36px;
  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 40px;
}

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

/* =================== VEHICLES SECTION =================== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  background-color: var(--color-white);
  color: var(--color-gray-dark);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-red);
  color: var(--color-white);
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.vehicle-card {
  background-color: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.vehicle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.vehicle-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.vehicle-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.status-disponible {
  background-color: var(--color-whatsapp);
}

.status-vendido {
  background-color: #dc3545;
}

.status-nuevo {
  background-color: #28a745;
}

.status-usado {
  background-color: #ffc107;
  color: var(--color-black);
}

.vehicle-content {
  padding: 20px;
}

.vehicle-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.vehicle-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: 15px;
}

.vehicle-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.vehicle-detail {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.vehicle-detail svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.vehicle-link {
  display: flex;
  align-items: center;
  color: var(--color-red);
  font-weight: 600;
  margin-top: 10px;
  transition: var(--transition);
}

.vehicle-link svg {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  transition: var(--transition);
}

.vehicle-link:hover {
  color: var(--color-red-dark);
}

.vehicle-link:hover svg {
  transform: translateX(3px);
}

/* =================== ABOUT SECTION =================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
}

.feature-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;
}

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

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature p {
  font-size: 14px;
  color: #666;
}

.about-image {
  position: relative;
}

.rounded-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* =================== TESTIMONIALS SECTION =================== */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials-container {
  overflow: hidden;
  position: relative;
}

.testimonial-slide {
  width: 100%;
  transition: transform 0.5s ease;
  display: flex;
}

.testimonial-card {
  flex-shrink: 0;
  width: 100%;
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.testimonial-quote {
  font-size: 18px;
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-quote::before {
  content: "";
  font-size: 60px;
  color: var(--color-red);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.testimonial-info h4 {
  font-size: 18px;
  font-weight: 600;
}

.testimonial-info p {
  font-size: 14px;
  color: #666;
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.testimonial-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-gray-dark);
}

.testimonial-btn:hover svg {
  stroke: var(--color-red);
}

.prev-btn {
  left: -20px;
}

.next-btn {
  right: -20px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-gray);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.testimonial-dot.active {
  background-color: var(--color-red);
}

/* =================== FAQ SECTION =================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--color-white);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-question span {
  color: #999;
  font-size: 24px;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  background-color: #f9f9f9;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 20px;
  max-height: 300px;
}

/* =================== BLOG SECTION =================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

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

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

.blog-content {
  padding: 20px;
}

.blog-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

.blog-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  color: #555;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  display: flex;
  align-items: center;
  color: var(--color-red);
  font-weight: 600;
}

.blog-link svg {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  transition: var(--transition);
}

.blog-link:hover svg {
  transform: translateX(3px);
}

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

.contact-info-column {
  display: flex;
  flex-direction: column;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

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

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-red);
}

.contact-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.map-column {
  height: 100%;
}

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

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

/* Estilos para el botón de WhatsApp mejorado */
.whatsapp-button-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

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

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

.whatsapp-contact-btn.glow:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 0.2;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: white;
  border-radius: 50%;
  margin-right: 12px;
}

.whatsapp-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-whatsapp);
  stroke: none;
}

.whatsapp-contact-btn span {
  font-weight: 600;
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 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;
}

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

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

/* Estilos para el tooltip de WhatsApp */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background-color: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  width: 180px;
  text-align: left;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Estilos para el efecto borroso en el catálogo */
.vehicles-grid-container {
  position: relative;
  margin-bottom: 40px;
  overflow: hidden;
}

.vehicles-grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.95) 80%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 25px;
  animation: pulse-overlay 3s infinite alternate;
}

@keyframes pulse-overlay {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}

.vehicles-grid-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.vehicles-grid-overlay .btn {
  position: relative;
  z-index: 3;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: pulse-button 2s infinite alternate;
}

@keyframes pulse-button {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
}

.vehicles-grid-overlay .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: 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);
}

.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);
}

.footer-links a:hover {
  color: var(--color-white);
}

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

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

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  font-family: var(--font-family);
}

.newsletter-btn {
  background-color: var(--color-red);
  border: none;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  padding: 0 20px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background-color: var(--color-red-dark);
}

.newsletter-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
}

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

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

/* =================== 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);
}

/* =================== ANIMATIONS =================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
}

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

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideLeft 1s forwards;
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideRight 1s forwards;
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  .hero h1 {
    font-size: 40px;
  }
}

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

  .about-grid,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .rounded-image {
    height: 400px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .testimonial-btn {
    width: 36px;
    height: 36px;
  }

  .prev-btn {
    left: 0;
  }

  .next-btn {
    right: 0;
  }
}

@media (max-width: 768px) {
  .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);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

  .vehicles-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-quote {
    font-size: 16px;
  }

  .map {
    height: 300px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .whatsapp-contact-btn {
    width: 100%;
  }
}

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

  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-right: 0;
  }

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

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

  .filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .vehicles-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    gap: 30px;
  }

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

  .footer-info,
  .footer-links,
  .footer-newsletter {
    max-width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .newsletter-btn {
    border-radius: 5px;
    width: 100%;
    padding: 12px;
  }

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

  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }

  .testimonial-info h4 {
    font-size: 16px;
  }

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

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

  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

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

  .vehicle-image {
    height: 180px;
  }

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

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

  .blog-image {
    height: 180px;
  }

  .contact-item {
    flex-direction: column;
  }

  .contact-icon {
    margin-bottom: 10px;
  }

  .faq-question {
    font-size: 14px;
    padding: 15px;
  }

  .faq-answer.active {
    padding: 15px;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 320px) {
  .hero h1 {
    font-size: 22px;
  }

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

  .vehicle-image {
    height: 160px;
  }

  .blog-image {
    height: 160px;
  }
}

/* =================== UTILITY CLASSES =================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-gray);
  border-top: 3px solid var(--color-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* =================== ACCESSIBILITY =================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.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 {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }

  .hero {
    height: auto;
    min-height: auto;
  }

  .hero-img {
    position: static;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content {
    color: var(--color-black) !important;
  }

  .hero h1,
  .hero p {
    color: var(--color-black) !important;
  }
}
/* ===================  Credito de MiraiSoft =================== */
.creditos {
  text-align: center;
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

.creditos a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  position: relative;
  transition: color 0.4s ease;
}

.creditos a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #ffffffde;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.creditos a:hover {
  color: #d43efa;
}

.creditos a:hover::after {
  transform: scaleX(1);
}

.contact-items-row {
  display: flex;
  gap: 25px;
  margin-top: 40px;
  justify-content: center;
}

.contact-items-row .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: none;
  flex: 1 1 320px;
  max-width: 500px;
}

.contact-items-row .contact-item:hover {
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateX(10px);
}

.contact-items-row .contact-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #ea384c, #ff6b81);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  box-shadow: 0 5px 15px rgba(234, 56, 76, 0.3);
}

.contact-items-row .contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.contact-items-row .contact-item-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.contact-items-row .contact-item-content p {
  color: #666;
  margin: 0;
}

@media (max-width: 900px) {
  .contact-items-row {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .contact-items-row .contact-item {
    max-width: 100%;
  }
}

/* =================== TRADE-IN SECTION =================== */
.trade-in-section {
  position: relative;
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-black);
}

.trade-in-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.trade-in-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transform: scale(1.05);
  transition: transform 10s ease;
}

.trade-in-section:hover .trade-in-img {
  transform: scale(1);
}

.trade-in-content {
  position: relative;
  z-index: 2;
}

.trade-in-text {
  max-width: 600px;
  color: var(--color-white);
}

.trade-in-text h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.trade-in-text p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .trade-in-section {
    height: 60vh;
  }

  .trade-in-text h2 {
    font-size: 32px;
  }

  .trade-in-text p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .trade-in-section {
    height: 70vh;
  }

  .trade-in-text h2 {
    font-size: 28px;
  }

  .trade-in-text p {
    font-size: 16px;
  }
}
