/* Importar las fuentes necesarias */
@font-face {
  font-family: "NouvelR Regular";
  font-style: normal;
  font-weight: normal;
  src: local("NouvelR Regular"),
    url("/fonts/NouvelRRegular.woff") format("woff");
}

@font-face {
  font-family: "NouvelR Light";
  font-style: normal;
  font-weight: normal;
  src: local("NouvelR Light"), url("/fonts/NouvelRLight.woff") format("woff");
}

@font-face {
  font-family: "NouvelR Book";
  font-style: normal;
  font-weight: normal;
  src: local("NouvelR Book"), url("/fonts/NouvelRBook.woff") format("woff");
}

@font-face {
  font-family: "NouvelR Semibold";
  font-style: normal;
  font-weight: normal;
  src: local("NouvelR Semibold"),
    url("/fonts/NouvelRSemibold.woff") format("woff");
}

@font-face {
  font-family: "NouvelR Bold";
  font-style: normal;
  font-weight: normal;
  src: local("NouvelR Bold"), url("/fonts/NouvelRBold.woff") format("woff");
}

@font-face {
  font-family: "NouvelR Extrabold";
  font-style: normal;
  font-weight: normal;
  src: local("NouvelR Extrabold"),
    url("/fonts/NouvelRExtrabold.woff") format("woff");
}

/* Estilos generales */

body {
  font-family: "NouvelR Regular", sans-serif !important;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "NouvelR Bold", sans-serif !important;
}

.heading h1,
.heading h2,
.heading h3,
.heading h4,
.heading h5 {
  display: inline-block;
  border-bottom: solid 3px var(--accent-color);
  line-height: 1.1;
  margin-bottom: 0;
  padding-bottom: 10px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.heading h1 i[class^="fa"],
.heading h2 i[class^="fa"],
.heading h3 i[class^="fa"],
.heading h4 i[class^="fa"],
.heading h5 i[class^="fa"] {
  display: inline-block;
  background: var(--secondary-color);
  width: 30px;
  height: 30px;
  vertical-align: middle;
  text-align: center;
  color: #fff;
  font-size: 12px;
  line-height: 30px;
  border-radius: 15px;
}

@media screen and (max-width: 430px) {
  .heading h1,
  .heading h2,
  .heading h3,
  .heading h4,
  .heading h5 {
    width: min-content;
  }
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: none;
  color: var(--primary-color);
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content:not(:has(section.cita-previa)) {
  flex-grow: 1;
  display: flex;
}

/* Necesario para que las páginas que contiene "markdown" carguen correctamente */
#content:not(:has(.markdown-html)) {
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.home-carousel .owl-controls {
  position: absolute;
  margin-left: 100vh;
  top: 46vh;
}

/* Estilos del header */

.navbar-brand {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  text-decoration: none;
  gap: 0.5rem;
}

.navbar-title {
  color: var(--secondary-color);
  margin: 0 auto;
}

.navbar-default {
  background-color: var(--primary-color);
}

.navbar-default .navbar-nav > li > a:hover {
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

.navbar-default .navbar-nav > li > a {
  color: #e7e7e7;
  position: relative;
  display: inline-block;
}

.navbar-default .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
  display: inline-block;
}

.navbar-default .navbar-nav > li > a:hover::after {
  width: 100%;
}

.navbar-default .navbar-nav > .active > a::after {
  width: 100%;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover {
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--secondary-color);
  background-color: transparent;
}

.navbar-logo {
  width: 35px;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* Estilos del footer */

#footer {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  padding-top: 25px;
}

#footer ul a {
  color: var(--secondary-color);
}

#footer h4 {
  color: var(--accent-color);
}

#copyright {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 15px 0;
}

.legal-pages li a:hover {
  text-decoration: underline !important;
}

.social-networks {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social-networks li {
  margin: 0 10px;
}

.social-networks a {
  text-decoration: none;
  color: inherit;
}

.social-networks li:hover i {
  color: var(--accent-color);
}

.social-networks i {
  font-size: 1.6rem;
}

/* Estilos de la sección de vehículos */

.discover-link {
  font-weight: bold;
  text-decoration: none !important;
  color: inherit !important;
  position: relative;
  border: none;
}

.discover-link::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  position: absolute;
  bottom: -2px;
  left: 0;
  transition: background-color 0.3s ease;
  text-decoration: none !important;
}

