:root {
  --primary-color: #32aeb5;
  --secondary-color: #4F46E5;
  --text-color: #333;
  --light-bg: white;
  --nav-bg: linear-gradient(to right, #2D3047, #393B53);
  --how-it-works-bg: #f7f7f7; 
  --step-bg: white;
  --step-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --step-hover-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); 
  --step-title-color: #333; 
  --step-description-color: #666; 
  --icon-size: 60px;  
  --page-padding: 5rem;
}

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

h1 {
  font-size: 2.5rem;
  margin: 0 0 1.5rem 0;
}

body { 
  font-family: Arial, sans-serif;
  background-color: var(--light-bg);
}

.container {
  width: 90%;
  margin: 0 auto;
  padding: 1rem 0;
}

 .contact-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-card.active {
  opacity: 1;
  visibility: visible;
}

.contact-card__content {
  max-width: 500px;
  width: 90%;
  background-color: #2D3047;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.contact-card.active .contact-card__content {
  transform: translateY(0);
}

.contact-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  background: #2D3047;
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.contact-card__close:hover {
  background: var(--primary-color, #32aeb5);
  transform: rotate(90deg);
}

.contact-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-card__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-card__phone,
.contact-card__email {
  font-size: 1rem;
  color: white;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.contact-card__phone-icon {
  width: 30px;
  height: 30px;
}


.contact-card__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-card__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-card__social-link:hover {
  background-color: var(--primary-color, #32aeb5);
  transform: translateY(-3px);
}

.contact-card__social-icon {
  width: 24px;
  height: 24px;
}

/* Hero Section - Mobile */
.hero {
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, var(--nav-bg) 0%, transparent 70%);
  opacity: 0.05;
}

.hero__image-container {
  display: block; /* Changed from 'none' to 'block' */
  width: 100%;
  height: 250px; /* Fixed height */
  position: relative;
  order: 2; /* Image comes after content */
  overflow: hidden;
}

.hero__image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Maintains aspect ratio */
  object-position: center bottom; /* Positions image at the bottom center */
  max-width: 500px;
  margin: 0 auto;
  display: block;
}


.hero__title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--nav-bg);
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 40px;
}

.hero__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #666;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}


.hero__content {
  position: relative;
  z-index: 1;
  margin-bottom: 65px;
}

/* How It Works Section */

.how-it-works__step:nth-child(1) {
  order: 3; /* El elemento que estaba primero (ubicación) ahora va tercero */
}

.how-it-works__step:nth-child(2) {
  order: 2; /* El elemento que estaba segundo (requisitos) se mantiene segundo */
}

.how-it-works__step:nth-child(3) {
  order: 1; /* El elemento que estaba tercero (vehículos) ahora va primero */
}

