/**
 * Estilos de WooCommerce — Papa Tours
 * Diseño on-brand del producto individual (tours) y elementos de tienda.
 * Usa los tokens definidos en style.css (--pt-*).
 */

/* ==========================================================================
   Contenedor general
   ========================================================================== */
.pt-woocommerce-main {
    padding: var(--pt-spacing-2xl) 0 var(--pt-spacing-3xl);
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    color: var(--pt-muted);
    margin-bottom: var(--pt-spacing-xl);
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--pt-primary);
    text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Layout del producto individual
   ========================================================================== */
.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--pt-spacing-2xl);
    align-items: start;
}

/* Neutraliza los anchos/floats por defecto de WooCommerce */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary,
.single-product div.product .entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Pestañas y relacionados ocupan todo el ancho debajo */
.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .upsells {
    grid-column: 1 / -1;
}

/* ==========================================================================
   Galería de imágenes
   ========================================================================== */
.single-product .woocommerce-product-gallery {
    position: relative;
}

.single-product .woocommerce-product-gallery__wrapper {
    border-radius: var(--pt-radius-lg);
    overflow: hidden;
    box-shadow: var(--pt-shadow-md);
}

.single-product .woocommerce-product-gallery img {
    border-radius: var(--pt-radius-lg);
}

.single-product .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pt-spacing-sm);
    margin-top: var(--pt-spacing-sm);
    padding: 0;
    list-style: none;
}

.single-product .flex-control-thumbs li {
    flex: 0 0 calc((100% - 3 * var(--pt-spacing-sm)) / 4);
    margin: 0;
}

.single-product .flex-control-thumbs img {
    border-radius: var(--pt-radius-md);
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--pt-transition);
}

.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover {
    opacity: 1;
    border-color: var(--pt-secondary);
}

/* Insignia de oferta */
.single-product span.onsale,
.woocommerce span.onsale {
    background-color: var(--pt-secondary);
    color: #ffffff;
    font-family: var(--pt-font-body);
    font-weight: 700;
    font-size: var(--pt-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--pt-radius-full);
    padding: 0.35em 0.9em;
    min-height: 0;
    min-width: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Resumen del producto (columna derecha)
   ========================================================================== */
.single-product .product_title.entry-title {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-4xl);
    line-height: 1.2;
    color: var(--pt-primary);
    margin-bottom: var(--pt-spacing-md);
}

/* Rating */
.single-product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: var(--pt-spacing-sm);
    margin-bottom: var(--pt-spacing-md);
}

.single-product .woocommerce-product-rating .star-rating span::before,
.woocommerce .star-rating span::before {
    color: var(--pt-secondary);
}

.single-product .woocommerce-review-link {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    color: var(--pt-muted);
}

/* Precio */
.single-product .summary .price,
.single-product .summary .price ins {
    font-family: var(--pt-font-heading);
    font-weight: 700;
    color: var(--pt-primary);
    text-decoration: none;
}

.single-product .summary .price {
    font-size: var(--pt-text-3xl);
    margin-bottom: var(--pt-spacing-lg);
}

.single-product .summary .price del {
    font-size: var(--pt-text-xl);
    color: var(--pt-muted);
    opacity: 0.8;
    margin-right: var(--pt-spacing-sm);
    font-weight: 400;
}

.single-product .summary .price .woocommerce-Price-currencySymbol {
    font-size: 0.7em;
    vertical-align: super;
    margin-right: 2px;
}

/* Descripción corta */
.single-product .woocommerce-product-details__short-description {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    line-height: 1.75;
    color: var(--pt-text);
    padding: var(--pt-spacing-lg) 0;
    margin-bottom: var(--pt-spacing-lg);
    border-top: 1px solid var(--pt-border);
    border-bottom: 1px solid var(--pt-border);
}

.single-product .woocommerce-product-details__short-description ul {
    padding-left: 1.2em;
    margin: var(--pt-spacing-sm) 0;
}

.single-product .woocommerce-product-details__short-description li {
    margin-bottom: 0.4em;
}

/* ==========================================================================
   Formulario de compra (cantidad + añadir al carrito)
   ========================================================================== */
.single-product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--pt-spacing-md);
    margin-bottom: var(--pt-spacing-lg);
}

.single-product form.cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    overflow: hidden;
    background-color: var(--pt-surface);
}

.single-product form.cart .quantity input.qty {
    width: 64px;
    height: 52px;
    border: none;
    text-align: center;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    font-weight: 600;
    color: var(--pt-dark);
    background: transparent;
    -moz-appearance: textfield;
}

