/**
 * Comparativa / paquetes en landings (paginas-web, tienda-online).
 * Ancho = .sw-section (shell del sitio).
 */

.cw-pkg-compare-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

.cw-pkg-compare-hint i {
    color: var(--neon-blue, #00f3ff);
    font-size: 0.85rem;
}

.cw-pkg-compare-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 1.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    border-radius: 16px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.15));
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 243, 255, 0.45) rgba(255, 255, 255, 0.06);
}

.cw-pkg-compare-wrap::-webkit-scrollbar {
    height: 6px;
}

.cw-pkg-compare-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.cw-pkg-compare-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.42);
    border-radius: 999px;
}

.cw-pkg-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
    --cw-pkg-header-bg: #111b24;
    --cw-pkg-sticky-header-bg: #0e1820;
    --cw-pkg-sticky-row-bg: #0a0a0f;
}

.cw-pkg-table th,
.cw-pkg-table td {
    padding: 0.85rem 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
}

.cw-pkg-table thead th {
    background: rgba(0, 243, 255, 0.07);
    color: rgba(255, 255, 255, 0.96);
    font-weight: 700;
}

.cw-pkg-table tbody th {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    width: 32%;
}

.cw-pkg-table tbody tr:last-child th,
.cw-pkg-table tbody tr:last-child td {
    border-bottom: none;
    color: var(--matrix-green, #00ff9d);
    font-weight: 700;
}

.cw-pkg-table .fa-check {
    color: var(--matrix-green, #00ff9d);
}

.cw-pkg-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 1.15rem 0 1.85rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 243, 255, 0.16);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cw-pkg-note__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.22);
    color: var(--neon-blue, #00f3ff);
    font-size: 0.95rem;
}

.cw-pkg-note__text {
    margin: 0;
    padding-top: 0.15rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.74);
}

.cw-pkg-note__text strong {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
}

.cw-pkg-cards {
    margin-top: 0.5rem;
}

.cw-pkg-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cw-pkg-price {
    margin: 0.35rem 0 0.65rem;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--neon-blue, #00f3ff);
}

/* CTA unificado si la página no trae web-card-btn / shop-card-btn */
.cw-pkg-cards .web-card-btn,
.cw-pkg-cards .shop-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: auto;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 243, 255, 0.35);
    background: rgba(0, 243, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cw-pkg-cards .web-card-btn:hover,
.cw-pkg-cards .shop-card-btn:hover {
    background: rgba(0, 243, 255, 0.18);
    border-color: rgba(0, 255, 157, 0.45);
    transform: translateY(-1px);
}

.cw-pkg-cards .shop-card-btn--whatsapp {
    border-color: rgba(37, 211, 102, 0.45);
    background: rgba(37, 211, 102, 0.1);
}

.cw-pkg-cards .shop-card-btn--whatsapp i {
    font-size: 0.9rem;
}

.cw-pkg-cards .shop-card-btn--whatsapp:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.65);
}

@media (max-width: 900px) {
    .cw-pkg-cards--3 {
        grid-template-columns: 1fr;
    }

    .cw-pkg-note {
        margin: 1rem 0 1.5rem;
        padding: 0.9rem 1rem;
    }

    .cw-pkg-note__text {
        font-size: 0.82rem;
        line-height: 1.55;
    }
}

@media (max-width: 768px) {
    .cw-pkg-compare-hint {
        display: flex;
    }

    .sw-section:has(.cw-pkg-compare-wrap) {
        min-width: 0;
        overflow-x: visible;
    }

    .cw-pkg-compare-wrap {
        margin-bottom: 1.35rem;
        border-radius: 12px;
        isolation: isolate;
    }

    .cw-pkg-table {
        min-width: 42rem;
        font-size: 0.82rem;
        border-collapse: separate;
        border-spacing: 0;
    }

    .cw-pkg-table th,
    .cw-pkg-table td {
        padding: 0.72rem 0.85rem;
        white-space: nowrap;
    }

    .cw-pkg-table thead th:not(:first-child) {
        position: relative;
        z-index: 1;
        background-color: var(--cw-pkg-header-bg);
    }

    .cw-pkg-table thead th:first-child,
    .cw-pkg-table tbody th {
        position: sticky;
        left: 0;
        background-clip: padding-box;
        isolation: isolate;
    }

    .cw-pkg-table thead th:first-child {
        z-index: 4;
        background-color: var(--cw-pkg-sticky-header-bg);
        box-shadow: 6px 0 14px rgba(0, 0, 0, 0.42);
    }

    .cw-pkg-table tbody th {
        z-index: 3;
        background-color: var(--cw-pkg-sticky-row-bg);
        box-shadow: 6px 0 14px rgba(0, 0, 0, 0.42);
    }

    .cw-pkg-table tbody tr:last-child th {
        background-color: var(--cw-pkg-sticky-row-bg);
    }
}
