/**
 * Terra Quechua — Tipografía General del Sitio
 * - Títulos y Encabezados: Poppins
 * - Contenido y Textos: Montserrat
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

:root {
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-family: var(--font-body);
}

/* ==========================================================================
   1. CONTENIDO GENERAL (BODY, PÁRRAFOS, LISTAS, FORMULARIOS) -> MONTSERRAT
   ========================================================================== */
html,
body {
    font-family: var(--font-body) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
p,
li,
a,
span,
input,
button,
select,
textarea,
label,
td,
th,
caption,
blockquote,
small,
.small,
.lead,
.btn,
.itinerario,
.itinerario p,
.itinerary,
.itinerary p,
.itinerary__content-day,
.tab-content-item,
.tab-content-item p,
.packages__item,
.packages__item p,
.tours__item,
.tours__item-description,
.tours__top-list,
.footer,
.footer p,
.footer-menu,
.social-item,
.accordion-body,
.book__summary,
.book__body-field,
.book__table-col label {
    font-family: var(--font-body);
}

p {
    line-height: 1.7;
    font-weight: 400;
}

/* ==========================================================================
   2. TÍTULOS Y ENCABEZADOS -> POPPINS
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.title,
.title:after,
.category__title,
.packages__title,
.itinerary__title,
.itinerary__slider-title,
.itinerary__subtitle,
.itinerario h2,
.itinerario h3,
.itinerary__content-day-title,
.tours__item-title,
.tours__top-title,
.tours__bgimage-title,
.main-title,
.main-title h1,
.main-title h2,
.main-title h3,
.footer-title,
.accordion-button,
.accordion-header,
.carousel__item-title,
.book-box-title,
.book__header-title,
.modal-title,
.presentation h2,
.tour-slider__header,
.nav-menu .menu li a,
.terra-tour-nav .nav-link,
.terra-tour-nav-link,
.tqw-btn,
.tqw-field-head,
.tqw-price-label,
.tqw-price-num {
    font-family: var(--font-heading) !important;
}

h1, .h1, .display-1, .display-2, .display-3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2, .h2, .display-4, .display-5 {
    font-weight: 700;
    letter-spacing: -0.3px;
}

h3, .h3, .display-6 {
    font-weight: 600;
    letter-spacing: -0.2px;
}

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

.nav-menu .menu li a {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================================
   Terra Destinations Carousel (Peru Tours - Redesign Image 2)
   ============================================================ */
.slider-dest-peru {
    overflow: hidden;
    padding: 10px 4px 20px 4px !important;
}

.terra-dest-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 350px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -4px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #1e293b;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix safari rounded border radius overflow bug */
}

.terra-dest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.22), 0 10px 15px -5px rgba(0, 0, 0, 0.12);
}

.terra-dest-card__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.terra-dest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.002);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.terra-dest-card:hover .terra-dest-card__img {
    transform: scale(1.08);
}

.terra-dest-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.terra-dest-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.32) 0%,
        rgba(15, 23, 42, 0) 35%,
        rgba(15, 23, 42, 0.08) 60%,
        rgba(15, 23, 42, 0.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Badge Top-Left: Dark Pill (Image 2) */
.terra-dest-card__badge-dark {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Badge Top-Right: White Rating Pill (Image 2) */
.terra-dest-card__badge-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0f172a;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.terra-dest-card__badge-rating i {
    color: #f59e0b; /* Gold Star */
    font-size: 12px;
}

/* Bottom Badge: White Title Pill (Image 2 style with Image 1 data) */
.terra-dest-card__badge-title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    max-width: calc(100% - 32px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0f172a;
    border-radius: 12px;
    padding: 9px 16px;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.terra-dest-card:hover .terra-dest-card__badge-title {
    background: #ffffff;
    color: var(--page-color, #2e47ab);
    transform: translateY(-2px);
}

.terra-dest-card__icon {
    color: var(--page-color, #2e47ab);
    font-size: 14px;
    flex-shrink: 0;
}

.terra-dest-card__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sleek Circular Navigation Buttons */
.terra-dest-nav-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #f7931e !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    box-shadow: 0 4px 14px rgba(247, 147, 30, 0.45) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    border: 2px solid #ffffff !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.terra-dest-nav-btn:hover {
    background: #e07e0c !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(247, 147, 30, 0.6) !important;
    color: #ffffff !important;
}

.terra-dest-nav-prev {
    left: -12px !important;
}

.terra-dest-nav-next {
    right: -12px !important;
}

@media (max-width: 991px) {
    .terra-dest-nav-prev {
        left: 0px !important;
    }
    .terra-dest-nav-next {
        right: 0px !important;
    }
}

@media (max-width: 576px) {
    .terra-dest-card {
        min-height: 320px;
        aspect-ratio: 3 / 4;
        border-radius: 16px;
    }
    .terra-dest-card__badge-dark {
        top: 12px;
        left: 12px;
        padding: 5px 10px;
        font-size: 12px;
    }
    .terra-dest-card__badge-rating {
        top: 12px;
        right: 12px;
        padding: 4px 10px;
        font-size: 12px;
    }
    .terra-dest-card__badge-title {
        bottom: 12px;
        left: 12px;
        padding: 8px 12px;
        font-size: 13px;
    }
    .terra-dest-nav-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
    }
}

/* ============================================================
   Tour Cards Modern Redesign (.tours__top)
   ============================================================ */
.tours__top {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.07), 0 4px 10px -2px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative !important;
    text-decoration: none !important;
}

.tours__top:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 35px -6px rgba(0, 0, 0, 0.14), 0 8px 16px -4px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(46, 71, 171, 0.25) !important;
}

.tours__top > a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    color: inherit !important;
    text-decoration: none !important;
}

