/* Tarjeta Pampeana - Centro de ayuda (shared by public and authenticated). */

.tp-help {
    --tp-help-gap: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--tp-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.tp-help *,
.tp-help *::before,
.tp-help *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------- hero */

.tp-help__hero {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--tp-radius-lg);
    background: var(--tp-color-primary-strong);
    color: #fff;
    box-shadow: var(--tp-shadow-md);
}

.tp-help__eyebrow {
    margin: 0 0 .5rem;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tp-help__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 3.4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.tp-help__lead {
    max-width: 640px;
    margin: .65rem 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 1rem;
    line-height: 1.55;
}

.tp-help__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 640px;
    margin-top: 1.5rem;
    padding: .25rem .5rem .25rem 1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 8, 40, .22);
}

.tp-help__search-icon {
    flex: 0 0 auto;
    color: var(--tp-color-primary);
}

.tp-help__search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.9rem;
    border: 0;
    background: transparent;
    color: var(--tp-text);
    font: inherit;
    outline: none;
}

.tp-help__search input::placeholder {
    color: #8b879b;
}

.tp-help__search:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .38), 0 10px 24px rgba(16, 8, 40, .22);
}

.tp-help__clear {
    flex: 0 0 auto;
    padding: .45rem .8rem;
    border: 0;
    border-radius: 999px;
    background: var(--tp-color-primary-soft);
    color: var(--tp-color-primary-strong);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.tp-help__clear:hover {
    background: #e4d8fb;
}

.tp-help__clear:focus-visible {
    outline: 2px solid var(--tp-color-primary-strong);
    outline-offset: 2px;
}

.tp-help__summary {
    margin: .85rem 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: .86rem;
}

/* ----------------------------------------------------------------- sections */

.tp-help__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.tp-help__section-title {
    margin: 0;
    color: var(--tp-text);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.005em;
}

.tp-help__section-lead {
    margin: -.35rem 0 0;
    max-width: 720px;
    color: var(--tp-text-muted);
    font-size: .92rem;
    line-height: 1.5;
}

/* --------------------------------------------------- popular (anchor list) */

.tp-help__popular {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-help__popular a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-md);
    background: var(--tp-bg-surface);
    box-shadow: var(--tp-shadow-sm);
    color: var(--tp-text);
    font-size: .93rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.tp-help__popular a:hover {
    border-color: #d6c8f4;
    background: #faf8ff;
    color: var(--tp-color-primary-strong);
}

.tp-help__popular a:focus-visible {
    outline: 2px solid var(--tp-color-primary);
    outline-offset: 2px;
}

.tp-help__popular i {
    flex: 0 0 auto;
    color: var(--tp-color-primary);
    font-size: .82em;
}

/* -------------------------------------------------------------------- chips */

.tp-help__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tp-help__chip {
    padding: .5rem .95rem;
    border: 1px solid var(--tp-border);
    border-radius: 999px;
    background: var(--tp-bg-surface);
    color: var(--tp-text);
    font: inherit;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.tp-help__chip:hover {
    border-color: #cfc3ee;
    background: #f6f2ff;
}

.tp-help__chip.is-active {
    border-color: var(--tp-color-primary);
    background: var(--tp-color-primary);
    color: #fff;
}

.tp-help__chip:focus-visible {
    outline: 2px solid var(--tp-color-primary);
    outline-offset: 2px;
}

/* ----------------------------------------------------------------- articles */

.tp-help__group {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.tp-help__group + .tp-help__group {
    margin-top: 1.5rem;
}

.tp-help__group-title {
    margin: 0;
    color: var(--tp-text-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tp-help__articles {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    min-width: 0;
}

.tp-help-article {
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-md);
    background: var(--tp-bg-surface);
    box-shadow: var(--tp-shadow-sm);
    overflow: hidden;
    scroll-margin-top: calc(var(--tp-navbar-height) + 1rem);
}

.tp-help-article[open] {
    border-color: #d9cbf6;
}

.tp-help-article__summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 3rem 1.05rem 1.15rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    line-height: 1.4;
}

.tp-help-article__summary::-webkit-details-marker {
    display: none;
}

.tp-help-article__summary::after {
    position: absolute;
    top: 50%;
    right: 1.2rem;
    width: .5rem;
    height: .5rem;
    border-right: 2px solid var(--tp-color-primary);
    border-bottom: 2px solid var(--tp-color-primary);
    content: '';
    transform: translateY(-65%) rotate(45deg);
    transition: transform .18s ease;
}

.tp-help-article[open] > .tp-help-article__summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.tp-help-article__summary:hover {
    background: #faf8ff;
}

.tp-help-article__summary:focus-visible {
    outline: 2px solid var(--tp-color-primary);
    outline-offset: -2px;
}

.tp-help-article__title {
    flex: 1 1 auto;
    min-width: 0;
}

.tp-help-article__body {
    padding: 0 1.15rem 1.15rem;
    color: var(--tp-text);
    font-size: .95rem;
    line-height: 1.6;
}

.tp-help-article__body > p {
    margin: 0;
}

.tp-help-article__steps {
    margin: .75rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .3rem;
}

.tp-help-article__note {
    margin-top: .75rem !important;
    padding: .65rem .85rem;
    border-left: 3px solid var(--tp-color-accent);
    border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0;
    background: #fff8ef;
    color: #6b4a1f;
    font-size: .88rem;
}

.tp-help-article__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    margin-top: .9rem;
}

.tp-help-article__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--tp-color-primary);
    font-weight: 600;
    text-decoration: none;
}