.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botón principal Añadir al carrito */
.single-product .single_add_to_cart_button,
.woocommerce .single_add_to_cart_button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 2rem;
    background-color: var(--pt-secondary);
    color: #ffffff;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--pt-radius-md);
    cursor: pointer;
    transition: var(--pt-transition);
}

.single-product .single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button.button:hover {
    background-color: var(--pt-secondary-dark);
    color: #ffffff;
}

/* Botón de consulta por WhatsApp (añadido vía hook) */
.pt-wa-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 1.75rem;
    background-color: #25D366;
    color: #ffffff;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--pt-radius-md);
    transition: var(--pt-transition);
    margin-bottom: var(--pt-spacing-lg);
}

.pt-wa-inquiry:hover {
    background-color: #1da851;
    color: #ffffff;
}

.pt-wa-inquiry svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Meta del producto (categorías, SKU)
   ========================================================================== */
.single-product .product_meta {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    color: var(--pt-muted);
    padding-top: var(--pt-spacing-md);
    border-top: 1px solid var(--pt-border);
}

.single-product .product_meta > span {
    display: block;
    margin-bottom: 6px;
}

.single-product .product_meta a {
    color: var(--pt-primary);
    text-decoration: none;
}

.single-product .product_meta a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Pestañas (Descripción, Información adicional, Reseñas)
   ========================================================================== */
.single-product .woocommerce-tabs {
    margin-top: var(--pt-spacing-3xl);
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pt-spacing-sm);
    padding: 0;
    margin: 0 0 var(--pt-spacing-xl);
    border-bottom: 2px solid var(--pt-border);
}

.single-product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.single-product .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: var(--pt-spacing-md) var(--pt-spacing-lg);
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    font-weight: 600;
    color: var(--pt-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--pt-transition);
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--pt-primary);
    border-bottom-color: var(--pt-secondary);
}

.single-product .woocommerce-Tabs-panel {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    line-height: 1.8;
    color: var(--pt-text);
}

.single-product .woocommerce-Tabs-panel h2 {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-2xl);
    color: var(--pt-primary);
    margin-bottom: var(--pt-spacing-md);
}

/* Tabla de información adicional */
.single-product .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.single-product .woocommerce-product-attributes th,
.single-product .woocommerce-product-attributes td {
    padding: var(--pt-spacing-md);
    border: 1px solid var(--pt-border);
    text-align: left;
}

.single-product .woocommerce-product-attributes th {
    background-color: var(--pt-light);
    color: var(--pt-dark);
    font-weight: 600;
    width: 30%;
}

/* ==========================================================================
   Productos relacionados / upsells
   ========================================================================== */
.single-product .upsells.products {
    margin-top: var(--pt-spacing-3xl);
    padding-top: var(--pt-spacing-2xl);
    border-top: 1px solid var(--pt-border);
}

/* Tours relacionados: banda a todo el ancho de la pantalla */
.single-product .related.products.pt-related {
    /* Anula .related { width:30.75%; float:left } del plugin WooCommerce */
    width: 100vw !important;
    float: none !important;
    clear: both;
    margin-left: calc(50% - 50vw);
    margin-top: var(--pt-spacing-2xl);
    padding: var(--pt-spacing-3xl) 0;
    border-top: 1px solid var(--pt-border);
    background: var(--pt-light);
}

.pt-related__title {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-2xl);
    color: var(--pt-primary);
    text-align: center;
    margin-bottom: var(--pt-spacing-2xl);
}

.single-product .related.products.pt-related .pt-tours-grid {
    margin-top: 0;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-2xl);
    color: var(--pt-primary);
    margin-bottom: var(--pt-spacing-xl);
    text-align: center;
}

/* Grid de tarjetas de producto */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--pt-spacing-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    background-color: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    overflow: hidden;
    box-shadow: var(--pt-shadow-sm);
    transition: var(--pt-transition);
    text-align: left;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--pt-shadow-lg);
}

.woocommerce ul.products li.product a img {
    margin: 0;
    border-radius: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-lg);
    color: var(--pt-primary);
    padding: var(--pt-spacing-md) var(--pt-spacing-md) 0;
}

.woocommerce ul.products li.product .price {
    display: block;
    font-family: var(--pt-font-body);
    font-weight: 700;
    color: var(--pt-secondary-dark);
    padding: 0 var(--pt-spacing-md);
    margin-top: var(--pt-spacing-sm);
}