.discover-link:hover::after {
  background-color: var(--primary-color);
  text-decoration: none;
}

.car-specs {
  background-color: #f2f2f2;
  padding: 10px;
  text-align: center;
}

.super-primary-button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

.super-primary-button:hover {
  background-color: var(--accent-color-hover);
  color: var(--primary-color);
}

.cta-button-tasa {
  padding: 10px 20px;
  background-color: var(--primary-color);
  border: 0;
  color: var(--secondary-color);
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.cta-button-tasa:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.image-animation {
  transition: transform 0.3s ease !important;
}

.image-animation:hover {
  transform: scale(1.1) !important;
  transition: transform 0.3s ease !important;
}

/* Estilos de los botones */

.btn-template-transparent-black {
  transition: transform 0.3s ease;
}

.btn-template-transparent-black:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

/* Estilos de la sección de cita previa */

.cita-previa {
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  background-repeat: no-repeat;
  align-items: center;
}

.cita-previa-container {
  background-color: #f2f2f2;
  padding: 40px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.cita-previa-container h2 {
  margin-bottom: 20px;
}

.cita-previa-container p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.cita-previa .input-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 20px;
}

.cita-previa .input-group input {
  padding: 10px;
  border: 1px solid var(--primary-color);
}

@media screen and (max-width: 768px) {
  .cita-previa {
    width: 100%;
  }
}

.separator {
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  margin: 20px 0;
}

.homepage > .owl-controls {
  display: none !important;
}

#footer ul a {
  text-decoration: none;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle {
  background-color: transparent !important;
  border-color: transparent !important;
}

@media screen and (min-width: 1200px) {
  .border-right {
    border-right: 1px solid #ddd;
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  .md-w-full {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .sm-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
  }

  .content-blog img {
    width: 90%;
  }

  .content-blog {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .content-blog .read-more {
    margin-top: 10px;
  }
}

@media screen and (min-width: 768px) and (max-width: 805px) {
  .container {
    width: 100%;
  }

  .navbar-brand {
    font-size: 0.85em;
  }

  #navigation a {
    font-size: 0.7em;
  }
}

@media screen and (min-width: 805px) and (max-width: 864px) {
  .container {
    width: 100%;
  }

  .navbar-brand {
    font-size: 0.9em;
  }

  #navigation a {
    font-size: 0.65em;
  }
}

@media screen and (min-width: 864px) and (max-width: 1001px) {
  .container {
    width: 100%;
  }

  .navbar-brand {
    font-size: 1em;
  }

  #navigation a {
    font-size: 0.75em;
  }
}

@media screen and (min-width: 1001px) and (max-width: 1250px) {
  .container {
    width: 100%;
  }

  .navbar-brand {
    font-size: 1.1em;
  }

  #navigation a {
    font-size: 0.85em;
  }
}

/* Car-gallery */

.car-image-container {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
}

.car-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.car-gallery {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  justify-content: space-between;
}

.car-image-container {
  flex: 1 1 65%;
  text-align: center;
  max-width: 600px;
  max-height: 400px;
  margin: auto;
  position: relative;
}

.car-image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.view-more-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--secondary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-more-btn i {
  font-size: 18px;
}

