* {
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  background: #fff;
}
a {
   outline: 0;
   -webkit-transition: all 0.35s;
  -moz-transition: all 0.35s;
  transition: all ;
}

main{
	max-width:1440px;
	width:100%;
	margin:0 auto;
}
header{
	margin:0px auto;
}
p{
	font-size: 12px;
}
h3 {
	font-weight: bold;
}

.cotizacion-grid {
  display: grid;
  grid-template-columns: 67% 30%;
  gap: 1rem;
  align-items: start;
  font-size: 14px;
}

.col {
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .cotizacion-grid {
    grid-template-columns: 1fr;
  }
}

.nota-legal {
  border-top: 1px solid #ccc;
  margin-top: 2rem;
  padding-top: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 0.95rem;
  color: #555;
  text-align: left;
  padding-bottom: 40px;
}

#listado .bgimagen {
  background-color: #f8f8f8 !important;
  padding: 30px 0;
  max-width: 600px;
  margin: 0 auto;
}
#listado .bgimagen img {
  max-width: 90%;
  display: block;
  margin: 0 auto;
}


.gracias .bgimagen {
  background: url(../images/fondo_graciasv2.png);
  text-align: center;
  padding:15px;
  height: 350px;
  background-size: cover;
  background-position: center center;
}
.gracias .bgimagen img {
  margin-top: 50px;
  max-width: 400px;
}

@media (max-width: 1024px) {
  .gracias .bgimagen {
    background: url(../images/fondo_graciasv2.png);
    text-align: center;
    padding:15px;
    height: 250px;
    background-size: cover;
    background-position: center center;
  }
  .gracias .bgimagen img {
    margin-top: 30px;
    max-width: 300px;
  }
}

@media (max-width: 1200px) {
  .gracias .bgimagen {
    background: url(../images/fondo_graciasv2.png);
    text-align: center;
    padding:15px;
    height: 300px;
    background-size: cover;
    background-position: center center;
  }
  .gracias .bgimagen img {
    margin-top: 60px;
    max-width: 300px;
  }
}


.modelo img {
  width: 100%;
  height: auto;
  margin: 1rem 0;
}

.btn-enviar {
  background: var(--color-primario);
  color: var(--color-primario-contraste);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  font-size: 1.6rem;
  padding: 1.4rem 2rem;
}
.btn-enviar:hover {
  background-color: var(--color-secundario);
  color: var(--color-secundario-contraste);
}

.info {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
}

.mensaje-seguro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #111;
}

.mensaje-seguro img {
  width: 20px;
  height: auto; /* 👈 evita distorsión */
  flex-shrink: 0;
}

.detalle-auto {
  margin-top: 1rem;
}
.detalle-auto .label {
  text-align: left;
  font-size: 12px;
}
.detalle-auto .valor {
  text-align: right;
  font-size: 12px;
}

.linea {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ccc;
  font-size: 1rem;
  color: #111;
}

.linea:last-child {
  border-bottom: none;
}

.precio .valor {
  font-weight: bold;
  font-size: 1.25rem;
}

.label-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
  gap: 10px 30px; /* Espacio entre filas y columnas */
}


@media (max-width: 1024px) {

  .col.modelo {
    order:0 !important;
  }
  .col.tus-datos {
    order:1 !important;
  }

  .stepper {
    padding: 0 !important;
    justify-content: left !important;
  }
  .stepper .step {
    width: 100% !important;
  }
  .stepper .line {
    display: none;
  }
  #tabs .tab-container {
    display: grid !important;
  }
  section#listado {
    padding: 0 !important;
  }
}

@media (max-width: 768px) {
  .label-grid {
    grid-template-columns: 1fr; /* En móvil, una sola columna */
  }
  section#listado .model-grid {
    padding: 0 !important;
  }
  section#listado .model-card {
    width: 100% !important;
  }
  section#listado .izquierda .model-card.version {
    align-items: start;
    background-color: #cccbcb;
  }
  section#listado .izquierda .model-card.version img {
      width: 40%;
  }
}

.foreign {
  margin-bottom: 20px;
  float: right;
}

input[type="radio"],input[type="checkbox"] {
  width: auto !important;
}

form .campo,
form select {
  width: 100%;
  margin: 0.2rem 0 0.9rem;
  padding: 1rem;
  font-size: 1.5rem;
  border: 1px solid #000;
  border-radius: 5px;
  background-color: #fff;
  color: #111;
  box-sizing: border-box;
}