.woocommerce ul.products li.product .button {
    display: inline-block;
    margin: var(--pt-spacing-md);
    padding: 0.65rem 1.25rem;
    background-color: var(--pt-primary);
    color: #ffffff;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    font-weight: 600;
    border-radius: var(--pt-radius-md);
    text-decoration: none;
    transition: var(--pt-transition);
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--pt-primary-dark);
    color: #ffffff;
}

/* ==========================================================================
   Mensajes / notices de WooCommerce
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    font-family: var(--pt-font-body);
    border-top-color: var(--pt-secondary);
    border-radius: var(--pt-radius-md);
}

.woocommerce-message .button,
.woocommerce-info .button {
    background-color: var(--pt-primary);
    color: #ffffff;
    border-radius: var(--pt-radius-sm);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: var(--pt-spacing-xl);
    }

    .single-product .product_title.entry-title {
        font-size: var(--pt-text-3xl);
    }
}

@media (max-width: 480px) {
    .single-product form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product form.cart .quantity,
    .single-product .single_add_to_cart_button,
    .pt-wa-inquiry {
        width: 100%;
    }

    .single-product form.cart .quantity {
        justify-content: center;
    }
}

/* ==========================================================================
   PLANTILLA DE TOUR (producto individual personalizado)
   ========================================================================== */

/* El hero va al ras; sin padding superior del main en productos */
.single-product .pt-woocommerce-main {
    padding-top: 0;
}

/* ---------- HERO full-width ---------- */
.pt-tour-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.pt-tour-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.90) 0%, rgba(15,23,42,0.45) 55%, rgba(15,23,42,0.25) 100%);
}

.pt-tour-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: var(--pt-spacing-3xl);
    padding-bottom: var(--pt-spacing-xl);
}

.pt-tour-hero__badge {
    display: inline-block;
    background-color: var(--pt-secondary);
    color: #ffffff;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--pt-radius-full);
    margin-bottom: var(--pt-spacing-md);
}

.pt-tour-hero__title {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-4xl);
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 var(--pt-spacing-lg);
    max-width: 900px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* Barra de características */
.pt-tour-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pt-spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border-radius: var(--pt-radius-md);
}

.pt-feature__icon {
    display: inline-flex;
    color: var(--pt-secondary-light);
}

.pt-feature__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.pt-feature__label {
    font-family: var(--pt-font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.pt-feature__value {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    font-weight: 700;
    color: #ffffff;
}

/* ---------- Breadcrumb ---------- */
.pt-tour-breadcrumb {
    padding: var(--pt-spacing-lg) 0 0;
}

.pt-tour-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
}

/* ---------- Botones base ---------- */
.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 1.5rem;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: var(--pt-radius-md);
    cursor: pointer;
    transition: var(--pt-transition);
}

.pt-btn--block { width: 100%; }

.pt-btn--primary {
    background-color: var(--pt-primary);
    color: #ffffff;
}
.pt-btn--primary:hover {
    background-color: var(--pt-primary-dark);
    color: #ffffff;
}

.pt-btn--wa {
    background-color: #25D366;
    color: #ffffff;
}
.pt-btn--wa:hover {
    background-color: #1da851;
    color: #ffffff;
}

/* ---------- Intro (descripción + contacto) ---------- */
.pt-tour-intro {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--pt-spacing-xl);
    align-items: start;
    margin: var(--pt-spacing-xl) 0 var(--pt-spacing-2xl);
}

.pt-tour-intro__main {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    padding: var(--pt-spacing-xl);
    box-shadow: var(--pt-shadow-sm);
}

.pt-tour-intro__text {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    line-height: 1.8;
    color: var(--pt-text);
}
.pt-tour-intro__text p { margin: 0 0 1em; }
.pt-tour-intro__text p:last-child { margin-bottom: 0; }

/* Tarjeta de contacto */
.pt-tour-intro__contact {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-top: 4px solid var(--pt-secondary);
    border-radius: var(--pt-radius-lg);
    padding: var(--pt-spacing-xl);
    box-shadow: var(--pt-shadow-sm);
}

.pt-contact-card__title {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pt-muted);
    margin-bottom: var(--pt-spacing-sm);
}

.pt-contact-card__sub {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    color: var(--pt-text);
    margin-bottom: var(--pt-spacing-lg);
}

.pt-tour-intro__contact .pt-btn {
    width: 100%;
    margin-bottom: var(--pt-spacing-sm);
}

