/* =========================================
   SLEP TARAPACA
========================================= */

/* Banner */
html {
    scroll-behavior: smooth;
}

.slep-banner {
    position: relative;
    min-height: 220px;
    padding: 260px 0 50px !important;
    display: flex;
    align-items: center;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.slep-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.slep-banner .auto-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.slep-banner .page-banner_title {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    font-size: 72px;
    line-height: 0.95em;
    text-transform: uppercase;
    word-break: break-word;
}

.slep-scroll-down {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-size: 18px;
    animation: slep-scroll-bounce 1.8s ease-in-out infinite;
    transition: background 0.2s ease;
}

.slep-scroll-down:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

@keyframes slep-scroll-bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}

/* Logos sin deformar */
.slep-logo-link {
    display: inline-block;
}

.slep-header-logo-wrap,
.slep-footer-logo-wrap {
    flex-shrink: 0;
}

.slep-header-logo,
.slep-header-logo-sticky,
.slep-footer-logo {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.slep-header-logo {
    max-height: 110px;
}

.slep-header-logo-sticky {
    max-height: 82px;
}

.slep-footer-logo {
    max-height: 82px;
}

/* Galería: imagen principal + miniaturas */
.tour-gallery-hero {
    padding: 35px 0 20px;
}

.tour-gallery-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f4f4f4;
}

.tour-gallery-main-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.tour-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #222222;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 2;
}

.tour-gallery-arrow:hover {
    background: #ffffff;
    color: #ff7a00;
}

.tour-gallery-arrow--prev {
    left: 18px;
}

.tour-gallery-arrow--next {
    right: 18px;
}

.tour-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

.tour-gallery-thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.65;
    border: 2px solid transparent;
    transition: 0.2s ease;
}

.tour-gallery-thumb--bus {
    object-fit: contain;
    background: #f4f4f4;
    padding: 4px;
}

.tour-gallery-thumb:hover {
    opacity: 0.9;
}

.tour-gallery-thumb.active {
    opacity: 1;
    border-color: #ff7a00;
}

@media (max-width: 767px) {
    .tour-gallery-main-img {
        height: 320px;
    }

    .tour-gallery-thumb {
        width: 76px;
        height: 58px;
    }
}

@media (max-width: 575px) {
    .tour-gallery-main-img {
        height: 240px;
    }
}

/* Tarjeta de reserva */
.tour-booking-card-sticky-wrap {
    position: sticky;
    top: 110px;
}

.tour-booking-card {
    background: #0b1f3a;
    color: #ffffff;
    border-radius: 20px;
    padding: 28px 26px;
    box-shadow: 0 16px 40px rgba(11, 31, 58, 0.25);
}

.tour-booking-card h4 {
    color: #ffffff;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.tour-booking-card p.tour-booking-card_subtitle {
    opacity: 1;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-bottom: 22px;
}

.tour-booking-card_section {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tour-booking-card_section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.tour-booking-card_section h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
}

.tour-booking-card .slep-fecha-lateral {
    width: 100%;
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    margin-bottom: 12px;
}

.tour-booking-card .slep-fecha-lateral::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.btn-solicitar-fecha--full {
    width: 100%;
    padding: 12px 18px;
}