form input::placeholder {
  color: #aaa;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
legend {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding: 0;
}

.contacto-form {
  font-size: 14px;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: 20px;
}

.radio-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  white-space: nowrap; /* evita que salte de línea */
}


input[type="radio"] {
  accent-color: #555; /* color del círculo */
  width: 18px;
  height: 18px;
  margin: 0px;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.checkbox-wrap input[type="checkbox"] {
  accent-color: #777;
  width: 18px;
  height: 18px;
  margin: 0px;
}
.checkbox-wrap p { 
  font-size:14px;
  padding: 0;
  margin: 0;
}

.checkbox-wrap a {
  color: #000;
  text-decoration: underline;
}

.gracias {
  padding:0 4rem;
}

.gracias h1 {
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 0;
}
.gracias h2 {
  font-size: 21px;
  font-weight: 500;
  margin-top: 0;
}

.gracias .circle {
  width: 30px;
  height: 30px;
  background-color: var(--color-secundario);
  color: var(--color-secundario-contraste);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
  line-height: 0px;
  padding-top: 1px;
}
.gracias .circle i {
  font-size: 28px;
}


.gracias h3 {
  margin-bottom: 0;
}
.gracias p {
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .cotizacion-layout {
    grid-template-columns: 1fr;
  }

  .modelo {
    order: 1;
  }

  .formulario {
    order: 2;
  }

  .info {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .intro h1 {
    font-size: 1.4rem;
  }

  .intro p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .cotizacion-layout {
    padding: 1rem;
    gap: 1rem;
  }

  .btn-enviar {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
  }

  input, select {
    font-size: 1rem;
  }

  .intro h1 {
    font-size: 1.2rem;
  }

  .intro p {
    font-size: 0.9rem;
  }

}




.resumen-datos {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.resumen-datos .bloque {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .resumen-datos .bloque {
    flex: 1 1 45%;  /* dos columnas de 50% */
  }
}

.resumen-datos img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.resumen-datos strong {
  display: block;
  font-size: 19px;
  margin-bottom: 0.3rem;
}

.resumen-datos p strong {
  display: block;
  font-size: 14px;
}

.resumen-datos p {
  margin: 0;
  color: #000;
}

.requerido {
  width: 100%;
  margin-bottom: 10px;
  display: block;
  font-size: 12px;
}


section#listado {
  font-family: 'Segoe UI', sans-serif;
  padding: 10px 20px;
  background-color: #fff;
}

section#listado.list-modelos,
section#listado.list-versiones {
  text-align: center;
}

section#listado.list-modelos p,
section#listado.list-versiones p{
  font-size: 14px;
  margin-top: 20px;
  text-align: left;
}

.intro {
  text-align: left;
  padding: 1rem 10px 0 10px;
}
.intro p {
  font-size: 22px;
}

section#listado .model-grid {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 10px 60px;
}

section#listado.list-modelos .model-grid {
  justify-content: center;
}

section#listado .model-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  width: 31%;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) and (max-width: 1000px) {
  section#listado .model-card {
    width: 48%;
  }
}

@media (min-width: 1200px) {
  section#listado .model-card {
    width: 23%;
  }
}




section#listado .model-grid.versiones .model-card {
  width: 31%;
}

@media (min-width: 768px) and (max-width: 1199px) {
  section#listado .model-grid.versiones .model-card {
    width: 47% !important;
  }
}

@media (min-width: 1200px) {
  section#listado .model-grid.versiones .model-card {
    width: 31% !important;
  }
}



section#listado .model-card.version {
  width: 100% !important;
}

section#listado .model-card a {
  text-decoration: none;
  color: #000;
}

section#listado .model-card a:hover .cta-button {
  background-color: var(--color-secundario) !important;
  color: var(--color-secundario-contraste) !important;
}

section#listado .model-grid .model-card:hover, 
section#listado .versiones .model-card:hover {
  transform: translateY(-5px);
}

section#listado .model-card img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

section#listado .model-name {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  white-space: nowrap;
}

section#listado .model-version {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 20px;
}

section#listado .model-price,
section#listado .model-installment {
  font-size: 14px;
  color: #555;
  margin: 2px 0;
}

section#listado .model-price span,section#listado .model-installment span {
  font-size: 15px;
  display: block;
}

section#listado .model-price strong,
section#listado .model-installment strong {
  color: #000;
}

section#listado .cta-button {
  margin-top: 20px;
  padding: 12px 0;
  width: 100%;
  background-color: var(--color-primario);
  color: var(--color-primario-contraste) !important;
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}