.tours__top-image {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 200px !important;
    max-height: 240px !important;
    overflow: hidden !important;
    margin: 0 !important;
    background-color: #1e293b !important;
    border: none !important;
}

.tours__top-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transform: scale(1.002) !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tours__top:hover .tours__top-image img {
    transform: scale(1.08) !important;
}

.tours__top-image::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.45) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Tag / Ribbon Promotional Badge */
.terra-tour-badge-promo {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 3 !important;
    background: #f7931e !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(247, 147, 30, 0.35) !important;
}

/* Rating Badge (Top Right) */
.terra-tour-badge-rating {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 3 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #0f172a !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

.terra-tour-badge-rating i {
    color: #f59e0b !important;
    font-size: 11px !important;
}

/* TripAdvisor Badge (Bottom Left) */
.terra-tour-badge-ta {
    position: absolute !important;
    bottom: 12px !important;
    left: 14px !important;
    z-index: 3 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) !important;
}

.terra-tour-badge-ta img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    display: inline-block !important;
    transform: none !important;
    aspect-ratio: auto !important;
}

.terra-tour-badge-ta span {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #004f32 !important;
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    letter-spacing: 0.2px !important;
}

/* Card Content / Body */
.tours__top-content {
    padding: 18px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #ffffff !important;
    position: static !important;
    transition: none !important;
}

.tours__top-title {
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 16.5px !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    text-align: left !important;
    border: none !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 44px !important;
    transition: color 0.25s ease !important;
}

.tours__top:hover .tours__top-title {
    color: var(--page-color, #2e47ab) !important;
}

/* Rating Row */
.terra-tour-rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.terra-tour-rating-stars {
    display: inline-flex !important;
    gap: 3px !important;
    color: #f59e0b !important;
    font-size: 13px !important;
}

.terra-tour-rating-score {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    font-family: var(--font-body, 'Montserrat', sans-serif) !important;
}

/* Actions / Bottom Row */
.tours__top-actions {
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 14px !important;
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.terra-tour-price-box {
    text-align: left !important;
}

.terra-tour-price-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    margin-bottom: 2px !important;
    font-family: var(--font-body, 'Montserrat', sans-serif) !important;
    font-style: normal !important;
}

.terra-tour-price-val {
    color: var(--page-color, #2e47ab) !important;
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    line-height: 1 !important;
}

.terra-tour-price-curr {
    font-size: 13px !important;
    font-weight: 700 !important;
}

.terra-tour-price-num {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* CTA Button */
.terra-tour-btn {
    background: var(--page-color, #2e47ab) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: 0 4px 12px rgba(46, 71, 171, 0.25) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.25s ease !important;
    line-height: 1.4 !important;
}

.tours__top:hover .terra-tour-btn {
    background: #1e3599 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(46, 71, 171, 0.4) !important;
    color: #ffffff !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .tours__top-content {
        padding: 12px 14px !important;
    }
    .tours__top-title {
        font-size: 14px !important;
        min-height: 38px !important;
        margin-bottom: 6px !important;
    }
    .terra-tour-rating-row {
        margin-bottom: 8px !important;
        gap: 4px !important;
    }
    .terra-tour-rating-stars {
        font-size: 11px !important;
    }
    .terra-tour-rating-score {
        font-size: 11px !important;
    }
    .tours__top-actions {
        padding-top: 10px !important;
    }
    .terra-tour-price-num {
        font-size: 18px !important;
    }
    .terra-tour-btn {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }
}

/* ==========================================================================
   Centered Section Headers & Descriptions
   ========================================================================== */
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.terra-section-desc {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.terra-section-desc p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0.5rem;
}

