<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* Reset básico */
* {
  margin: 0;                            /* Elimina todos los márgenes por defecto */
  padding: 0;                            /* Elimina el relleno por defecto */
  box-sizing: border-box;                /* Hace que el padding y border no afecten al ancho y alto */
}

/* Estilos para el cuerpo de la página */
body {
  font-family: Arial, sans-serif;      /* Define la tipografía de la página */
  color: #333333;                      /* Color de texto predeterminado (gris oscuro) */
  background-color: #fff;              /* Color de fondo de la página (blanco) */
  line-height: 1.6;
}


/* ===== SECCIÓN HERO ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  background-color: rgb(0, 115, 145);
  display: contents;
}


.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}


.hero-image-container img:hover {
  transform: scale(1.01);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}


/* ===== QUIZ CONTAINER ===== */
#quiz-container {
  display: none;
  max-width: 600px;
  min-height: 500px;
  margin: 30px auto;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #121212 0%, #000000 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 123, 125, 0.15), 0 0 0 1px rgba(0, 180, 184, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

#quiz-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 180, 184, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}




.quiz-question {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  animation: fadeIn 0.6s ease-out forwards;
}

.quiz-question h2 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}



.quiz-question h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #00b4b8, #007b7d);
  animation: widthPulse 2s infinite;
}


.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 15px;
}

.quiz-options button {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
}

/* Efecto para opción seleccionada (mejorado) */
.quiz-options button.selected {
  background-color: #007b7d;
  border-color: #00b4b8;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 123, 125, 0.4);
  animation: pulse 1.5s infinite;
}


.quiz-options button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 7px 15px rgba(0, 123, 125, 0.2);
  border-color: rgba(0, 180, 184, 0.3);
}



.quiz-options button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

.option-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
}

.option-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
  transition: all 0.3s ease;
}



.quiz-options button:hover::before {
  opacity: 1;
}

.quiz-options button:hover {
  background-color: #e6e6e6;                    /* Cambia el fondo cuando el mouse pasa por encima */
}

.quiz-options img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}


.option-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(0, 0, 0, 0.5) 50%, 
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
}




.option-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
  transition: all 0.3s ease;
}



.quiz-options button span.option-label {
  font-size: 0.7rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 3px;
  
}



/* Contenedor de imagen + texto */
.quiz-options button {
  background-color: #2a2e2a; /* Fondo un poco más claro que el negro puro */
  border: 3px solid #f2f2f2ce;
  padding: 15px 10px; /* Más espacio interno */
}

/* Efecto hover para el texto */
.quiz-options button:hover span.option-label {
  color: #ffcc00; /* Amarillo al hacer hover */
}

/* Efecto de selección */
.quiz-options button.selected {
  background: rgba(0, 123, 125, 0.2);
  border: 1px solid #00b4b8;
  box-shadow: 
    0 0 10px rgba(0, 180, 184, 0.3),
    inset 0 0 8px rgba(0, 180, 184, 0.1);
}




#next-button {
  background: linear-gradient(90deg, #007b7d, #00a1a4);
  color: white;
  padding: 8px 23px;
  font-size: 1 rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 123, 125, 0.3);
  position: relative;
  overflow: hidden;
}

#next-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 125, 0.4);
}




#next-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0) 45%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0) 55%
  );
  transform: rotate(30deg);
  transition: all 0.5s ease;
}

#next-button:hover::after {
  left: 100%;
}


/* Agrega esto en tu archivo CSS */
#progress-bar-container {
  width: 80%;
  max-width: 600px;
  background-color: #f0f0f0;
  border-radius: 20px;
  display: none;
  margin: 20px auto;
  height: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007b7d, #00b4b8);
  width: 0%;
  transition: width 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 20px;
}

#question-info {
  display: none;
  text-align: center;
  margin: 10px auto;
  font-size: 1rem;
  color: #007b7d;
  font-weight: bold;
  width: 80%;
  max-width: 600px;
}


/* Nueva sección de introducción */
.game-intro {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  color: #333;
}

.game-intro h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #007b7d;
  position: relative;
  display: inline-block;
}

.game-intro h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #ffcc00;
}

.intro-text {
  margin: 30px 0;
  line-height: 1.7;
}