.pt-contact-card__list {
    list-style: none;
    margin: var(--pt-spacing-md) 0 0;
    padding: 0;
}

.pt-contact-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    color: var(--pt-text);
}

.pt-contact-card__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--pt-secondary);
}

/* ---------- Navegación de pestañas (banda full-width, ícono arriba) ---------- */
.pt-tour-tabs {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: var(--pt-spacing-xl);
    background-color: var(--pt-primary);
    background-image: linear-gradient(135deg, var(--pt-primary) 0%, var(--pt-primary-dark) 100%);
    box-shadow: var(--pt-shadow-sm);
}

.pt-tour-tabs__inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    width: 100%;
    max-width: var(--pt-container-2xl);
    margin: 0 auto;
    padding: 10px var(--pt-spacing-md);
    scrollbar-width: none;
}

.pt-tour-tabs__inner::-webkit-scrollbar { display: none; }

.pt-tour-tab {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--pt-radius-md);
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--pt-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--pt-transition);
}

.pt-tour-tab__icon {
    display: inline-flex;
    color: currentColor;
}

.pt-tour-tab__icon svg {
    width: 24px;
    height: 24px;
}

.pt-tour-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.pt-tour-tab.is-active {
    color: var(--pt-dark);
    background: var(--pt-surface);
    box-shadow: var(--pt-shadow-md);
}

.pt-tour-tab.is-active .pt-tour-tab__icon {
    color: var(--pt-secondary);
}

/* Pestaña de acción "Reservar" (acento) */
.pt-tour-tab--enquire {
    color: var(--pt-secondary-light);
}

.pt-tour-tab--enquire .pt-tour-tab__icon {
    color: var(--pt-secondary-light);
}

.pt-tour-tab--enquire:hover {
    color: #ffffff;
    background: var(--pt-secondary);
}

.pt-tour-tab--enquire:hover .pt-tour-tab__icon {
    color: #ffffff;
}

/* ---------- Contenedor de paneles ---------- */
.pt-tour-content {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    padding: var(--pt-spacing-xl);
    box-shadow: var(--pt-shadow-sm);
}

.pt-tour-panel__title {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-2xl);
    color: var(--pt-primary);
    margin: 0 0 var(--pt-spacing-lg);
    padding-bottom: var(--pt-spacing-sm);
    border-bottom: 2px solid var(--pt-border);
}

/* Paneles: solo el activo es visible */
.pt-tour-panel {
    display: none;
}

.pt-tour-panel.is-active {
    display: block;
    animation: pt-fade-in 0.25s ease;
}

@keyframes pt-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Cuerpo: contenido + reserva ---------- */
.pt-tour-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--pt-spacing-2xl);
    align-items: start;
    margin-bottom: var(--pt-spacing-3xl);
}

.pt-tour-section {
    scroll-margin-top: 96px;
    margin-bottom: var(--pt-spacing-2xl);
}

.pt-tour-section__title {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-2xl);
    color: var(--pt-primary);
    margin-bottom: var(--pt-spacing-lg);
    padding-bottom: var(--pt-spacing-sm);
    border-bottom: 2px solid var(--pt-border);
}

.pt-richtext {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    line-height: 1.8;
    color: var(--pt-text);
}
.pt-richtext p { margin: 0 0 1em; }

/* Itinerario */
.pt-itinerary { list-style: none; margin: 0; padding: 0; }

.pt-itinerary__day {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--pt-spacing-md);
    padding-bottom: var(--pt-spacing-lg);
    margin-bottom: var(--pt-spacing-lg);
    border-bottom: 1px dashed var(--pt-border);
}

.pt-itinerary__day:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pt-itinerary__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--pt-primary);
    color: #ffffff;
    line-height: 1;
}

.pt-itinerary__badge small {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.pt-itinerary__badge strong {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-xl);
}

.pt-itinerary__title {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-lg);
    color: var(--pt-dark);
    margin: 4px 0 var(--pt-spacing-sm);
}

.pt-itinerary__list { margin: 0; padding: 0; list-style: none; }

.pt-itinerary__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    line-height: 1.6;
    color: var(--pt-text);
}

.pt-itinerary__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--pt-secondary);
}

/* Incluye / No incluye */
.pt-includes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pt-spacing-lg);
}

.pt-includes__list { list-style: none; margin: 0; padding: 0; }

.pt-includes__list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    line-height: 1.6;
    color: var(--pt-text);
}

.pt-includes__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
}

