/********** Template CSS **********/
:root {
  --primary: #6c4100;
  --secondary: #545454;
  --light: #c75036;
  --dark: #1e1916;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
  font-weight: 600 !important;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.my-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
  background-color: #000;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  padding: 35px 15px;
  color: var(--light);
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #00afef;
}

.navbar.fixed-top {
  transition: 0.5s;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--dark);
  }

  .navbar .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.header-carousel .owl-carousel-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  /* background: #c7503657; */
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    position: relative;
    min-height: 600px;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-carousel .owl-carousel-item p {
    font-size: 16px !important;
  }
}

.header-carousel .owl-nav {
  position: relative;
  width: 80px;
  height: 80px;
  margin: -40px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-carousel .owl-nav::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #ffffff;
  transform: rotate(45deg);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  position: relative;
  font-size: 40px;
  color: var(--primary);
  transition: 0.5s;
  z-index: 1;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

.page-header {
  margin-bottom: 6rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Facts ***/
.fact-item {
  transition: 0.5s;
}

.fact-item:hover {
  margin-top: -10px;
  background: #ffffff !important;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
}

/*** About ***/
.img-twice::before {
  position: absolute;
  content: "";
  width: 60%;
  height: 80%;
  top: 10%;
  left: 20%;
  background: var(--primary);
  border: 25px solid var(--light);
  border-radius: 6px;
  z-index: -1;
}

/*** Product ***/
.product-item {
  transition: 0.5s;
}

.product-item:hover {
  background: var(--primary) !important;
}

.product-item:hover * {
  color: var(--light);
}

.product-item:hover .border-primary {
  border-color: var(--light) !important;
}

.product-item .product-overlay {
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}

.product-item:hover .product-overlay {
  height: 100%;
  opacity: 1;
}

/*** Team ***/
.team-item .team-text {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.team-item .team-title {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--light);
  transition: 0.5s;
}

.team-item:hover .team-title {
  top: -100px;
}

.team-item .team-social {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 100px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  transition: 0.5s;
}

.team-item .team-social .btn {
  margin: 0 3px;
}

.team-item:hover .team-social {
  top: 0;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
  width: 60px;
  height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
  color: #ffffff !important;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin: 0 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-size: 22px;
  color: var(--light);
  background: var(--primary);
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--primary);
  background: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #fff;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--light);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  letter-spacing: 1px;
  box-shadow: none;
}

.copyright {
  background: #111111;
}

.copyright a {
  color: var(--primary);
}

.copyright a:hover {
  color: var(--light);
}
/* ================================MODIFICACIONES================================= */
/* Menu Inicio*/

.bg-cafe {
  background-color: #6c4100;
}
.bg-dark {
  background-color: #ffffff !important;
}

/* Desplazamiento horizontal */
/* Transición suave para el movimiento */
.navbar-nav.mx-auto {
  transition: transform 0.3s ease;
}

/* Clase para mover el menú */
.navbar-top {
  /* transform: translateX(-120px); */
}
/* Menu Final*/

/* Slider Inicio */
.text-cafe {
  color: #6c4100;
}
.text-color-descripcion {
  color: #000;
}
/* Slider Final */

/* 4 card Inicio */
/* Estilos Fact Items */
.fact-item {
  background: #fff;
  border-radius: 20px;
  padding: 50px 20px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.fact-item::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  top: -50%;
  left: -50%;
  background: linear-gradient(135deg, #e12683, #953039);
  opacity: 0.1;
  transform: rotate(25deg);
  z-index: 0;
}

.fact-item i {
  color: #953039;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
  transition:
    transform 0.3s,
    color 0.3s;
}

.fact-item:hover i {
  transform: scale(1.3) rotate(-10deg);
  color: #e12683;
}

.fact-item p {
  font-weight: 500;
  color: #6c4100;
  margin-bottom: 10px;
  z-index: 1;
  position: relative;
}

.fact-item h1 {
  font-weight: 700;
  color: #c75036;
  z-index: 1;
  position: relative;
}

.fact-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .fact-item {
    padding: 40px 15px;
  }
}
/* 4 card Final */

/* Sección Talleres */
#talleres h2 {
  color: #953039;
  font-weight: 700;
  margin-bottom: 50px;
}

#talleres .card {
  border-radius: 15px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

#talleres .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Imagen con filtro suave */
#talleres .card-img-top {
  transition:
    transform 0.3s,
    filter 0.3s;
  border-bottom: 5px solid #e12683;
}

#talleres .card:hover .card-img-top {
  transform: scale(1.05);
  filter: brightness(1.05);
}
.modalidad-presencial {
  border-top: 4px solid #ec2c87;
}
.modalidad-online {
  border-top: 4px solid #00afef;
}

.btn-presencial {
  background: #ec2c87;
  color: #fff;
}
.btn-online {
  background: #00afef;
  color: #fff;
}

/* Botón WhatsApp personalizado */
#talleres .btn-primary {
  background: linear-gradient(135deg, #e12683, #953039);
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 500;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

#talleres .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #953039, #e12683);
}

.bg-talleres {
  background-color: #fde8f0; /* derivado del #e12683 del logo */
}
.bg-azul-suave {
  background-color: #e6f7fc; /* derivado del #00afef del logo */
}
.bg-primary-fiusha {
  background-color: #c75036;
}

.bg-cafe-footer {
  background-color: #e12683a1;
}

section,
.container-xxl {
  scroll-margin-top: 90px; /* Ajusta según la altura de tu navbar */
}

/* Mapa */
full-width-map {
  width: 100%;
  margin: 0;
  padding: 0;
}

.map-container {
  width: 100%;
  height: 450px; /* Puedes cambiar la altura */
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.whatsapp-section-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.whatsapp-section-link:hover {
  text-decoration: none;
  color: inherit;
}
/* BOTON WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  animation: whatsapp-pulse 2s infinite;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* Animación tipo pulso */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
