:root {
  --bs-emphasis-color-rgb: 255, 255, 255;
  --red: 194, 39, 45;
  --dark: 37, 41, 68;
  --gray: 244, 245, 250;
  --pink: 254, 245, 247;
}

@view-transition {
  navigation: auto;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
textarea,
select,
option,
ul,
li {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #333;
}

.bg-danger,
.btn-danger {
  background-color: rgba(var(--red), 1) !important;
}
.text-danger {
  color: rgba(var(--red), 1) !important;
}

.btn-danger:hover {
  background-color: #fff !important;
  border: 2px solid rgba(var(--red), 1) !important;
  color: rgba(var(--red), 1) !important;
}

.bg-pink {
  background-color: rgba(var(--pink), 1) !important;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-size: 16px;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1s; /* más tiempo = más suave */
  animation-timing-function: ease-in-out; /* suaviza entrada y salida */
}

::view-transition-old(root) {
  animation-name: slideOut;
}

::view-transition-new(root) {
  animation-name: slideIn;
}

@keyframes slideIn {
  from {
    transform: translateY(20%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20%);
    opacity: 0;
  }
}

.navbar {
  border-bottom: 2px solid;
  border-color: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

.nav-link {
  text-transform: uppercase;
  font-weight: 600;
}

.navbar-brand {
  font-size: 2rem;
  font-family: "Poppins", sans-serif;
}

.scrolled {
  .navbar {
    background-color: rgba(var(--dark), 1) !important;
  }
}

.btn {
  border-radius: 25px;
}

i.fab:hover {
  font-weight: bold;
}

.banner {
  position: relative;
  .banner-text {
    position: absolute;
    width: 30rem;
    top: 50%;
    left: 20%;
    transform: translate(-20%, -50%);
    h2 {
      font-size: 3rem;
      font-weight: 700;
      color: #fff;
    }
  }
}

.bg-dark {
  background-color: rgba(var(--dark), 1) !important;
}

.pt-80 {
  padding-top: 80px;
}

.pb-80 {
  padding-bottom: 80px;
}

.py-80 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.py-30 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.titulo1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.titulo2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.bg-gray {
  background-color: rgba(var(--gray), 1);
}

p b {
  font-weight: 800;
}

.counter-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #fef5f6;
  padding: 15px 25px;
  margin: 0 5px;
  text-align: center;
  position: relative;

  .counter {
    font-size: 3rem;
    font-weight: 900;
    color: #333;
    text-align: center;
  }

  &.float-circle::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translate(12%, -50%);
    width: 20px;
    height: 20px;
    border: 5px solid;
    border-color: rgba(var(--red), 1);
    border-radius: 50%;
    z-index: 2;
  }
}

.images-on-right {
  /* position: relative;
  width: 100%;
  height: 100%;

  .img1 {
    position: absolute;
    top: 150px;
    left: 130px;
    width: 270px;
    z-index: 1;
    border: 5px solid #fff;
    border-radius: 25px;
  }

  .img2 {
    position: absolute;
    top: 0;
    left: 335px;
    width: 270px;
  }

  div {
    position: absolute;
    bottom: 3%;
    left: 280px;
    background-color: rgba(var(--red), 1);
    width: 100px;
    padding: 25px;
    border-radius: 50px;
    z-index: 2;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  } */
}

.slick-next:before {
  background: url("../images/chevron-right.png") !important;
  background-size: contain !important;
}
.slick-prev:before {
  background: url("../images/chevron-left.png") !important;
  background-size: contain !important;
}
.slick-arrow {
  z-index: 2 !important;
  width: 30px !important;
  height: 30px !important;
}
.slick-arrow:before {
  content: "" !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1 !important;
}

.videos-slider {
  .slick-arrow:before {
    background-color: #fff !important;
    border-radius: 50px;
  }
  .slick-slide {
    padding: 0 25px;
  }
}

.card {
  .card-icon {
    width: 120px;
    height: 120px;
    background-color: #fff;
    box-shadow: 10px 0px 5px 0px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 10px 0px 5px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 10px 0px 5px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    border-radius: 100px;
    margin: 0 auto;
    img {
      width: 70px;
    }
  }
}