.pt-includes__list--yes li::before {
    background-color: #16a34a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pt-includes__list--no li::before {
    background-color: #dc2626;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* FAQ del tour */
.pt-tour-faq__item {
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    margin-bottom: var(--pt-spacing-sm);
    overflow: hidden;
}

.pt-tour-faq__item[open] { border-color: var(--pt-secondary); }

.pt-tour-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pt-spacing-md);
    padding: var(--pt-spacing-md) var(--pt-spacing-lg);
    cursor: pointer;
    list-style: none;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    font-weight: 600;
    color: var(--pt-dark);
}

.pt-tour-faq__q::-webkit-details-marker { display: none; }

.pt-tour-faq__icon {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.pt-tour-faq__icon::before,
.pt-tour-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    background-color: var(--pt-secondary);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.pt-tour-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.pt-tour-faq__item[open] .pt-tour-faq__icon::after { transform: translate(-50%, -50%) rotate(0); }

.pt-tour-faq__a { padding: 0 var(--pt-spacing-lg) var(--pt-spacing-md); }

.pt-tour-faq__a p {
    margin: 0;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    line-height: 1.7;
    color: var(--pt-text);
}

/* Precios */
.pt-price-lead {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-lg);
    color: var(--pt-text);
    margin-bottom: var(--pt-spacing-md);
}

.pt-price-lead__amount {
    font-family: var(--pt-font-heading);
    font-weight: 700;
    color: var(--pt-primary);
    font-size: var(--pt-text-2xl);
}

.pt-prices-table { width: 100%; border-collapse: collapse; }

.pt-prices-table th,
.pt-prices-table td {
    padding: var(--pt-spacing-md);
    border: 1px solid var(--pt-border);
    text-align: left;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
}

.pt-prices-table th {
    background-color: var(--pt-light);
    color: var(--pt-dark);
    font-weight: 600;
}

.pt-prices-table td {
    font-weight: 700;
    color: var(--pt-secondary-dark);
}

/* ---------- Tarjeta de reserva (sticky) ---------- */
.pt-tour-booking {
    position: sticky;
    top: var(--pt-spacing-lg);
}

.pt-booking-card {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-top: 4px solid var(--pt-secondary);
    border-radius: var(--pt-radius-lg);
    padding: var(--pt-spacing-xl);
    box-shadow: var(--pt-shadow-md);
}

.pt-booking-card__eyebrow {
    display: block;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pt-muted);
    margin-bottom: 4px;
}

.pt-booking-card__title {
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-lg);
    color: var(--pt-primary);
    margin-bottom: var(--pt-spacing-sm);
}

.pt-booking-card__price {
    font-family: var(--pt-font-heading);
    font-weight: 700;
    color: var(--pt-secondary-dark);
    font-size: var(--pt-text-xl);
    margin-bottom: var(--pt-spacing-md);
}

.pt-booking-card__or {
    position: relative;
    text-align: center;
    margin: var(--pt-spacing-md) 0;
}

.pt-booking-card__or::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--pt-border);
}

.pt-booking-card__or span {
    position: relative;
    background: var(--pt-surface);
    padding: 0 var(--pt-spacing-sm);
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-xs);
    color: var(--pt-muted);
}

/* Formulario */
.pt-booking-form label { display: block; margin-bottom: var(--pt-spacing-sm); }

.pt-booking-form label span {
    display: block;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-xs);
    font-weight: 600;
    color: var(--pt-dark);
    margin-bottom: 4px;
}

.pt-booking-form input,
.pt-booking-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    color: var(--pt-dark);
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    transition: var(--pt-transition);
}

.pt-booking-form input:focus,
.pt-booking-form textarea:focus {
    outline: none;
    border-color: var(--pt-primary);
    box-shadow: 0 0 0 3px rgba(0, 75, 147, 0.12);
}

.pt-booking-form button { margin-top: var(--pt-spacing-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .pt-tour-layout { grid-template-columns: 1fr; }
    .pt-tour-booking { position: static; max-width: 460px; }
}

@media (max-width: 768px) {
    .pt-tour-intro { grid-template-columns: 1fr; }
    .pt-tour-hero { min-height: 380px; }
    .pt-tour-hero__title { font-size: var(--pt-text-3xl); }
    .pt-includes { grid-template-columns: 1fr; }
}

/* Itinerario: contenido enriquecido (editor nativo) */
.pt-itinerary__body {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    line-height: 1.7;
    color: var(--pt-text);
}
.pt-itinerary__body p { margin: 0 0 0.6em; }
.pt-itinerary__body p:last-child { margin-bottom: 0; }
.pt-itinerary__body ul,
.pt-itinerary__body ol { margin: 0.4em 0; padding-left: 0; list-style: none; }
.pt-itinerary__body ul li,
.pt-itinerary__body ol li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}
.pt-itinerary__body ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--pt-secondary);
}
.pt-itinerary__body ol { counter-reset: pt-itin; }
.pt-itinerary__body ol li { counter-increment: pt-itin; }
.pt-itinerary__body ol li::before {
    content: counter(pt-itin);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 11px;
    font-weight: 700;
    color: var(--pt-secondary-dark);
}
.pt-itinerary__body a { color: var(--pt-primary); text-decoration: underline; }

