/********** Template CSS **********/
:root {
    --primary: #42734b;
    --light: #F1F8FF;
    --dark: #0F172B;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semi-bold {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 43, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

.booking {
    position: relative;
    margin-top: -20px !important;
    z-index: 1;
}

.booking-rubro {
    position: relative;
    margin-top: -200px !important;
    z-index: 1;
}
/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}


/*** Service ***/
.service-item {
    height: 320px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 30px auto;
    width: 65px;
    height: 65px;
    transition: .5s;
}

.service-item i,
.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover i,
.service-item:hover h5,
.service-item:hover p {
    color: #FFFFFF !important;
}

.imagen-establecimiento {
    position: relative;
    /* height: 100%; */
    min-height: 330px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.imagen-establecimiento .btn-gallery {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

/*** Youtube Video ***/
.video {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url(../img/video.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--dark);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial {
    background: linear-gradient(rgba(15, 23, 43, .7), rgba(15, 23, 43, .7)), url(../turismo/establecimientos/sancris.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    padding-left: 65px;
    padding-right: 65px;
}

.testimonial-carousel .testimonial-item {
    padding: 30px;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
    background: #FFFFFF;
}


/*** Team ***/
.team-item,
.team-item .bg-primary,
.team-item .bg-primary i {
    transition: .5s;
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/*** Footer ***/
.newsletter {
    position: relative;
    z-index: 1;
}

.footer {
    position: relative;
    margin-top: -110px;
    padding-top: 180px;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #303030;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--dark);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* RUBROS */
.categorias-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;          /* Firefox */
  scrollbar-color: #198754 transparent;
}

/* Scroll personalizado para WebKit (Chrome, Edge, Safari) */
.categorias-wrapper::-webkit-scrollbar {
  height: 4px;                    /* Scroll horizontal */
}

.categorias-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.categorias-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);  /* Color tenue */
  border-radius: 4px;
}


@media (max-width: 768px) {
  .categorias {
    flex-wrap: nowrap !important;
    width: max-content;
    margin-top: 12em;
  }
}

/* Categorías base */
.categorias {
  display: flex;
  gap: 4px;
  padding: 6px 20px;
  border-radius: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12em;

}

/* Categoría individual */
.categoria {
  display: block;
  width: 190px;
}

.categoria input {
  display: none;
}

.categoria-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 55px;
  box-sizing: border-box;
}

.categoria-icon {
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

/* Estilos por tipo */
.hospedaje     .categoria-icon { background-color: #fbc02d; }
.restaurantes  .categoria-icon { background-color: #4caf50; }
.agencias      .categoria-icon { background-color: #00bcd4; }
.transporte    .categoria-icon { background-color: #3f51b5; }
.esparcimiento .categoria-icon { background-color: #e53935; }

/* Seleccionado */
.categoria input:checked + .categoria-label {
  background-color: #e0f7fa;
  border: 2px solid #00bcd4;
}

/* LISTA ESTABLECIMIENTO */

.transition-hover {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background-color: #f9f9f9;
}

/* HORARIOS */

.horarios-tabla td {
    padding: 4px 8px;
    vertical-align: middle;
}

.horarios-tabla td:first-child {
    width: 140px;
    font-weight: 500;
    color: #343a40;
}

.horarios-tabla {
    font-size: 0.92rem;
    color: #555;
}

/* GRID IMAGEN  PRODUCTO*/
.gallery-wrapper-producto {
    display: grid;
    /* grid-template-columns: 3fr 2fr; */
   /* grid-template-rows: repeat(2, 1fr); */
    gap: 10px;
    height: 200px;
  }
  
  .gallery-wrapper-producto a {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .gallery-wrapper-producto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .gallery-wrapper-producto a:hover img {
    transform: scale(1.05);
  }
  
  .gallery-wrapper-producto a.gallery-main {
    grid-row: 1;
    grid-column: 4;
  }
  
  /* Si quieres mostrar un contador o texto encima de la última imagen */
  .gallery-wrapper-producto a:last-child .more-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
  }

/* GRID IMAGEN */
.custom-gallery {
    display: grid;
    grid-template-areas:
        "main side"
        "thumb thumb";
    grid-template-columns: 2fr 1fr;
    grid-gap: 10px;
    margin-bottom: 20px;
}

.main-image {
    grid-area: main;
    display: block;
}
.main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.side-images {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.side-images img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.bottom-thumbnails {
    grid-area: thumb;
    display: flex;
    gap: 10px;
}
.bottom-thumbnails a {
    position: relative;
    flex: 1;
}
.bottom-thumbnails img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.more-photos {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 4px;
}

  /* FORM LOGIN - REGISTER */

  .form-container {
    max-width: 400px;
    margin: 5px auto;
}
  /* BOTON FLOTANTE */

  .btn-flotante {
    position: fixed;
    right: 20px;
    z-index: 1050;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  /* Posiciones verticales */
  .top-flotante { top: 20px; }
  .middle-flotante { top: 50%; transform: translateY(-50%); }
  .bottom-flotante { bottom: 20px; }
  /* BOTON LIKED */

  .like-button {
    position: relative;
    top: 55px;
    right: -11px;
    z-index: 10;
    border: none;
    background: white;
    border-radius: 50%;
    padding: 6px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background 0.3s;
  }

  .like-button:hover {
    background: #f1f1f1;
  }

  .like-button .fa-heart {
    color: #aaa;
    transition: color 0.3s;
  }

  .like-button.liked .fa-heart {
    color: red;
  }

  /* MARGEN BUTTOM */

  .mb-5rem {
    margin-bottom: 5rem !important;
}


.bg-detail{
    background-color: #f5fffa !important;
}

.bg-footer{
    background-color: #afdec7 !important;
    
}

.fancybox__container {
    z-index: 99999 !important;
  }
  /*  share redes */

  .share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.share-buttons a {
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    color: white;
    font-size: 16px;
}
.fb { background: #3b5998; }
.tw { background: #1da1f2; }
.wa { background: #25D366; }
.email { background: #6c757d; }

.text-justify {
    text-align: justify !important;
  }


/* BOTONES FLOTANTTES */
.fab-container {
    position: fixed;
    z-index: 1000;
  }
    .fab-bottom-right {
    bottom: 20px;
    right: 20px;
  }

  .fab-bottom-left {
    bottom: 20px;
    left: 20px;
  }

  .fab-top-right {
    top: 20px;
    right: 20px;
  }

  .fab-top-left {
    top: 20px;
    left: 20px;
  }
  
  .fab-button {
    display: block;
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 20px;
    color: #fff;
    background-color: #e74c3c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
  }
  
  .fab-button:hover {
    background-color: #c0392b;
  }
  
  .fab-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .fab-list {
    position: absolute;
    /* left: 70px; */
    bottom: 70px;
    display: none;
  }
  
  .fab-wrapper:hover .fab-list {
    display: block;
  }
  
  .fab-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  /* AUTOCOMPLETE */

  .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
  }
  
  .suggestion-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
  }
  
  .suggestion-item:hover {
    background-color: #f7f7f7;
  }
  
  .suggestion-item i {
    color: #007BFF;
    margin-right: 10px;
    margin-top: 5px;
  }
  
  .suggestion-text {
    display: flex;
    flex-direction: column;
  }
  
  .suggestion-text .title {
    font-weight: bold;
    color: #333;
  }
  
  .suggestion-text .subtitle {
    font-size: 13px;
    color: #666;
  }
  
  .d-none {
    display: none;
  }

  .promo-badge {
    position: absolute;
    background-color: #ffc107;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    bottom: 10px;
    left: 10px;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}



  /* PROMOCIONES DECUENTOS */

  .carousel-container {
    position: relative;
  }

  .scroll-container {
    display: flex;
    /* justify-content: center; */
    overflow-x: auto;
    gap: 16px;
    padding: 10px 40px;
    scroll-behavior: smooth;
  }

  .card {
    width: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
  }

  .card img {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 150px;
    object-fit: cover;
  }

  .card-content {
    padding: 16px;
  }

  .card-content h3 {
    margin: 0 0 4px;
    font-size: 16px;
  }

  .hoteles {
    font-weight: bold;
    color: #000;
  }

  .precio {
    margin-top: 8px;
    font-weight: bold;
    color: #006aff;
  }

  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .arrow.left {
    left: 0;
  }

  .arrow.right {
    right: 0;
  }

  .arrow:hover {
    background: #eee;
  }

  /* Scrollbar personalizado (Chrome, Edge, Safari) */
  .scroll-container::-webkit-scrollbar {
    height: 8px;
  }

  .scroll-container::-webkit-scrollbar-track {
    background: transparent;
  }

  .scroll-container::-webkit-scrollbar-thumb {
    background-color: #2ecc71; /* verde */
    border-radius: 4px;
  }

  /* Firefox */
  .scroll-container {
    scrollbar-width: none;
    scrollbar-color: #2ecc71 transparent;
  }


  /* RANKING STAR */

  .star-rating {
    direction: rtl;
    display: inline-flex;
    font-size: 2rem;
  }
  
  .star-rating input[type="radio"] {
    display: none;
  }
  
  .star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .star-rating input[type="radio"]:checked ~ label {
    color: gold;
  }
  
  .star-rating label:hover,
  .star-rating label:hover ~ label {
    color: gold;
  }
    /* RANKING STAR */