.how-it-works {
  background-color: var(--how-it-works-bg, #f8f8f8);
  text-align: center;
  padding: 60px 0;
}

.how-it-works__header {
  margin-bottom: 60px;
}

.how-it-works__title {
  font-size: 2.5rem;
  color: var(--step-title-color, #333);
  margin-bottom: 3rem;
  font-weight: 700;
}

.how-it-works__subtitle {
  font-size: 1.5rem;
  color: var(--step-title-color, #555);
  opacity: 0.8;
}

.how-it-works__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.how-it-works__step {
  background-color: var(--step-bg, #fff);
  border-radius: 12px;
  box-shadow: var(--step-shadow, 0 5px 15px rgba(0, 0, 0, 0.1));
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 10px;
  height: 500px; /* Altura fija para todas las tarjetas */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
 
}

.how-it-works__step:hover {
  transform: translateY(-5px);
  box-shadow: var(--step-hover-shadow, 0 8px 25px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
}

.how-it-works__icon {
  margin-bottom: 20px;
  padding-top: 40px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-it-works__icon img {
  width: var(--icon-size, 80px);
  height: auto;
  transition: transform 0.3s ease;
}

.how-it-works__step:hover .how-it-works__icon img {
  transform: scale(1.1);
}

.how-it-works__step:nth-child(1) .how-it-works__icon img {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.how-it-works__step:nth-child(2) .how-it-works__icon img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.how-it-works__step:nth-child(3) .how-it-works__icon img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

/* Contenido de los pasos */
.step-content {
  width: 100%;
  position: relative;
  padding: 0 25px 40px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}


.how-it-works__step-title {
  font-size: 1.5rem;
  color: var(--step-title-color, #333);
  margin: 25px 0 20px;
  font-weight: 600;
  position: relative;
  text-align: center;
}

.how-it-works__step-description {
  font-size: 1rem;
  color: var(--step-description-color, #666);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Estilos específicos para la ubicación */
.location-address {
  color: var(--step-description-color, #666);
  font-weight: 500;
  margin: 10px 0 20px;
}

/* Botones de mapas */
.map-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.map-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 120px;
  padding: 12px 15px;
  border: 2px solid #333;
  border-radius: 8px;
  background-color: #f8f8f8;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.google-maps-button {
  border-color: #4285F4;
}

.waze-button {
  border-color: #33CCFF;
}

.map-button-logo {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.map-button-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.google-maps-button .map-button-text {
  color: #4285F4;
}

.waze-button .map-button-text {
  color: #33CCFF;
}

.map-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-button:hover .map-button-logo {
  transform: scale(1.1);
}

.google-maps-button:hover {
  background-color: rgba(66, 133, 244, 0.1);
}

.waze-button:hover {
  background-color: rgba(51, 204, 255, 0.1);
}


/* Estilos para la lista de requisitos */
.requisitos-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.requisitos-list li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--step-description-color, #666);
  font-weight: 500;
  text-align: center;
}

.requisitos-list li:last-child {
  border-bottom: none;
}

/* Estilos para los tipos de vehículos */
.vehicle-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.vehicle-type {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--step-description-color, #666);
  font-weight: 500;
  transition: all 0.3s ease;
}


.catalog-link {
  display: inline-block;
  margin-top: auto;
  color: white;
  background-color: var(--primary-color, #5a9bd5);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.catalog-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}


/* Are You Ready Section - Fixed Position Car */
.are-you-ready {
  background-color: #edf2f7; /* Fondo más claro y neutro */
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
}

.are-you-ready__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;

}

.are-you-ready__content {
  text-align: center;
  position: relative;
  z-index: 10;
  background-color: rgba(45, 48, 71, 0.7);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.are-you-ready__title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.are-you-ready__description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.are-you-ready__button {
  display: inline-block;
  padding: 1.2rem 2rem;
  background: #32aeb5;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(50, 174, 181, 0.3);
}

.are-you-ready__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(50, 174, 181, 0.4);
  background: #2c9da3;
}

.are-you-ready__button:active {
  transform: translateY(-1px) scale(0.98);
}

.are-you-ready__image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: center; /* Centro horizontal */
  align-items: center; /* Centro vertical */
}

/* Hilux image positioning */
.hilux-image {
  display: none; /* Mantenemos oculta la Hilux */
}

/* Red SUV image positioning */
.red-suv-image {
  position: relative; /* Cambiado de absolute a relative */
  width: 90%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  margin-top: 50px;
}

/* Desktop styles */

@media (min-width: 1024px) {

  .container {
    padding: 1rem 1.5rem;
  }

  .row{
    display: flex;
    justify-content: space-between;
  }

  .col {
    width: 100%;
    margin-top: 0;
  }

  .hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 2rem var(--page-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #f7f7f7 100%);
  }

  .hero::before {
    display: none;
  }

  .hero__content {
    width: 40%;
    z-index: 2;
    padding-right: 19px;
  }

  .hero__title {
    font-size: 2.5rem;
    color: var(--nav-bg);
    max-width: 100%;
    margin-bottom: 40px;
    text-align: left;
  }

  .hero__description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: left;
  }

  .hero__image-container {
    display: block;
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    transform: skewX(-10deg);
    background-color: var(--primary-color);
    overflow: visible;
  }

  .hero__image-container img {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%) skewX(10deg);
    width: 120%;
    height: auto;
    max-width: none;
    z-index: 3;
    transition: opacity 0.5s ease-in-out;
  }



  .how-it-works {
    min-height: 100vh; 
    padding: 4rem 0;
    width: 100%;
  }


  .how-it-works__steps {
    flex-direction: column;
    flex-direction: row; 
    justify-content: space-between;
  }

  .how-it-works__step {
    flex: 1; 
    max-width: 500px;
  }
  
  .are-you-ready {
    padding: 4rem 2rem;
  }
  
  .are-you-ready__container {
    flex-direction: row;
    align-items: center;
    min-height: 500px; /* Altura mínima para dar espacio a la imagen */
  }
  
  .are-you-ready__content {
    width: 50%;
    text-align: left;
    margin-left: 5%;
    max-width: 550px;
  }
  
  .are-you-ready__title {
    font-size: 2.2rem;
    margin: 0 0 1.5rem 0;
  }
  
  .are-you-ready__description {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
  }
  
  .red-suv-image {
    right: 5%;
    bottom: 0;
    width: 55%;
    max-width: 600px;
  }
}