.tour-booking-dates {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tour-booking-dates li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.tour-booking-dates li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tour-booking-dates .btn-solicitar-fecha {
    padding: 6px 14px;
    font-size: 13px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .tour-booking-card-sticky-wrap {
        position: static;
        margin-top: 24px;
    }
}

/* Sección detalle */
.slep-detail-section {
    padding-top: 30px;
}

.slep-detail-section h3,
.slep-detail-section h4 {
    text-transform: uppercase;
}

.slep-detail-section .tour-detail-two_options {
    columns: 1;
}

.slep-detail-section .tour-detail-two_options li {
    margin-bottom: 10px;
}

/* Fechas */
.slep-fechas-box .accordion.block {
    margin-bottom: 18px;
}

.slep-fecha-item {
    cursor: default !important;
    pointer-events: none;
}

.slep-fecha-item .icon-outer {
    display: none !important;
}

/* Contacto */
.slep-contacto-box {
    margin-top: 35px;
    padding: 25px 30px;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    background: #ffffff;
}

.slep-contacto-box p {
    margin-bottom: 8px;
    color: #222222;
}

/* Responsive */
@media (max-width: 1199px) {
    .slep-banner {
        min-height: 200px;
        padding: 240px 0 46px !important;
    }

    .slep-banner .page-banner_title {
        font-size: 60px;
    }
}

/* El header fijo (.custom_sticky_menu) se oculta bajo 991.98px,
   por lo que ya no hace falta despejarlo con padding-top grande */
@media (max-width: 991px) {
    .slep-banner {
        min-height: 180px;
        padding: 90px 0 42px !important;
    }

    .slep-banner .page-banner_title {
        font-size: 48px;
    }

    .slep-gallery .gallery-carousel-three .image {
        height: 280px;
    }

    .slep-header-logo {
        max-height: 92px;
    }

    .slep-footer-logo {
        max-height: 72px;
    }
}

@media (max-width: 767px) {
    .slep-banner {
        min-height: 160px;
        padding: 80px 0 38px !important;
    }

    .slep-banner .page-banner_title {
        font-size: 38px;
        line-height: 1em;
    }
}

@media (max-width: 575px) {
    .slep-banner {
        min-height: 140px;
        padding: 70px 0 34px !important;
    }

    .slep-banner .page-banner_title {
        font-size: 28px;
    }

    .slep-gallery .gallery-carousel-three .image {
        height: 220px;
        border-radius: 20px;
    }

    .slep-gallery .gallery-carousel-three .image img.bus-slep-img {
        padding: 10px;
    }

    .slep-header-logo {
        max-height: 76px;
    }

    .slep-footer-logo {
        max-height: 60px;
    }

    .slep-contacto-box {
        padding: 18px 20px;
    }
}

.slep-fecha-item-solicitable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.btn-solicitar-fecha {
    background: #ff7a00;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-solicitar-fecha:hover {
    background: #e96f00;
}

.slep-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slep-modal-overlay.activo {
    display: flex;
}

.slep-modal-box {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.slep-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #222;
}

.slep-modal-box h4 {
    margin-bottom: 8px;
    font-weight: 700;
}

.slep-modal-subtitle {
    margin-bottom: 24px;
    color: #666;
}

.slep-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.slep-modal-group.full {
    grid-column: 1 / -1;
}

.slep-modal-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

.slep-modal-group input,
.slep-modal-group textarea {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 11px 13px;
    outline: none;
}

.slep-modal-group input:focus,
.slep-modal-group textarea:focus {
    border-color: #ff7a00;
}

.slep-modal-group textarea {
    min-height: 90px;
    resize: vertical;
}

.slep-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.btn-modal-cancelar,
.btn-modal-enviar {
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-modal-cancelar {
    background: #eeeeee;
    color: #333333;
}

.btn-modal-enviar {
    background: #ff7a00;
    color: #ffffff;
}

.btn-modal-enviar:hover {
    background: #e96f00;
}

.slep-modal-message {
    margin-top: 14px;
    font-weight: 700;
}

.slep-modal-message.success {
    color: #198754;
}

.slep-modal-message.error {
    color: #dc3545;
}

@media (max-width: 767px) {
    .slep-fecha-item-solicitable {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-solicitar-fecha {
        width: 100%;
    }

    .slep-modal-grid {
        grid-template-columns: 1fr;
    }

    .slep-modal-box {
        padding: 26px 20px;
    }

    .slep-modal-actions {
        flex-direction: column;
    }

    .btn-modal-cancelar,
    .btn-modal-enviar {
        width: 100%;
    }
}

.slep-fecha-item-solicitable {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
}

.btn-solicitar-fecha {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.slep-fechas-box {
    max-width: 520px;
}

.slep-fechas-box .accordion.block {
    width: 100%;
}

.slep-fechas-reserva-row {
    margin-top: 20px;
}

.slep-fechas-reserva-row .tour_plans {
    top: 110px;
}

.slep-fechas-reserva-row .booking-form textarea {
    width: 100%;
    min-height: 95px;
    resize: vertical;
}

.error-fecha-lateral {
    margin-top: 8px;
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
}

.error-fecha-lateral {
    margin-top: 10px !important;
    color: #dc3545 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4;
}

.slep-modal-group .captcha-row {
    display: grid;
    grid-template-columns: 175px 1fr 38px;
    align-items: center;
    gap: 12px;
}

.slep-modal-group .captcha-question {
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    font-weight: 700;
    background: #fff;
}

#captchaAnswerSolicitud {
    height: 48px;
    max-width: 100%;
}

#captchaCheckVisualSolicitud {
    width: 26px;
    height: 26px;
    accent-color: #df5b00;
    justify-self: center;
}

@media (max-width: 576px) {
    .slep-modal-group .captcha-row {
        grid-template-columns: 1fr;
    }

    #captchaCheckVisualSolicitud {
        justify-self: start;
    }
}

/* checkbox animado */
.checkbox-wrapper-12 {
  position: relative;
  transform: scale(0.9);
  transform-origin: center;
}

.checkbox-wrapper-12 > svg {
  position: absolute;
  top: -130%;
  left: -170%;
  width: 110px;
  pointer-events: none;
}

.checkbox-wrapper-12 * {
  box-sizing: border-box;
}

.checkbox-wrapper-12 input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 32px;
  height: 32px;
  left: 0;
  top: 0;
  margin: 0;
  outline: none;
  cursor: default;
  pointer-events: none;
}