.internal {
  .navbar-brand,
  .navbar-nav .nav-link.active {
    color: #333;
  }
  .navbar-nav .nav-link,
  .social-top {
    color: #666;
    &:hover {
      color: #333;
    }
  }

  .scrolled {
    .navbar-brand,
    .navbar-nav .nav-link.active {
      color: #fff;
    }
    .navbar-nav .nav-link {
      color: var(--bs-nav-link-color);
      &:hover {
        color: #fff;
      }
    }
    .social-top {
      color: #fff;
      &:hover {
        color: #fff;
        font-weight: bold;
      }
    }
  }
}

.download-btn:hover {
  svg {
    stroke-width: 3;
  }
}

.image-bordered {
  border: 10px solid #fff;
  border-radius: 25px;
  padding: 10px;
  background-color: #f4f6fa;
}

.float-image {
  width: 50%;
  position: absolute;
  bottom: -80px;
  right: 30px;
}

/* ---- whatsapp ----*/
@keyframes whatsapp_animation {
  0% {
    opacity: 0;
    right: 0;
    bottom: 4%;
  }
  100% {
    opacity: 1;
    right: 4%;
    bottom: 4%;
  }
}

@keyframes whatsapp_rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.w-flotante {
  opacity: 0;
  background-color: green;
  width: 4rem;
  height: 4rem;
  position: fixed;
  bottom: 4%;
  right: 4%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* animation */
  animation-name: whatsapp_animation;
  animation-duration: 2s;
  animation-delay: 2s;
  animation-fill-mode: forwards;

  &:hover {
    background-color: #2879ff;
  }

  .whatsapp {
    color: white;
    font-size: 2.5rem;
    /* animation */
    animation-name: whatsapp_rotation;
    animation-duration: 2s;
    animation-delay: 2s;
    animation-fill-mode: forwards;
  }
}

@media (max-width: 1199px) {
  .navbar {
    background-color: rgba(var(--dark), 1) !important;
  }
  .navbar-toggler-icon {
    filter: invert();
  }
  .navbar-toggler {
    border: unset;
    &:focus {
      box-shadow: unset;
    }
  }
  .internal .navbar-brand,
  .internal .navbar-nav .nav-link.active {
    color: #fff;
  }
  .internal .navbar-nav .nav-link,
  .internal .social-top {
    color: #666;
    &:hover {
      color: #fff;
    }
  }
}

@media (min-width: 992px) {
  .w-60-centered {
    width: 60%;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  main .banner {
    margin-top: 72px;
  }

  .float-image {
    bottom: -30px;
    right: 30px;
  }
}

@media (max-width: 767px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  main .banner {
    margin-top: 60px;
  }
  .titulo1 {
    font-size: 2rem !important;
  }
  .titulo2 {
    font-size: 1.5rem !important;
  }
  .banner {
    height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-image: url("../images/image42.webp");

    .banner-text {
      top: unset;
      bottom: -5%;
    }
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(var(--dark), 0.6);
    }
  }
  .breadcrumb {
    height: 140px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    &.glikin {
      background-image: url("../images/leonardo_glikin.webp");
    }
    &.consultoria {
      background-image: url("../images/consultoria.webp");
    }
    &.divulgacion {
      background-image: url("../images/divulgacion.webp");
    }
    &.articulos {
      background-image: url("../images/divulgacion.webp");
      .breadcrumb-text {
        width: 100%;
      }
    }
    &.contacto {
      background-image: url("../images/contacto.webp");
    }
  }
  .banner-internal {
    height: 280px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../images/image310.webp");
  }
}

@media (max-width: 575px) {
  .titulo1 {
    font-size: 1.6rem !important;
  }
  .titulo2 {
    font-size: 1.2rem !important;
  }
  .banner .banner-text {
    width: unset;
    bottom: -20%;
  }
  .float-circle::before {
    display: none;
  }
}