.car-image-thumbnails {
  flex: 1 1 30%;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 25px;
  padding: 15px;
  justify-items: center;
  align-items: stretch;
  height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.car-image-thumbnails::-webkit-scrollbar {
  width: 8px;
  background-color: var(--secondary-color);
}

.car-image-thumbnails::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.car-image-thumbnails .thumbnail {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.car-image-thumbnails .thumbnail:hover {
  transform: scale(1.1);
}

@media (min-width: 1024px) {
  .car-image-thumbnails {
    visibility: visible;
    opacity: 1;
    display: grid;
  }

  .view-more-btn {
    display: none;
  }
}

@media (max-width: 1024px) {
  .car-gallery {
    flex-direction: column;
    align-items: center;
  }

  .car-image-container {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .car-image-thumbnails {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-y: auto;
    max-height: 60vh;
    padding-bottom: 20px;
  }

  .view-more-btn {
    display: flex;
  }

  .car-image-thumbnails .thumbnail {
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .car-image-thumbnails {
    gap: 15px;
    max-height: 250px;
  }

  .car-image-container img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .car-image-thumbnails {
    gap: 10px;
    max-height: 200px;
  }

  .car-image-container img {
    height: 250px;
  }
}

.accordion-item span {
  font-size: 1.5rem !important;
  font-family: "NouvelR Regular", sans-serif !important;
}

.styled-accordion .accordion-item {
  border: 0 !important;
}

.accordion-button-vehiculos {
  border: 0;
  background-color: #f7f7f7;
  color: var(--primary-color);
  padding: 1rem;
  margin: 0;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  height: 56px;
}

.accordion-button-vehiculos:not(.collapsed) {
  background-color: #e7e7e7;
}

.accordion-button-vehiculos::after {
  position: absolute;
  right: 3rem;
  font-size: 16px;
  font-family: "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  content: "\f078";
}

.accordion-button-vehiculos.collapsed::after {
  content: "\f077";
}

.accordion-body {
  border-left: 1px solid #e1e1e1;
  border-right: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
}

/* Sección FAQ */

.faq-container {
  display: flex;
  justify-content: center;
}

.faq-item {
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 30px 30px;
}

.faq-item h4 {
  padding: 0 1rem;
}

.faq-img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  margin-bottom: 1rem;
}

.faq-item p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  text-overflow: ellipsis;
}

.faq-item p:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.faq-item p:active {
  text-decoration: none;
  color: var(--primary-color);
}

.arrow {
  font-size: 2rem;
  margin-left: 1rem;
}

.faq-item p:hover .arrow {
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 1000px) {
  .faq-container {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .faq-item {
    max-width: 80%;
    margin: 20px 40px;
  }
}

@media (max-width: 768px) {
  .faq-item h4 {
    font-size: 1.6rem;
  }

  .faq-item p {
    font-size: 1.4rem;
  }
}

@media (max-width: 536px) {
  .faq-container {
    padding: 0.5rem;
  }

  .faq-img {
    height: 15rem;
  }

  .faq-item p {
    font-size: 1.3rem;
    padding: 0.5rem;
    word-wrap: break-word;
  }

  .arrow {
    font-size: 1.8rem;
  }
}

/* Sección de preguntas dentro de FAQ */

.accordion-button-preguntas {
  border: 0;
  background-color: #f7f7f7;
  color: var(--primary-color);
  padding: 2rem;
  margin: 0;
  position: relative;
  font-size: 2rem;
  cursor: pointer;
}

.accordion-item {
  max-width: 90vh;
  margin-bottom: 20px;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-body {
  padding: 1rem;
}

.accordion-button-preguntas::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  position: absolute;
  right: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-button-preguntas:not(.collapsed)::after {
  content: "\f077";
}

@media (max-width: 1200px) {
  .accordion-button-preguntas {
    font-size: 1.7rem;
  }
}

@media (max-width: 1024px) {
  .accordion-item {
    max-width: 75vh;
  }
}

@media (max-width: 800px) {
  .accordion-button-preguntas {
    font-size: 1.6rem;
  }

  .accordion-item {
    max-width: 65vh;
  }
}

@media (max-width: 536px) {
  .accordion-button-preguntas {
    font-size: 1.5rem;
  }
}

#respuestas {
  font-size: 1.7em;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  padding: 50px;
  text-align: center;
  margin-bottom: -2rem;
  width: 100%;
}

.options {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 50px;
  width: 90%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.option {
  background-color: var(--secondary-color);
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  text-align: center;
  max-width: 300px;
}

.option i {
  font-size: 2.5em;
  color: var(--primary-color);
}

.option h4 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.option p {
  color: #555;
  margin-bottom: 20px;
}

/* Sección para contactar con las preguntas predefinidas */
select,
textarea {
  width: 60%;
  margin: 0 auto;
  display: block;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

select {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

textarea {
  height: 20rem;
  resize: none;
}

.button-container {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Sección de contacto */

#contacto .panel-default {
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
    0 0 0 1px rgba(10, 10, 10, 0.02);
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.contacto-form .panel-heading {
  background-color: var(--primary-color);
  padding: 2rem;
}

.panel-heading h3 {
  color: var(--secondary-color);
  font-weight: bold;
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
}

.form-control-style {
  margin: 0;
}

.form-check-inline {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.location .panel-heading {
  background-color: var(--primary-color);
  padding: 2rem;
}

.location .panel-body a {
  color: #333;
  text-decoration: none;
  text-transform: lowercase;
}

.location .panel-body a i {
  margin-left: 0.5rem;
  color: var(--accent-color);
  transition: color 0.3s;
}

.location .panel-body a:hover {
  color: #333;
}

.location .panel-body a:hover i {
  color: var(--primary-color);
}

.location .panel-body hr {
  border: 1px solid #ddd;
}

.location .panel-body .Content {
  margin: 1rem 0;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: break-word;
}

.location .panel-body .image-container {
  text-align: center;
  margin-top: 1.25rem;
}

.location .panel-body .image-container img {
  max-width: 90%;
  margin-bottom: 1.25rem;
  height: auto;
}

/* Estilos del blog */

.blog-link:hover {
  text-decoration: none !important;
  color: var(--primary-color) !important;
  background-color: var(--accent-color) !important;
}

.txt-car {
  line-height: 15px;
  color: #333;
  text-transform: uppercase;
  text-align: center;
  width: max-content;
  align-self: center;
  text-decoration: none;
  font-weight: bold;
}

.txt-car:hover {
  color: #000000;
  text-decoration: none;
}

.txt-car .arrow {
  color: #efdf00;
  font-size: 1.2em;
  transition: color 0.3s ease;
  font-weight: bold;
}

.txt-car:hover .arrow {
  color: #000;
}

.blog-footer {
  display: flex;
  justify-content: flex-end;
}

.blog-footer a {
  margin-top: 25px;
  text-decoration: none;
}

.link-blog {
  font-size: 12px;
  line-height: 15px;
  color: #333;
  text-transform: uppercase;
  text-align: center;
  width: max-content;
  align-self: center;
  text-decoration: none;
  font-weight: bold;
}

.link-blog:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.link-blog .arrow {
  color: var(--accent-color);
  font-size: 1.2em;
  transition: color 0.3s ease;
  font-weight: bold;
}

.link-blog:hover .arrow {
  color: var(--primary-color);
}

.panel.sidebar-menu ul.tag-cloud li a {
  border: solid 1px;
  color: var(--primary-color);
}

.blog-link {
  color: var(--primary-color);
  text-decoration: none;
}

.panel.sidebar-menu ul.tag-cloud li.active a {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

#blog-listing-medium .post h2 a:hover {
  color: inherit;
  text-decoration: none;
}

/* Estilos de la sección de servicios */

.card-list {
  display: flex;
  flex-wrap: wrap;
}

.card-list .card {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
}

.card-list .card-body {
  flex-grow: 1; /* Asegura que el cuerpo de la tarjeta ocupe el espacio restante */
}

.card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .card-body::after {
    display: none;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .card-text p {
    font-size: 1.2rem;
  }

  .card {
    width: 100%;
  }
}

@media (max-width: 767px) and (min-width: 556px) {
  .card-body {
    padding: 1.5rem;
  }

  .card-body::after {
    display: none;
  }

  .card-title {
    font-size: 1.8rem;
  }

  .card-text a {
    font-size: 1.5rem;
  }

  .card-img-top {
    height: auto;
    width: 100%;
  }

  .card {
    width: 70%;
    margin: 0 auto;
    margin-bottom: 2rem;
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .card-title {
    font-size: 1.5rem;
  }

  .card {
    margin: 2rem auto;
    width: 70%;
  }

  .card-text a {
    font-size: 1.2rem;
  }

  .card-img-top {
    height: auto;
    width: 100%;
  }

  .card-body::after {
    display: none;
  }
}

/* Sección de contacto --> Mapa */

#map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border: 0;
}

#map-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Estilos de la sección de quiénes somos */

#quienes-somos .panel-default {
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Estilos de la barra superior */

#top {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 0;
}

#top a {
  color: var(--secondary-color);
}

#top i {
  font-size: 20px;
}

.list-topbar-social {
  margin: 0;
}

.list-topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25em;
  padding: 0 15px;
  margin: 0;
}

.list-topbar-contact a {
  font-size: 1.1em;
}

.list-topbar-contact a i {
  position: relative;
  margin-right: 5px;
  top: 3px;
}

#top li {
  list-style: none;
  display: inline-block;
  margin-right: 10px;
}

#top li :hover {
  color: var(--accent-color);
}

@media screen and (max-width: 1100px) {
  #top {
    display: none;
  }
}

/* Estilos de la barra lateral */
@media screen and (max-width: 1280px) {
  .sidebar {
    display: none;
  }
}

.sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  background-color: var(--primary-color);
  transition: width 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  z-index: 500;
  border-radius: 18px 0 0 18px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 15px;
  color: var(--secondary-color);
  text-decoration: none;
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.icono {
  min-width: 20px;
  width: 20px;
  height: 20px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.texto {
  white-space: nowrap;
  color: var(--secondary-color);
  font-weight: bold;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar:hover {
  width: fit-content;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar:hover .texto {
  opacity: 1;
  transform: scale(1);
}

.sidebar:hover .icono {
  color: var(--accent-color);
}

.hovered {
  background-color: var(--accent-color);
}

.hovered .texto {
  color: var(--primary-color);
}

.hovered i {
  color: var(--primary-color);
}

/* Estilos de la tarjeta de cookies */

#cc-main {
  color: --var(--secondary-color) !important;
  font-family: "NouvelR Regular", sans-serif !important;
  font-size: 15px !important;
}

#cc-main .cm {
  max-width: 35rem !important;
}

/* Estilos para la modal de cita previa */

.modal-custom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.modal-custom-container {
  background-color: var(--secondary-color);
  flex-flow: row wrap;
  width: 1200px;
  max-height: 1200px;
  overflow-y: auto;
  max-width: 1200px;
  padding: 50px;
  align-items: center;
  margin: 0 auto;
  z-index: 333;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
  transition: all 2s ease;
}

.modal-custom-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-custom-overlay.active .modal-custom-container {
  transform: translateY(0);
  opacity: 1;
}

.modal-custom-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 24px;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-custom-close:hover {
  color: var(--primary-color);
}

.modal-custom-title {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--primary-color);
}

.modal-custom-content input {
  padding: 16px;
  width: calc(100% - 33px);
}

.modal-custom-content section {
  padding: 10px;
  margin-bottom: 20px;
}

.modal-custom-content section .title {
  display: flex;
  align-items: center;
}

.modal-custom-content section .number {
  background-color: var(--primary-color);
  padding: 0 10px;
  margin: 0 15px 0 0;
  color: var(--secondary-color);
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 50px;
}

.plate {
  height: 56px;
}

.plate-input {
  width: 70%;
  height: 55px;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  position: relative;
}

.plate-search button {
  max-height: 56px;
  height: 56px;
}

/* TODO: Eliminar esto cuando la búsqueda por matricula funcione correctamente */

.plate-search {
  justify-content: flex-start !important;
}

.vehicle-data,
.contact-name,
.contact-data,
.plate-search,
.address > div,
.calendar-navigation {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  gap: 10px;
}

.modal-custom-content .services {
  background-color: var(--secondary-color);
  width: 100%;
  margin: 20px 0;
}

.modal-custom-content .services ul {
  display: flex;
  text-decoration: none;
  list-style: none;
  padding: 10px 0;
  justify-content: space-between;
}

.modal-custom-content .services li {
  cursor: pointer;
  background-color: var(--secondary-color);
  display: flex;
  color: var(--primary-color);
  font-size: 0.6em;
  width: 100px;
  height: 100px;
  flex-flow: column;
  align-items: center;
  align-self: center;
  padding: 15px;
  border-radius: 0;
  justify-content: center;
  position: relative;
  transition: all 1s ease;
}

.modal-custom-content .services li:hover,
.modal-custom-container .services li.active {
  background-color: var(--accent-color);
}

.modal-custom-content .services li span {
  position: absolute;
  font-weight: 600;
  width: 100%;
  font-size: 1.4em;
  text-align: center;
  bottom: 0;
}

.modal-custom-content .services li .icon-services {
  background-color: inherit;
  max-width: 56px;
}

.modal-custom-content .additional-data,
.modal-custom-content .pickup {
  display: flex;
  justify-content: flex-start;
  margin: 20px 0 20px 0;
  align-items: center;
}

.modal-custom-content .remarks {
  padding: 15px;
  border: 1px solid #b6b6b8;
  color: #4c4c4c;
  height: 180px;
  width: 50%;
  overflow: auto;
  resize: vertical;
  margin: 0;
}

.switch-wrapper {
  padding: 16px;
}

.switch-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 12px;
  color: #333;
  font-size: 14px;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background: #e4e4e7;
  border-radius: 20px;
  margin-right: 12px;
  transition: background 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.switch-input:checked + .switch {
  background: #22c55e;
}

.switch-input:checked + .switch::after {
  transform: translateX(16px);
}

.switch-input:focus + .switch {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.modal-custom-content .center-list {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0;
  width: 100%;
}

.modal-custom-content .center-list select {
  margin: 0;
  padding: 16px;
}

.modal-custom-content .resume .table-info {
  background-color: white;
  margin: 25px 0;
  padding: 15px;
  width: 100%;
}

#car-info,
#contact-info,
#more-info,
#pickup-info {
  padding: 15px;
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.modal-custom-content .resume .table-info .title-category {
  width: 25%;
  color: var(--black-color);
  font-weight: 500;
}

.modal-custom-content #submit-form {
  height: 56px;
}

.legend {
  display: flex;
  flex-direction: column;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 16px;
  height: 16px;
}

.unavailable {
  background-color: #d1d1d1;
}

.selected {
  background-color: var(--accent-color);
}

.calendar-container {
  border: 1px solid #ddd;
  max-height: 600px;
  overflow: auto;
}

.calendar-buttons {
  display: flex;
}

.calendar-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  background-color: var(--primary-color);
  color: white;
}