.checkbox-wrapper-12 .cbx {
  position: relative;
  width: 32px;
  height: 32px;
}

.checkbox-wrapper-12 .cbx input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 32px;
  height: 32px;
  z-index: 2;
  opacity: 0;
  margin: 0;
}

.checkbox-wrapper-12 .cbx label {
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid #D45308;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  filter: url(#goo-12);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg {
  position: absolute;
  top: 8px;
  left: 7px;
  z-index: 3;
  pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg path {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 19;
  stroke-dashoffset: 19;
  opacity: 0;
  transition: stroke-dashoffset 0.3s ease, opacity 0.2s ease;
  transition-delay: 0.2s;
}

.checkbox-wrapper-12 .cbx input:checked + label + svg path {
  stroke-dashoffset: 0;
  opacity: 1;
}

.checkbox-wrapper-12 .cbx input:checked + label {
  border: none;
  animation: splash-12 0.6s ease forwards;
}

.checkbox-wrapper-12 .cbx input:checked + label + svg path {
  stroke-dashoffset: 0;
}

@keyframes splash-12 {
  40% {
    background: #D45308;
    box-shadow:
      0 -18px 0 -8px #D45308,
      16px -8px 0 -8px #D45308,
      16px 8px 0 -8px #D45308,
      0 18px 0 -8px #D45308,
      -16px 8px 0 -8px #D45308,
      -16px -8px 0 -8px #D45308;
  }
  100% {
    background: #D45308;
    box-shadow:
      0 -36px 0 -10px transparent,
      32px -16px 0 -10px transparent,
      32px 16px 0 -10px transparent,
      0 36px 0 -10px transparent,
      -32px 16px 0 -10px transparent,
      -32px -16px 0 -10px transparent;
  }
}
.checkbox-wrapper-12 .cbx input#captchaCheckVisualSolicitud {
    position: absolute !important;
    inset: 0 !important;
    width: 32px !important;
    height: 32px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.checkbox-wrapper-12 .cbx label {
    z-index: 1;
}

.checkbox-wrapper-12 .cbx svg {
    z-index: 3;
}

/* Hero tags */
.slep-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 575px) {
    .slep-scroll-down {
        width: 38px;
        height: 38px;
        bottom: 12px;
        font-size: 15px;
    }
}

.slep-hero-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(2px);
}

/* Checklist "Qué incluye" */
.slep-includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slep-includes-grid li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #222222;
}

.slep-includes-grid li i {
    color: #ff7a00;
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .slep-includes-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA WhatsApp */
.slep-whatsapp-cta {
    margin-top: 28px;
    padding: 22px 26px;
    border-radius: 16px;
    background: #f4fbf6;
    border: 1px solid #cdeedd;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.slep-whatsapp-cta p {
    margin: 0;
    font-weight: 600;
    color: #222222;
}

.btn-whatsapp-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s ease;
}

.btn-whatsapp-info:hover {
    background: #1ebc59;
    color: #ffffff;
}

.btn-whatsapp-info i {
    font-size: 20px;
}

/* Tours relacionados */
.slep-related-section {
    padding: 50px 0 70px;
}

.slep-related-section h3 {
    text-transform: uppercase;
    margin-bottom: 28px;
    text-align: center;
}

.slep-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.slep-related-card {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ececec;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.slep-related-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.slep-related-card_body {
    padding: 20px 22px 24px;
}

.slep-related-card_body h5 {
    margin-bottom: 8px;
    font-weight: 700;
}

.slep-related-card_body p {
    color: #555555;
    margin-bottom: 16px;
}

.btn-ver-tour {
    display: inline-block;
    background: #ff7a00;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-ver-tour:hover {
    background: #e96f00;
    color: #ffffff;
}

@media (max-width: 767px) {
    .slep-related-grid {
        grid-template-columns: 1fr;
    }

    .slep-whatsapp-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-whatsapp-info {
        width: 100%;
        justify-content: center;
    }
}