.intro-text p {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.highlight {
  font-size: 1.5rem;
  font-weight: 600;
  color: #007b7d;
  margin: 25px 0;
}

.highlight span {
  color: #ff766d;
  position: relative;
}

.highlight span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.highlight:hover span::after {
  transform: scaleX(1);
}

.quote {
  font-style: italic;
  position: relative;
  padding: 0 20px;
}

.quote::before,
.quote::after {
  content: '"';
  color: #ffcc00;
  font-size: 1.5em;
}

/* Botón de inicio */
.start-button {
  background: #007b7d;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 123, 125, 0.2);
}

.start-button:hover {
  background: #00a1a4;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 123, 125, 0.3);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  fill: white;
  transition: transform 0.3s ease;
}

.start-button:hover .arrow-icon {
  transform: translateX(5px);
}

#start-game-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

#start-game-image:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#start-game-image:active {
  transform: scale(0.98);
}


.image-click-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 2s ease;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #ffcc00;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* Reemplaza los estilos del SVG por estos: */
.back-button-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 6px;
  transition: transform 0.3s ease;
}

#back-button:hover .back-button-icon {
  transform: translateX(-3px);
}

#back-button-container {
  margin-left: auto;
  padding-right: 25px;
  display: none; /* Oculto inicialmente */
}

#back-button {
  background: linear-gradient(to right, #007b7d, #00a1a4);
  border: none;
  color: white;
  padding: 8px 21px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s ease;
  box-shadow: 0 3px 6px rgba(0, 123, 125, 0.3);
  position: relative;
  overflow: hidden;
}

#back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 123, 125, 0.4);
}

#back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

#back-button:hover::before {
  left: 100%;
}

.back-button-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#back-button:hover .back-button-icon {
  transform: translateX(-5px);
}



@media (max-width: 768px) {
  #quiz-container {
    padding: 25px;
    min-height: 550px;
    margin: 20px auto;
  }
  
  .quiz-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .quiz-options button {
    padding-bottom: 5px; /* Reduce padding inferior */
  }
  
  .quiz-options img {
    width: 60px;
    height: 60px;
  }
}


.quiz-options button:hover img {
  transform: scale(1.1) rotate(5deg);
}

/* RESULTADOS */

/* ===== RESULTADOS - ESTILO CYBERPUNK ===== */
#result-container {
  display: none;
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 180, 184, 0.4);
  border: 1px solid #00b4b8;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

#result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 180, 184, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 118, 109, 0.15) 0%, transparent 40%);
  animation: pulseBackground 15s infinite alternate;
}

#result-container h2 {
  font-size: 2.5rem;
  color: #00f0ff;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
  animation: textGlow 2s infinite alternate;
}

.personality-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 40px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  font-weight: 300;
  /* Añade estas propiedades para permitir saltos de línea */
  white-space: normal; /* Permite saltos de línea */
  word-wrap: break-word; /* Rompe palabras largas si es necesario */
  overflow: visible; /* Asegura que el texto no se corte */
  text-align: center; /* Centra el texto (opcional) */
}
.personality-description:hover {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
  transition: text-shadow 0.3s ease;
}

.car-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.car-card {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid #007b7d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
}

.car-card .car-image {
  width: 180px !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 30px auto 15px !important; /* Bajé más la imagen */
  
  /* Bordes premium con efecto 3D */
  border: 4px solid #ffffff !important;
  box-shadow: 
    0 4px 20px rgba(0, 123, 125, 0.25),
    0 0 0 1px rgba(0, 180, 184, 0.3),
    inset 0 0 15px rgba(0, 180, 184, 0.2) !important;
  
  /* Efecto de reflejo */
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}


.car-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007b7d, #00b4b8, #00f0ff);
  animation: borderGlow 3s infinite;
}

.car-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 123, 125, 0.5);
  border-color: #00f0ff;
}

.car-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #333;
  filter: grayscale(30%) contrast(110%);
  transition: all 0.5s ease;
}

.car-card:hover .car-image {
  filter: grayscale(0%) contrast(120%) brightness(1.1);
  transform: scale(1.05);
}

.car-card h3 {
  margin: 20px 0 10px;
  color: #00f0ff;
  font-size: 1.5rem;
  padding: 0 15px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.car-price {
  font-weight: bold;
  color: #ff766d;
  margin-bottom: 15px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 118, 109, 0.5);
}

.car-description {
  padding: 0 15px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #dad6d6;
  min-height: 80px;
}

.cotizar-button {
  display: inline-block;
  background: linear-gradient(90deg, #007b7d, #00b4b8);
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  margin: 20px 0;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 123, 125, 0.4);
  letter-spacing: 0.5px;
}

.cotizar-button:hover {
  background: linear-gradient(90deg, #00b4b8, #00f0ff);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 180, 184, 0.6);
}

.cotizar-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
  z-index: -1;
}

.cotizar-button:hover::before {
  left: 100%;
}



/* ANIMACIONES */


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 180, 184, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 180, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 180, 184, 0); }
}

