.comparador-section {
  padding: 2rem 0;
  position: relative;
}

.comparador-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: start;
}

.comparador-top .comparador-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.comparador-top .comparador-item:nth-child(1) {
  align-items: center;
  height: 100%;
}

.comparador-item h3 {
  font-family: "Estricta Bold", sans-serif;
  text-transform: uppercase;
  border: none;
  text-align: center;
  font-size: 1.5rem;
  color: #545454;
}

.comparador-item select {
  font-family: "Estricta Bold", sans-serif;
  text-transform: uppercase;
  border: none;
  text-align: center;
  font-size: 1.5rem;
  color: #545454;
}

.moto-selector {
  border: 2px dashed #ddd;
  padding: 2rem 1rem;
  border-radius: 8px;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: border-color 0.3s ease;
  width: 100%;
  margin: 1rem 0;
}

.moto-selector:hover {
  border-color: #143f90;
}

.moto-selected {
  border: 2px solid #545454;
  background-color: #f8f9fa;
}

.add-icon {
  font-size: 3rem;
  color: #545454;
  margin-bottom: 1rem;
}

.comparador-table {
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.comparador-table .specs-section h3 {
  padding: 0.3rem 0;
  border-bottom: #143f90 2px solid;
  padding: 0.5rem 0.5rem;
}

.specs-section {
  margin-bottom: 3rem;
}

.specs-section:last-child {
  margin-bottom: 0;
}

.table-comparador {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.table-comparador thead th {
  border: none;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  /* o poné 100% si lo preferís */
  z-index: 999;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  font-size: 1rem;
  color: inherit;
}

.table-comparador .highlighted-row td {
  background-color: #f1f3f5 !important;
}

.table-comparador tbody td {
  vertical-align: middle;
  border-color: #dee2e6;
}

.descripcion-comparador p {
  width: 50%;
  text-align: center;
  margin: auto;
}

.spec-label {
  font-family: "Estricta Bold", sans-serif;
  color: #545454;
  text-transform: uppercase;
  width: 20%;
}

.spec-label-mobile {
  font-family: "Estricta Bold", sans-serif;
  color: #545454;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  background-color: #f1f3f5 !important;
}

.spec-value {
  text-align: center;
  font-weight: 500;
  width: 23%;
}

.empty-spec {
  color: #545454;
  font-style: italic;
}

.close-button-comparador {
  position: absolute;
  top: -10px;
  right: 0px;
  border: none;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 12px;
  background-color: #143f90;
  color: white;
}

#button-limpiar-seleccion {
  position: absolute;
  top: -30px;
  right: 0px;
  color: #143f90;
  text-transform: uppercase;
  border-bottom: 1px solid #143f90;
  cursor: pointer;
}

.encabezado-comparador {
  margin-top: 70px;
  background-image: url("/bundles/frontend/img/comparador/top_header.jpg");
  height: 250px;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}

.encabezado-comparador-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: auto;
}

.descripcion-comparador {
  padding: 50px 0px 50px 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Estricta Regular", sans-serif;
}

.descripcion-comparador h3 {
  font-family: "Estricta Medium", sans-serif;
  text-transform: uppercase;
  color: #545454;
  font-size: 1.4rem;
}

.descripcion-comparador p {
  font-family: "Estricta Regular", sans-serif;
  color: #545454;
  font-size: 1.2rem;
  padding: 0px 50px;
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .spec-label {
    display: none;
  }

  .spec-value:nth-child(3) {
    display: none;
  }

  .table-comparador .highlighted-row td {
    background-color: white !important;
  }

  .encabezado-comparador {
    height: 101px;
    background-image: url("/bundles/frontend/img/comparador/m_top_header.jpg");
  }

  .encabezado-comparador-content {
    padding: 0px 20px;
  }

  .encabezado-comparador-content img {
    width: 100px;
  }

  .titulo-encabezado-comparador {
    font-size: 25px;
  }

  .descripcion-comparador h2 {
    font-size: 2.5rem;
  }

  .descripcion-comparador h3 {
    font-size: 1.2rem;
  }

  .descripcion-comparador p {
    font-size: 1rem;
    padding: 0px 20px;
  }

  .spec-value:nth-child(3) {
    display: none;
  }

  .table-comparador .highlighted-row td {
    background-color: white !important;
  }

  #button-limpiar-seleccion-mobile {
    position: relative;
    color: #143f90;
    text-transform: uppercase;
    border-bottom: 1px solid #143f90;
    cursor: pointer;
    margin: auto;
    text-align: center;
    width: 32%;
  }

  .yamaha-link {
    color: #143f90;
    font-family: "Estricta Regular", sans-serif;
    font-size: 16px t;
    text-transform: uppercase;
  }

  .comparador-top {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .comparador-table {
    padding: 1rem;
  }

  .spec-value {
    font-size: 10px;
  }

  .moto-selector {
    height: 150px;
  }

  .comparador-item h3 {
    font-size: 1rem;
  }

  .comparador-item select {
    font-size: 1rem;
  }

  .comparador-table .section_title {
    font-size: 2rem;
  }
}
