* {
  box-sizing: border-box;
}

a {
  color: black;
  text-decoration: none;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: #000;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

.embla--main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.embla__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.embla__container {
  display: flex;
  flex-direction: column;
  height: 100%;
  scroll-behavior: smooth;
}

.embla__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.embla__slide__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(80%);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.embla__slide.is-selected .embla__slide__img {
  opacity: 1;
  z-index: 2;
  transform: scale(1.03);
  filter: brightness(85%);
}

.embla-thumbs {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 90%;
  max-width: 900px;
  padding: 10px 0;
  background: rgb(0 0 0 / 8%);
  backdrop-filter: blur(1px);
  border-radius: 12px;
  transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

.embla-thumbs:hover {
  background: rgba(0, 0, 0, 0.5);
}

.embla-thumbs__viewport {
  overflow: hidden;
}

.embla-thumbs__container {
  display: flex;
  justify-content: center;
  padding: 5px;
}

.embla-thumbs__slide {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.embla-thumbs__slide:hover {
  opacity: 0.9;
  transform: scale(1);
}

.embla-thumbs__slide.is-selected {
  opacity: 1;
  border-color: #f1683a;
  border-radius: 8px;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(241, 104, 58, 0.5);
}

.embla-thumbs__slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.embla-thumbs__slide:hover .embla-thumbs__slide__img {
  transform: scale(1.1);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.embla__slide__content {
  position: absolute;
  top: 50%;
  left: 30%;
  text-align: left;
  max-width: 700px;
  padding: 30px;
  z-index: 2;
  text-shadow: 2px 2px 10px rgb(0 0 0 / 0%);
  animation: cuadro-texto 1s ease-out forwards;
  background: rgb(0 0 0 / 23%);
  backdrop-filter: blur(1px);
  border-radius: 15px;
  border-left: 5px solid #ffffff;
}

@keyframes cuadro-texto {
  100% {
    transform: translate(-50%, -50%);
  }
}

@keyframes cuadro-texto-movil {
  100% {
    transform: translate(-50%, -100%);
  }
}

@media screen and (max-width: 768px) {
  .embla__slide__content {
    left: 50%;
    width: 90%;
    padding: 20px;
  }

  .embla-thumbs {
    width: 95%;
    bottom: 10px;
  }

  .embla-thumbs__slide {
    width: 80px;
    height: 80px;
  }
}

/* pantalla movil */
@media screen and (max-width: 425px) {
    .accordion-button{
        height: 41px;
    }
  /* efecto de caja de texto */
  .embla__slide__content {
    animation: cuadro-texto-movil 1s ease-out forwards;
  }

  .embla-thumbs__slide__img {
    object-fit: contain;
  }

  .main-swiper .author {
    font-weight: bold;
    letter-spacing: 5px;
    font-size: 0.9rem;
    color: #f1683a;
    margin-bottom: 5px;
  }

  .main-swiper .title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2em;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .main-swiper .topic {
    font-size: 1rem;
    font-weight: 700;
    color: #f1683a;
    margin-bottom: 15px;
  }

  .main-swiper .locat {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
  }

  .main-swiper .des {
    font-weight: 400;
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .main-swiper .buttons {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: 45px;
    gap: 10px;
    margin-top: 25px;
  }

  .main-swiper .buttons a {
    border: none;
    background-color: #f1683a;
    font-weight: 500;
    font-family: Poppins;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}

.main-swiper .author {
  font-weight: bold;
  letter-spacing: 5px;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 5px;
}

.main-swiper .title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, #ddd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-swiper .topic {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.main-swiper .des {
  font-weight: 400;
  margin-top: 10px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.main-swiper .locat {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.main-swiper .buttons {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  grid-template-rows: 45px;
  gap: 10px;
  margin-top: 25px;
}

.main-swiper .buttons a {
  border: none;
  background-color: #ffffff;
  font-weight: 500;
  font-family: Poppins;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: #000000;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media screen and (max-width: 1024px) {
  .main-swiper .author {
    font-weight: bold;
    letter-spacing: 5px;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 5px;
  }

  .main-swiper .title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2em;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .main-swiper .topic {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
  }

  .main-swiper .des {
    font-weight: 400;
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .main-swiper .locat {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
  }

  .main-swiper .buttons {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: 45px;
    gap: 10px;
    margin-top: 25px;
    display: none;
  }

  .main-swiper .buttons a {
    border: none;
    background-color: #ffffff;
    font-weight: 500;
    font-family: Poppins;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #000000;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}

.main-swiper .buttons a:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.main-swiper .buttons a:nth-child(2) {
  background-color: transparent;
  border: 2px solid #fff;
  color: #eee;
}

.main-swiper .buttons a:nth-child(2):hover {
  background-color: rgba(255, 255, 255);
}

.progress-bar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f1683a, #ff9b76);
  transition: width 8s linear;
}

.embla-controls {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.embla-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

header {
  background-color: #0000003a;
  position: absolute !important;
  max-width: 100%;
  margin: auto;
  height: 70px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
  padding: 0 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: #f1683a;
}

.logo i {
  font-size: 2rem;
  color: #f1683a;
}

.control-button {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: Poppins;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  font-size: 1.3rem;
  backdrop-filter: blur(5px);
}

.control-button:hover {
  background: rgba(241, 104, 58, 0.8);
  transform: scale(1.1);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(241, 104, 58, 0.5);
}

.controls-container {
  position: absolute;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slide-counter {
  position: absolute;
  top: 80px;
  right: 30px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.slide-counter i {
  color: #f1683a;
  margin-right: 5px;
}

.brand-watermark {
  position: absolute;
  bottom: 20px;
  left: 30px;
  z-index: 3;
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-watermark img {
  height: 30px;
  filter: brightness(0) invert(1);
}

/* Animación para el contenido */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.embla__slide__content > * {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.embla__slide__content .author {
  animation-delay: 0.2s;
}

.embla__slide__content .title {
  animation-delay: 0.4s;
}

.embla__slide__content .topic {
  animation-delay: 0.6s;
}

.embla__slide__content .des {
  animation-delay: 0.8s;
}

.embla__slide__content .buttons {
  animation-delay: 1s;
}

/* Efecto de vidrio para controles */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Offcanvas mejorado */
.offcanvas {
  background: #ffffff;
  backdrop-filter: blur(10px);
  color: black;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close {
  filter: invert(1);
}

.list-group-item {
  background: transparent;
  color: black;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.list-group-item:hover {
  background: #f0f0ec;
  padding-left: 25px;
}

.list-group-item.active {
  background: #c7c7c7;
  border-left: 4px solid #fff;
  color: black;
}

/* Animación de carga */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  animation: pulse 1.5s infinite;
  display: none;
}

.img-logo {
  width: 15%;
}

.proyectos {
  border-radius: 15px;
}

.proyectos:hover .overlay {
  opacity: 1;
}

/* MODO CELULAR /*
      /* Adaptación para modo celular */
@media screen and (max-width: 945px) and (orientation: landscape) {
  .controls-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
  }

  .embla-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 35%;
    max-width: 900px;
    padding: 10px 0;
    background: rgb(0 0 0 / 8%);
    backdrop-filter: blur(1px);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: none;
  }
}

/* FIN MODO CELULAR /*
         /* Estilo del mensaje flotante */
/* Mensaje flotante */
#mensaje-orientacion {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Cuando se activa */
#mensaje-orientacion.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Ícono animado */
.icono-telefono {
  width: 80px;
  height: 80px;
  border: 3px solid white;
  border-radius: 15px;
  position: relative;
  animation: girarTelefono 2s infinite ease-in-out;
  margin-bottom: 15px;
}

.icono-telefono::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 10%;
  background: white;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

@keyframes girarTelefono {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(90deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-90deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.hidden {
  display: none !important;
}

.badge-filter {
  cursor: pointer;
}
/* pantalla movil horizontal */
@media screen and (max-height: 425px) {
  .accordion-button{
    height: 37px;
  }
  .accordion-button h5{
    font-size: small;
  }
  .list-group-item{
    width: 75%;
    padding: 0;
    padding-top: 10px;
  }
  #nProyectos{
    font-size: larger;
  }
  #offcanvasExampleLabel{
    font-size: medium;
  }
  #offcanvasExample{
    width: 300px;
  }
}

/* tamaño de texto de categorias */
.form-check{
  font-size: small;
}
.labelMinLps, .labelMaxLps{
  font-size: smaller;
}
/* cursor */
.embla__container{
  cursor: grab;
}