@keyframes widthPulse {
  0%, 100% { width: 40px; }
  50% { width: 60px; }
}

@keyframes textGlow {
  0% { text-shadow: 0 0 15px rgba(0, 240, 255, 0.7); }
  100% { text-shadow: 0 0 25px rgba(0, 240, 255, 0.9), 0 0 35px rgba(0, 240, 255, 0.5); }
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes pulseBackground {
  0% { background-position: 20% 30%, 80% 70%; }
  100% { background-position: 30% 40%, 70% 60%; }
}


/* RESPONSIVE */


@media (max-width: 768px) {
  .navbar-logo img {
    margin-left: 0;
  }
  
  .navbar-links {
    margin-right: 20px;
    gap: 15px;
  }
  
  #quiz-container {
    padding: 15px;
    margin: 15px;
    min-height: auto;
  }
  
  .quiz-options {
    grid-template-columns: 1fr;
  }
  
  #result-container {
    padding: 20px;
    margin: 20px;
  }
  
  .car-card h3 {
    font-size: 1.3rem;
  }
  
  .cotizar-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}



/* Estilos para el mensaje de alerta */
.alert-message {
  background-color: rgba(255, 77, 77, 0.9);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin: 10px auto 15px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #ff2d2d;
  animation: fadeIn 0.3s ease-out;
  position: relative;
  z-index: 10;
}

/* Animación de sacudida para el mensaje de alerta */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Mejorar la apariencia del botón deshabilitado */
#next-button:disabled {
  background: linear-gradient(90deg, #6d7a7a, #6d9697);
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}



/* Estilos para tablets (< 992px) */
@media screen and (max-width: 991px) {
  .game-intro h2 {
    font-size: 2.2rem;
  }
  
  .intro-text p {
    font-size: 1rem;
  }
  
  .highlight {
    font-size: 1.2rem;
  }
  
  .start-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  #quiz-container {
    max-width: 90%;
    margin: 20px auto;
    padding: 15px;
  }
  
  #progress-bar-container {
    width: 90%;
  }

/* Ajuste aún más pequeño para imágenes en móviles pequeños */
  .quiz-options button img {
    width: 50%;
    height: auto;
    margin-bottom: 6px;
  }
	.quiz-options button {
    max-width: 60%;
    margin: 0 auto; /* Para centrar el botón más pequeño */
  }
	
	#text-start-button {
    position: absolute;
    left: 50%;
    top: 60%; /* Un poco por debajo del centro vertical */
    transform: translate(-50%, -50%);
    z-index: 10; /* Sobre la imagen */
    width: auto;
    padding: 12px 25px; /* Ajusta para tamaño un poco menor */
    font-size: 1.3rem;   /* Reducido ligeramente */
  }
	.hero-section {
    position: relative; /* Asegura que el botón absoluto se base en este contenedor */
  }
}

/* Estilos para móviles (< 768px) */
@media screen and (max-width: 767px) {
  /* Hero section adaptativa */
  .hero-section {
    height: auto;
  }
  
  .hero-image-container img {
    height: 200px;
    object-position: center;
  }
  
  .game-intro {
    padding: 0 15px;
    margin: 25px auto;
  }
  
  .game-intro h2 {
    font-size:2.2rem;
  }
  
  .intro-text p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
  
  .highlight {
    font-size: 1.1rem;
    margin: 15px 0;
  }
  
  .quote {
    padding: 0 10px;
    font-size: 0.9rem;
  }
  
  /* Ajustar opciones del quiz a una columna en lugar de dos */
  .quiz-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Ajustar botones */
  .quiz-options button {
    aspect-ratio: 16/9; /* Cambiar proporción para móviles */
  }
  
  .option-text {
    font-size: 0.9rem;
  }
  
  /* Ajustes para la barra de progreso y navegación */
  #progress-bar-container {
    width: 95%;
    height: 10px;
    margin: 15px auto;
  }
  
  #question-info {
    font-size: 0.9rem;
    margin: 5px auto;
  }
  
  #back-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-right: 0;
    margin: 10px 0;
  }
  
  #back-button {
  color: white !important;           /* Forzar texto blanco */
  background: linear-gradient(to right, #007b7d, #00a1a4) !important;  /* Mantener fondo visible y sólido */
  text-shadow: none !important;      /* Eliminar sombras que oscurecen */
  box-shadow: 0 3px 6px rgba(0, 123, 125, 0.8) !important;  /* Sombra suave para que destaque */
}
  
  /* Preguntas */
  .quiz-question h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding: 0 5px;
  }
  
  #next-button {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-top: 20px;
  }
	
