html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Roboto", sans-serif;
  background: #f5f4f2;
}
.tooltip,
.popover {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Verdana;
  scroll-behavior: smooth;
}

.cabecera {
  height: 400px;
  background-image: url("../img/cabecera.JPG");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about p {
  text-align: justify;
}

h1,
h2,
h3 {
  font-family: "Boogaloo", cursive;
}

h4 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-link {
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #f05454;
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}

.about-section {
  padding: 4rem 2rem 2rem 2rem;
}
.about-section img {
  max-width: 250px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.spaced-list li {
  margin-bottom: 10px;
}

footer {
  margin-top: 4rem;
}

.contact-form {
  max-width: 600px;
  margin: 5rem auto;
  text-align: center;
}

.contact-form h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact-form p {
  margin-bottom: 2rem;
}

.btn-volver {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: "Boogaloo", cursive;
  font-size: 1.3rem;
  background-color: #ff1744;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-form button:hover {
  transform: scale(1.05);
  background: #d50000;
}

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.slider-wrapper {
  width: 406px;
  height: 566px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.slider-wrapper .before,
.slider-wrapper .after {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-repeat: no-repeat;
  background-color: white;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.slider-wrapper .content-image {
  height: 100%;
}

.slider-wrapper .after {
  width: 125px;
}

.slider-wrapper .scroller {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: transparent;
  opacity: 0.9;
  pointer-events: auto;
  cursor: pointer;
}

.slider-wrapper .scroller:hover {
  opacity: 1;
}

.slider-wrapper .scrolling {
  pointer-events: none;
  opacity: 1;
}

.slider-wrapper .scroller__thumb {
  width: 100%;
  height: 100%;
  padding: 5px;
}

.slider-wrapper .scroller:before,
.slider-wrapper .scroller:after {
  content: " ";
  display: block;
  width: 7px;
  height: 9999px;
  position: absolute;
  left: 50%;
  margin-left: -3.5px;
  z-index: 30;
  transition: 0.1s;
}
.slider-wrapper .scroller:before {
  top: 100%;
}
.slider-wrapper .scroller:after {
  bottom: 100%;
}

.slider-wrapper .scroller {
  border: 5px solid rgb(0, 0, 0);
}

.slider-wrapper .scroller:before,
.slider-wrapper .scroller:after {
  background: rgb(0, 0, 0);
}

@media (max-width: 767.98px) {
  .row {
    flex-direction: column !important;
  }

  .col-4,
  .col-6,
  .col-1 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
  .d-flex.justify-content-center {
    justify-content: center !important;
  }
}

@media (max-width: 767.98px) {
  .slider-wrapper .before img,
  .slider-wrapper .after img {
    width: 100%;
    height: auto;
    max-width: 406px;
    max-height: 566px;
  }
}

@media (min-width: 992px) {
  #navbarNav {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .editorial {
    padding-left: 200px;
    margin: auto 2%;
  }

  .spaced-list {
    padding-left: 250px;
    margin: auto 2%;
  }

  .only-desktop {
    display: inline-block;
  }
}

@media (max-width: 991px) {
  #navbarNav {
    position: static !important;
    transform: none !important;
  }

  .about-section {
    padding: 4rem 2rem 2rem 2rem;
  }

  .editorial {
    margin: auto 5%;
  }

  .spaced-list {
    margin: auto 5%;
  }

  .hero-title {
    font-family: "Boogaloo", cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .only-desktop {
    display: none;
  }
}