/* Incluye / No incluye con editor nativo (listas HTML) */
.pt-includes__label {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-base);
    font-weight: 700;
    color: var(--pt-dark);
    margin: 0 0 var(--pt-spacing-sm);
}

.pt-richlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-richlist ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    line-height: 1.6;
    color: var(--pt-text);
}

.pt-richlist ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
}

.pt-includes__col--yes .pt-richlist ul li::before {
    background-color: #16a34a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pt-includes__col--no .pt-richlist ul li::before {
    background-color: #dc2626;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.pt-richlist p {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    line-height: 1.7;
    color: var(--pt-text);
    margin: 0 0 0.6em;
}

/* Respuesta de FAQ enriquecida */
.pt-tour-faq__a p { margin: 0 0 0.6em; }
.pt-tour-faq__a p:last-child { margin-bottom: 0; }
.pt-tour-faq__a ul,
.pt-tour-faq__a ol { margin: 0.4em 0; padding-left: 1.2em; }
.pt-tour-faq__a li {
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    line-height: 1.7;
    color: var(--pt-text);
    margin-bottom: 4px;
}
.pt-tour-faq__a a { color: var(--pt-primary); text-decoration: underline; }

/* ==========================================================================
   Acordeones de secciones del tour (Resumen, Itinerario, Incluye, FAQ, Precios)
   ========================================================================== */
.pt-acc-group {
    display: flex;
    flex-direction: column;
    gap: var(--pt-spacing-md);
}

.pt-acc {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    overflow: hidden;
    box-shadow: var(--pt-shadow-sm);
    transition: var(--pt-transition);
}

.pt-acc[open] {
    box-shadow: var(--pt-shadow-md);
    border-color: var(--pt-secondary);
}

.pt-acc__head {
    display: flex;
    align-items: center;
    gap: var(--pt-spacing-md);
    padding: var(--pt-spacing-lg);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pt-acc__head::-webkit-details-marker { display: none; }

.pt-acc__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--pt-radius-md);
    background: rgba(212, 155, 40, 0.12);
    color: var(--pt-secondary);
}

.pt-acc[open] .pt-acc__icon {
    background: var(--pt-primary);
    color: #ffffff;
}

.pt-acc__title {
    flex: 1 1 auto;
    font-family: var(--pt-font-heading);
    font-size: var(--pt-text-xl);
    color: var(--pt-primary);
    line-height: 1.2;
}

.pt-acc__chevron {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-right: 2px solid var(--pt-muted);
    border-bottom: 2px solid var(--pt-muted);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.25s ease, margin 0.25s ease;
}

.pt-acc[open] .pt-acc__chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
    border-color: var(--pt-primary);
}

.pt-acc__body {
    padding: 0 var(--pt-spacing-lg) var(--pt-spacing-lg);
    border-top: 1px solid var(--pt-border);
    padding-top: var(--pt-spacing-lg);
}

@media (max-width: 768px) {
    .pt-acc__head { padding: var(--pt-spacing-md); gap: var(--pt-spacing-sm); }
    .pt-acc__title { font-size: var(--pt-text-lg); }
    .pt-acc__body { padding-left: var(--pt-spacing-md); padding-right: var(--pt-spacing-md); }
}

/* ==========================================================================
   Galería estilo Airbnb + Lightbox
   ========================================================================== */
.pt-gallery {
    position: relative;
    display: grid;
    gap: 8px;
    border-radius: var(--pt-radius-lg);
    overflow: hidden;
}

.pt-gallery__item {
    position: relative;
    padding: 0;
    border: none;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: var(--pt-border);
    min-height: 100%;
    transition: filter 0.2s ease, transform 0.3s ease;
}

.pt-gallery__item:hover {
    filter: brightness(0.9);
}