.tp-help-article__link:hover {
    color: var(--tp-color-primary-strong);
    text-decoration: underline;
}

.tp-help-article__link:focus-visible {
    outline: 2px solid var(--tp-color-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

.tp-help-article__link i {
    font-size: .78em;
}

.tp-help-article__meta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem !important;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #f4f1fa;
    color: var(--tp-text-muted);
    font-size: .78rem;
    font-weight: 600;
}

/* --------------------------------------------------------------- empty state */

.tp-help__empty {
    padding: 2rem 1.25rem;
    border: 1px dashed #d6ccec;
    border-radius: var(--tp-radius-md);
    background: var(--tp-bg-surface);
    text-align: center;
}

.tp-help__empty-title {
    margin: 0 0 .25rem !important;
    color: var(--tp-text);
    font-weight: 700;
}

.tp-help__empty p {
    margin: 0;
    color: var(--tp-text-muted);
    font-size: .92rem;
}

.tp-help__empty-action {
    margin-top: 1rem;
    padding: .55rem 1.1rem;
    border: 1px solid var(--tp-color-primary);
    border-radius: 999px;
    background: var(--tp-color-primary);
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}

.tp-help__empty-action:focus-visible {
    outline: 2px solid var(--tp-color-primary-strong);
    outline-offset: 2px;
}

/* ----------------------------------------------------------------- services */

.tp-help__services {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.tp-help__services--cards,
[data-tp-services][data-variant="cards"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.tp-help-service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.35rem;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-md);
    background: var(--tp-bg-surface);
    box-shadow: var(--tp-shadow-sm);
    color: var(--tp-text);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.tp-help-service:hover {
    border-color: #d6c8f4;
    box-shadow: var(--tp-shadow-md);
    transform: translateY(-2px);
}

.tp-help-service:focus-within {
    outline: 2px solid var(--tp-color-primary);
    outline-offset: 2px;
}

.tp-help-service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--tp-color-primary-soft);
    color: var(--tp-color-primary);
    font-size: 1.15rem;
}

.tp-help-service__title {
    margin: 0;
    color: var(--tp-text);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

.tp-help-service__text {
    margin: 0;
    color: var(--tp-text-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.tp-help-service__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: .35rem;
    color: var(--tp-color-primary);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.tp-help-service__cta i {
    font-size: .8em;
}

/* Whole card clickable while the CTA keeps link semantics. */
.tp-help-service--card .tp-help-service__cta::after {
    position: absolute;
    inset: 0;
    content: '';
}

.tp-help-service--card:hover .tp-help-service__cta {
    color: var(--tp-color-primary-strong);
}

.tp-help-service--compact {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.tp-help-service--compact .tp-help-service__icon {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
}

.tp-help-service--compact .tp-help-service__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.tp-help-service--compact .tp-help-service__text {
    font-size: .86rem;
}

.tp-help-service--compact .tp-help-service__cta {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 0;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ contact */

.tp-help__contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.tp-help-contact {
    padding: 1.35rem;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-md);
    background: var(--tp-bg-surface);
    box-shadow: var(--tp-shadow-sm);
}

.tp-help-contact__title {
    margin: 0;
    color: var(--tp-text);
    font-size: 1.05rem;
    font-weight: 700;
}

.tp-help-contact__desc {
    margin: .3rem 0 0;
    color: var(--tp-text-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.tp-help-contact__list {
    display: grid;
    gap: .65rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.tp-help-contact__list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: var(--tp-text);
    font-size: .92rem;
    line-height: 1.45;
}

.tp-help-contact__list i {
    flex: 0 0 1.1rem;
    margin-top: .18rem;
    color: var(--tp-color-primary);
    text-align: center;
}

.tp-help-contact__list a {
    color: var(--tp-color-primary);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.tp-help-contact__list a:hover {
    text-decoration: underline;
}

.tp-help-contact__list a:focus-visible {
    outline: 2px solid var(--tp-color-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 991px) {
    .tp-help-service--compact {
        flex-wrap: wrap;
    }

    .tp-help-service--compact .tp-help-service__cta {
        margin-left: 3.4rem;
    }
}

@media (max-width: 767px) {
    .tp-help {
        gap: 1.5rem;
    }

    .tp-help__hero {
        border-radius: var(--tp-radius-md);
    }

    .tp-help__search {
        border-radius: var(--tp-radius-md);
    }

    .tp-help-article__summary {
        padding-right: 2.5rem;
    }
}

@media (max-width: 480px) {
    .tp-help__chip {
        padding: .45rem .8rem;
        font-size: .82rem;
    }

    .tp-help-service--compact {
        align-items: flex-start;
    }

    .tp-help-service--compact .tp-help-service__cta {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-help * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
