/********** Normalize ***********/
@import url("https://necolas.github.io/normalize.css/8.0.1/normalize.css");

/********** Font Style ***********/
@import "var/font/fontStyle.css";

/********** Colors ***********/
@import "var/colors/colors.css";

/*********  Body Style **********/
@import "var/body.css";

/* Titulos */
.section-title h5 {
  position: relative;
  display: inline-block;
  color: var(--secundario);
  text-transform: uppercase;
}

.section-title h5::before {
  position: absolute;
  content: "";
  width: 45px;
  height: 3px;
  right: -55px;
  bottom: 11px;
  background: var(--primario);
}

.section-title h5::after {
  position: absolute;
  content: "";
  width: 15px;
  height: 3px;
  right: -75px;
  bottom: 11px;
  background: var(--secundario);
}

.section-title h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
}

.section-title h4 {
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Section IMG */
.section-img {
  position: relative;
  max-width: 500px;
  border-radius: 2rem;
  border-bottom: 1.125rem solid var(--primario);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 0;
}

/* CTA Buttons */
.cta-primario {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--cuarto), var(--quinto));
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
  transition: filter 0.1s;
}

.cta-primario:hover {
  color: var(--white);
  filter: brightness(1.2);
}

.cta-secundario {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--primario), var(--secundario));
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
  transition: filter 0.1s;
}

.cta-secundario:hover {
  color: var(--white);
  filter: brightness(1.2);
}

.cta-dark {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--dark), var(--dark));
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
  transition: filter 0.1s;
}

.cta-dark:hover {
  color: var(--white);
  filter: brightness(1.2);
}

/* Navbar */
.navbar-light .navbar-nav .nav-link {
  padding: 35px 15px;
  font-size: 18px;
  color: var(--dark);
  outline: none;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-brand img {
  max-width: 150px;
  height: auto !important;
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    max-width: 70px;
  }

  .navbar-light .navbar-nav .nav-link,
  .sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

/* Antes y Despues */
.twentytwenty-wrapper {
  height: 100%;
}

.twentytwenty-before-label:before {
  content: "Antes" !important;
}

.twentytwenty-after-label:before {
  content: "Después" !important;
}

/* Before and After */
.ba-container {
  --position: 50%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
  border-radius: 2rem;
}

.ba-image-container {
  position: relative;
  max-width: 800px;
  max-height: 90vh;
  aspect-ratio: 1 / 1;
}

.ba-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.ba-before {
  position: absolute;
  inset: 0;
  width: var(--position);
}

.ba-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.ba-slider:focus-visible~.ba-button {
  outline: 5px solid var(--dark);
  outline-offset: 3px;
}

.ba-line {
  position: absolute;
  inset: 0;
  left: var(--position);
  transform: translateX(-50%);
  width: 0.2rem;
  height: 100%;
  background-color: var(--white);
  pointer-events: none;
  z-index: 10;
}

.ba-button {
  position: absolute;
  background-color: var(--white);
  color: var(--dark);
  padding: 0.5rem;
  border-radius: 100vw;
  display: grid;
  place-items: center;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
  box-shadow: 1px 1px 1px hsl(0, -50%, 2%, 0.5);
}