/* Mosaico (5 o más fotos) */
.pt-gallery--mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 195px;
}

.pt-gallery--mosaic .pt-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* Grilla (2 a 4 fotos) */
.pt-gallery--grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
}

/* Una sola foto */
.pt-gallery--single {
    grid-template-columns: 1fr;
}
.pt-gallery--single .pt-gallery__item {
    min-height: 400px;
}

.pt-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
    font-family: var(--pt-font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.pt-gallery__showall {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    color: var(--pt-dark);
    border: 1px solid var(--pt-dark);
    border-radius: var(--pt-radius-md);
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--pt-shadow-md);
    transition: var(--pt-transition);
}

.pt-gallery__showall:hover {
    background: var(--pt-light);
}

@media (max-width: 768px) {
    .pt-gallery--mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    .pt-gallery--mosaic .pt-gallery__item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    .pt-gallery--grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox */
.pt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(15, 23, 42, 0.94);
}

.pt-lightbox.is-open {
    display: flex;
}

.pt-lightbox__stage {
    margin: 0;
    max-width: 92vw;
    max-height: 86vh;
}

.pt-lightbox__stage img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--pt-radius-md);
    display: block;
}

.pt-lightbox__close,
.pt-lightbox__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.2s ease;
}

.pt-lightbox__close:hover,
.pt-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.32);
}

.pt-lightbox__close {
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 26px;
}

.pt-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 30px;
}

.pt-lightbox__prev { left: 24px; }
.pt-lightbox__next { right: 24px; }

.pt-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: var(--pt-font-body);
    font-size: var(--pt-text-sm);
}

@media (max-width: 600px) {
    .pt-lightbox { padding: 16px; }
    .pt-lightbox__prev { left: 8px; }
    .pt-lightbox__next { right: 8px; }
    .pt-lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
}

/* Barra inferior arrastrable de pestañas (solo móvil) */
.pt-tour-tabs__scroll {
    display: none;
}

@media (max-width: 768px) {
    .pt-tour-tabs__scroll.has-overflow {
        display: block;
        position: relative;
        width: 110px;
        height: 5px;
        margin: 8px auto 2px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.25);
        touch-action: none;
        cursor: pointer;
    }

    .pt-tour-tabs__thumb {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 42px;
        border-radius: 999px;
        background: #ffffff;
        cursor: grab;
        will-change: transform;
    }

    .pt-tour-tabs__thumb:active {
        cursor: grabbing;
    }

    /* Un poco menos de padding inferior en el inner porque va la barra */
    .pt-tour-tabs__inner {
        padding-bottom: 4px;
    }
}

/* ==========================================================================
   Catálogo y Archivo General de Tours (/tours/ y product_cat)
   ========================================================================== */

.pt-tours-archive-page {
    background-color: #f8fafc;
    min-height: 100vh;
}

/* Ocultar barra externa de migas de pan duplicadas */
.post-type-archive-product .pt-breadcrumbs-container,
.tax-product_cat .pt-breadcrumbs-container,
.tax-product_tag .pt-breadcrumbs-container,
.page-template-page-tours .pt-breadcrumbs-container {
    display: none !important;
}

/* ---- 1. Hero Banner del Catálogo ---- */
.pt-archive-hero {
    position: relative;
    background: linear-gradient(135deg, #052347 0%, #004b93 60%, #032b57 100%);
    color: #ffffff;
    padding: 3rem 0 3.5rem;
    overflow: hidden;
}

.pt-archive-hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 128, 0, 0.12) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(0, 168, 232, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.pt-archive-hero-container {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs del Hero */
.pt-archive-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.pt-archive-breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pt-archive-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.pt-bc-sep {
    color: rgba(255, 255, 255, 0.4);
}

.pt-bc-current {
    color: #ffffff;
    font-weight: 600;
}

/* Contenido del Hero */
.pt-archive-hero-content {
    max-width: 820px;
}

.pt-archive-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffd080;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.pt-archive-hero-title {
    font-family: var(--pt-font-heading);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 1rem;
    font-weight: 800;
}

.pt-archive-hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.75rem;
    max-width: 720px;
}

/* Features del Hero */
.pt-archive-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 0.5rem;
}

.pt-hero-feat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
}

.pt-hero-feat-item svg {
    color: #ff9d2e;
    flex-shrink: 0;
}