/* Ajuste aún más pequeño para imágenes en móviles pequeños */
  .quiz-options button img {
    width: 50%;
    height: auto;
    margin-bottom: 6px;
  }
	.quiz-options button {
    max-width: 60%;
    margin: 0 auto; /* Para centrar el botón más pequeño */
  }
}

/* Estilos para móviles pequeños (< 480px) */
@media screen and (max-width: 479px) {
  .hero-image-container img {
    height: 150px;
  }
  
  .game-intro h2 {
    font-size: 1.4rem;
  }
  
  .start-button {
    padding: 10px 20px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  /* Redimensionar imágenes en opciones */
  .quiz-options button {
    aspect-ratio: 3/2;
  }
  
  .option-text {
    font-size: 0.85rem;
    padding: 10px 5px;
  }
  
  /* Ajustes adicionales para mejorar la legibilidad */
  .image-click-hint {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  
  .pulse-dot {
    width: 8px;
    height: 8px;
  }
  
  /* Arreglar problema con botón de volver */
  #back-button .back-button-icon {
    width: 14px;
    height: 14px;
  }
  
  #back-button-text {
  color: white !important;
  text-shadow: none !important;
}
	.quiz-options button img {
    width: 65%;
    height: auto;
    margin-bottom: 8px;
  }
	
	/* Ajuste aún más pequeño para imágenes en móviles pequeños */
  .quiz-options button img {
    width: 50%;
    height: auto;
    margin-bottom: 6px;
  }
	.quiz-options button {
    max-width: 60%;
    margin: 0 auto; /* Para centrar el botón más pequeño */
  }
}

/* Mejoras para pantallas táctiles */
@media (hover: none) {
  /* Eliminar efectos hover que pueden causar problemas en dispositivos táctiles */
  .quiz-options button:hover {
    transform: none;
    box-shadow: none;
  }
  
  .start-button:hover {
    transform: none;
  }
  
  /* Aumentar área táctil para botones */
  .quiz-options button, 
  .start-button,
  #next-button,
  
#back-button, 
#back-button * {
  color: white !important;
  text-shadow: none !important;
}
  /* Mejorar feedback táctil */
  .quiz-options button:active,
  .start-button:active,
  #next-button:active,
  #back-button:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* Asegurar que la sección de resultados sea responsive */
@media screen and (max-width: 767px) {
  /* Estilos para los resultados */
  #result-container {
    padding: 15px;
  }
  
  #result-container h2 {
    font-size: 1.4rem; 
  }
  
  .personality-description {
    font-size: 0.9rem;
    padding: 0 5px;
  }
  
  .car-recommendations {
    flex-direction: column;
  }
  
  .car-card {
    width: 100%;
    margin: 10px 0;
  }
  
.car-card .car-image:hover {
  transform: scale(1.05) rotate(1deg) !important;
  box-shadow: 
    0 6px 25px rgba(0, 123, 125, 0.35),
    0 0 0 2px #00b4b8,
    inset 0 0 20px rgba(0, 180, 184, 0.3) !important;
}

.car-card .car-image::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: -1;
}

  .car-image {
    height: 180px;
  }
  
  .car-card h3 {
    font-size: 1.2rem;
  }
  
  .car-price {
    font-size: 0.9rem;
  }
  
  .car-description {
    font-size: 0.85rem;
  }
  
  .cotizar-button {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
  }
  
  #restart-button {
    width: 100%;
    max-width: 250px;
    margin: 15px auto;
    display: block;
  }
}

/* Orientación landscape en móviles (cuando el ancho es mayor que el alto) */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-image-container img {
    height: 140px;
  }
  
  .game-intro {
    margin: 15px auto;
  }
  
  .intro-text {
    margin: 15px 0;
  }
  
  .quiz-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .quiz-options button {
    aspect-ratio: 3/2;
  }
  
  .quiz-question h2 {
    margin-bottom: 15px;
	font-size: 1.5rem;
  }
  
  #next-button {
    margin-top: 10px;
  }
}
/* Versión móvil */
@media (max-width: 768px) {
  .car-card .car-image {
    width: 160px !important;
    height: 160px !important;
    margin: 25px auto 15px !important;
  }
}

footer {
  position: relative !important;
  z-index: 20;
  clear: both;
  width: 100%;
  background: #fff; /* Ajusta según el color real de tu footer */
}

/* Añade esto al final de tu CSS */
@keyframes smoothScroll {
  from { scroll-margin-top: 0; }
  to { scroll-margin-top: 100px; }
}

#quiz-container {
  scroll-margin-top: 100px; /* Espacio de seguridad */
  animation: smoothScroll 0.8s ease-out;</style>
<!-- end Simple Custom CSS and JS -->