.calendar-grid {
  min-width: 1000px;
}

.calendar-header > div {
  padding: 15px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-header {
  text-align: center;
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
}

.time-slot {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
}

.time {
  text-align: center;
  padding: 15px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.slot {
  padding: 15px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.slot.unavailable {
  background-color: #d1d1d1;
  cursor: not-allowed;
}

.slot.selected {
  background-color: var(--accent-color);
}

.date-small {
  font-size: 0.8em;
  font-style: italic;
}

@media (max-width: 2000px) {
  .modal-custom-container {
    width: 1100px;
    max-height: 90vh;
  }
}

@media (max-width: 1024px) {
  .modal-custom-content .services ul {
    display: flex;
    flex-flow: row wrap;
    text-decoration: none;
    list-style: none;
    padding: 10px 0;
    margin: 0 25px;
    justify-content: space-between;
  }

  .modal-custom-content .services li .icon-services {
    width: 48px;
  }

  .modal-custom-content .services li span {
    font-size: 1.2em;
  }

  .modal-custom-content .center-list select {
    width: 100%;
  }

  .modal-custom-container {
    padding: 20px;
  }
}

/* Estilos para el indicador de carga */

.loader-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #606c54;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Estilos de la notificación */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  max-width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  z-index: 3000;
}

.notification.show {
  opacity: 1;
}

.notification-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.notification-icon {
  margin-right: 10px;
  font-size: 20px;
}

.notification-message {
  flex-grow: 1;
}

/* Estilos para la información acerca del precio en la ficha de vehículo */

.contact-form input {
  margin-bottom: 20px;
  padding: 16px;
  width: 100%;
  border: solid 1px #ddd;
}

.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: solid 1px #ddd;
  color: #4c4c4c;
  height: 180px;
  overflow: auto;
  resize: vertical;
  margin-bottom: 20px;
  font-size: inherit;
  border-radius: 0;
}

.price-label {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.price-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--black-color);
  margin-bottom: 15px;
}

.car-info h4 {
  margin: 0 !important;
}

#tab-contacto .cta-button-tasa {
  height: 56px;
}