/* ---- 2. Barra de Filtros por Destino ---- */
.pt-destinations-filter-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.pt-dest-pills {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.85rem 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pt-dest-pills::-webkit-scrollbar {
    display: none;
}

.pt-dest-pill-item {
    flex-shrink: 0;
}

.pt-dest-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.15rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.pt-dest-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.pt-dest-pill.is-active {
    background: #004b93;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 75, 147, 0.3);
}

.pt-dest-pill .pt-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1;
}

.pt-dest-pill.is-active .pt-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ---- 3. Contenido Principal y Toolbar ---- */
.pt-archive-content {
    padding: 2.5rem 0 4rem;
}

.pt-archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.pt-toolbar-results,
.pt-archive-toolbar .woocommerce-result-count {
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 !important;
    float: none !important;
}

.pt-toolbar-ordering,
.pt-archive-toolbar .woocommerce-ordering {
    margin: 0 !important;
    float: none !important;
}

.pt-archive-toolbar select,
.pt-orderby-select,
.woocommerce-ordering select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 2rem 0.55rem 1rem;
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pt-archive-toolbar select:focus,
.pt-orderby-select:focus,
.woocommerce-ordering select:focus {
    border-color: #004b93;
    box-shadow: 0 0 0 3px rgba(0, 75, 147, 0.15);
}

/* ---- 4. Grid de Tours en el Archivo ---- */
.pt-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pt-tour-sale-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.4);
    z-index: 2;
}

.pt-tour-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

/* Pie de la tarjeta: Precio y Acciones */
.pt-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.pt-tour-price-wrap {
    display: flex;
    flex-direction: column;
}

.pt-tour-price-from {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px;
}

.pt-tour-price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #004b93;
    line-height: 1.2;
}

.pt-tour-price-amount del {
    color: #94a3b8;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-right: 4px;
}

.pt-tour-price-amount ins {
    text-decoration: none;
    color: #e11d48;
    font-weight: 800;
}

.pt-tour-price-consult {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #004b93;
}

.pt-tour-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pt-btn-itinerary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    background: #004b93;
    color: #ffffff !important;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 75, 147, 0.25);
}

.pt-btn-itinerary:hover {
    background: #00366b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 75, 147, 0.35);
}

.pt-btn-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
}

.pt-btn-wa-icon:hover {
    background: #1ebc59;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

/* ---- 5. Paginación de Tours ---- */
.pt-archive-pagination,
.woocommerce-pagination {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.pt-archive-pagination ul,
.woocommerce-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pt-archive-pagination li,
.woocommerce-pagination li {
    display: inline-block;
}

.pt-archive-pagination a,
.pt-archive-pagination span.current,
.woocommerce-pagination a,
.woocommerce-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
}

.pt-archive-pagination a:hover,
.woocommerce-pagination a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #004b93;
}

.pt-archive-pagination span.current,
.woocommerce-pagination span.current {
    background: #004b93;
    border-color: #004b93;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 75, 147, 0.3);
}

/* ---- 6. Estado Vacío ---- */
.pt-no-tours-found {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    max-width: 640px;
    margin: 2rem auto;
}

.pt-no-tours-icon {
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.pt-no-tours-found h3 {
    font-family: var(--pt-font-heading);
    font-size: 1.5rem;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.pt-no-tours-found p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.pt-no-tours-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---- 7. Sección de Confianza y Beneficios ---- */
.pt-archive-trust-section {
    background: #ffffff;
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
}

.pt-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pt-trust-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pt-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.pt-trust-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(0, 75, 147, 0.08);
    color: #004b93;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pt-trust-card:hover .pt-trust-icon {
    background: #004b93;
    color: #ffffff;
}

.pt-trust-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.pt-trust-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ---- 8. Banner CTA Personalizado ---- */
.pt-archive-custom-cta {
    background: linear-gradient(135deg, #032349 0%, #004b93 100%);
    color: #ffffff;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.pt-archive-custom-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pt-cta-text h3 {
    font-family: var(--pt-font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.pt-cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 600px;
}

.pt-btn-custom-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.75rem;
    background: #25D366;
    color: #ffffff !important;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pt-btn-custom-wa:hover {
    background: #1ebc59;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* ---- 9. Responsividad de Catálogo ---- */
@media (max-width: 1100px) {
    .pt-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .pt-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pt-archive-hero {
        padding: 2.25rem 0 2.5rem;
    }

    .pt-archive-hero-features {
        gap: 0.75rem;
    }

    .pt-hero-feat-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .pt-archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pt-trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pt-archive-custom-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .pt-cta-text p {
        margin-bottom: 1.5rem;
    }
}