.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
}

.stepper .step {
  display: flex;
  align-items: center;
  text-align: center;
  flex: revert;
  min-width: 100px;
}

.stepper .circle {
  width: 30px;
  height: 30px;
  background-color: var(--color-primario);
  color: var(--color-primario-contraste);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
  line-height: 0px;
  padding-top: 14px;
}

.stepper .step.active .circle {
  background-color: var(--color-secundario);
  color: var(--color-secundario-contraste);
}
.stepper .step.active .circle {
  padding-top: 3px !important;
}
.stepper .step.active .circle i {
  font-size: 26px;
}

.stepper .label {
  font-size: 14px;
  font-weight: bold;
  color: #666;
}

.stepper .label a {
  color: #000;
  text-decoration: none;
}
.stepper .label a:hover {
  text-decoration: underline;
}

.stepper .line {
  height: 2px;
  flex: 1;
  background-color: #ccc;
  min-width: 30px;
}

#tabs {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

#tabs .tab-container {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

#tabs .tab-container::-webkit-scrollbar {
  display: none; /* Chrome */
}

#tabs .tab {
  flex-shrink: 0;
  padding: 8px 16px;
  background-color: var(--color-primario);
  color: var(--color-primario-contraste);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
  border-bottom: 1px solid #999;
}

#tabs .tab:hover {
  background-color: var(--color-secundario);
  color: var(--color-secundario-contraste);
}

#tabs .tab.active {
  background-color: var(--color-secundario);
  color: var(--color-secundario-contraste);
}


.grid-layout {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 10px;
}

.grid-layout .col {
  padding: 5px;
}

.col.izquierda {
    border-right: 1px #ddd solid;
    border-radius: 0px;
}

/* Responsive: una columna bajo otra */
@media (max-width: 768px) {
  .grid-layout {
    grid-template-columns: 1fr;
    display: block !important;
  }
}

input.error,select.error,.bootstrap-select button.error {
  border:1px solid red;
  background-color: #ffdcdc;
}
div.error {
  padding:5px;
  border:1px solid red;
  background-color: #ffdcdc;
}


/* Cargador CSS */
.lds-ripple,
.lds-ripple div {
  box-sizing: border-box;
}
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.lds-ripple div {
  position: absolute;
  border: 4px solid currentColor;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 8px;
    height: 8px;
    opacity: 0;
  }
  4.9% {
    top: 36px;
    left: 36px;
    width: 8px;
    height: 8px;
    opacity: 0;
  }
  5% {
    top: 36px;
    left: 36px;
    width: 8px;
    height: 8px;
    opacity: 1;
  }
  100% {
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}
#loading {
  display: none;
}
#noresults {
  display: none;
}
#noresults p {
  text-align: center !important;
}

.volver a {
  font-size: 14px;
  margin-top: 30px;
  color: #000;
  display: block;
  text-decoration: underline;
}
.volver a img {
  vertical-align: middle;
  width: 13px;
}
.cotizacion-layout p{
  font-size: 14px;
  font-weight: normal;
}



.select-wrap {
  position: relative;
  display: flex;
  /*gap: 20px;*/
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}

.select-wrap select {
  width: 100%;
  padding: 5px;
  font-size: 13px;
  background-color: white;
  border: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-weight: bold;
}

.select-wrap label {
    font-size: 12px;
    position: relative;
}

.select-wrap label::after {
  content: "";
  position: absolute;
  top: 34px;
  right: 5px;
  width: 30px;
  height: 30px;
  pointer-events: none;
  transform: translateY(-50%);
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23000" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>');  background-size: contain;
  background-repeat: no-repeat;
}

.select-wrap select.select-modelo {
    padding: 0px;
    font-size: 24px;
}

.select-wrap select.select-version {
    padding: 0px;
    font-size: 20px;
}

.select-wrap select option{
    font-size: 14px;
    padding: 5px;
}

.ver-detalles {
  width: 100%;
  text-align: center;
  display: block;
  font-weight: bold;
}
.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%;
    display: block;
}
.bootstrap-select>.dropdown-toggle {
    border: 1px #000 solid;
    width: 100%;
    padding: 1.0rem;
    margin: 0.2rem 0 0.9rem;
}

.bs-searchbox .form-control {
    width: 96%;
    border: 1px #ccc solid;
    font-size: 14px;
    padding: 5px;
}
.contacto-form label {
  margin-bottom: 20px;
}
.contacto-form label div label {
  margin-bottom: 0px;
}

