/* ══════════════════════════════════════════════════
   Category Archive – Pases de Tren Regional
   ══════════════════════════════════════════════════ */

:root {
    --ca-primary: #00C2E8;
    --ca-dark: #111827;
    --ca-muted: #6b7280;
    --ca-border: #e5e7eb;
    --ca-bg: #f9fafb;
    --ca-white: #ffffff;
    --ca-radius: 20px;
}

/* ── Wrapper ── */
.ca-wrap {
    background: var(--ca-bg);
    min-height: 70vh;
    margin-top: 160px;
    padding-bottom: 60px;
}

/* ── Hero ── */
.ca-hero {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../img/banner_categoria.jpg');
}

.ca-hero::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.ca-hero-title {
    color: #fff;
    font-size: 50px;
    font-weight: 700;
    color: var(--ca-white);
    z-index: 9999;
}

.ca-hero-desc {
    font-size: 16px;
    color: var(--ca-muted);
    margin: 0;
    max-width: 640px;
    line-height: 1.6;
}

/* ── Sections ── */
.ca-section {
    padding: 36px 0 40px;
    border-top: 1px solid var(--ca-border);
}

.ca-section:first-of-type {
    border-top: none;
}

.ca-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.ca-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ca-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ca-dark);
    margin: 0px 0px 10px 0px;
}

/* ── Nav buttons ── */
.ca-nav-btns {
    display: flex;
    gap: 8px;
}

.ca-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--ca-border);
    background: var(--ca-white);
    color: var(--ca-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s, color 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
    padding: 0;
}

.ca-nav-btn:hover,
.ca-nav-btn:focus,
.ca-nav-btn:focus-visible {
    background-color: var(--ca-primary) !important;
    border-color: var(--ca-primary) !important;
    color: #fff !important;
}

.ca-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Swiper ── */
.ca-swiper .swiper-slide {
    height: auto;
}

/* ── Cards ── */
.ca-card {
    display: flex;
    flex-direction: column;
    background: var(--ca-white);
    text-decoration: none;
    height: 100%;
    margin: 0px 10px;
}

.ca-card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--ca-border);
    border-radius: var(--ca-radius) var(--ca-radius) 0 0;
}

.ca-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ca-card-no-img {
    width: 100%;
    height: 100%;
    background: var(--ca-border);
}

.ca-card-badge {
    z-index: 1;
    border-radius: 100px;
    color: #fff;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    background-color: #FF4F5E;
}

.ca-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 0px 0px 20px 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    flex: 1;
}

.ca-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--ca-dark);
    margin: 0;
    line-height: 1.35;
}

.ca-card-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--ca-muted);
    margin: 0;
}

.ca-card-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--ca-primary);
    margin: 0;
    padding-top: 8px;
}

.ca-card-price .woocommerce-Price-amount {
    color: inherit;
}

.ca-card-from {
    font-size: 16px;
    font-weight: 600;
    color: var(--ca-primary);
}

.ca-card-btn-container {
    display: flex;
    align-items: center;
    justify-content: end;
}

.ca-card-btn {
    background-color: #00C2E8;
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 7px 7px 7px 7px;
    padding: 10px 24px 10px 24px;
    text-decoration: none;
    color: #fff;
    width: fit-content;
}

.ca-card-btn:hover {
    transition: all .3s;
    background-color: #47D7F3;
    color: #fff;
}

.ca-buscador{
    margin-top: -60px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ca-wrap {
        margin-top: 100px;
    }

    .ca-hero,
    .ca-section-inner {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 640px) {

    .ca-hero,
    .ca-section-inner {
        padding-left: 10px;
        padding-right: 10px;
    }

    .ca-hero-title {
        font-size: 45px;
        text-align: center;
    }

    .ca-section-title {
        font-size: 17px;
    }

    .ca-section {
        padding: 28px 0 32px;
    }
}