/* =====================================================================
   HELP / FAQ PAGE — redesign aligned with near_me style

   Colores de marca via design-system.css (--gp-*), cargado siempre por
   base.html antes de este fichero. Los que no tienen equivalente de
   marca (rojo de los botones, tinta navy, grises, alto del header)
   quedan como literales sueltos -- no son parte del sistema de verdes.
   ===================================================================== */

.gp-help * { box-sizing: border-box; }

body.help-page header.header,
body.help-page .header {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
body.help-page main { padding-top: 76px; }

.help__hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Los tres casi-negros originales no eran una escala de elevacion
       (ver near_me.css) -- colapsan a --gp-text solido. */
    background:
        radial-gradient(ellipse at center top, var(--gp-primary-on-dark) 0%, transparent 60%),
        var(--gp-text);
    color: #fff;
    overflow: hidden;
    padding: 80px 0 64px;
}
@media (max-width: 767px) { .help__hero { min-height: 460px; padding: 56px 0 48px; } }

.help__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("/static/img/near_me_venezuela_map.aa77c4a569a8.svg");
    background-repeat: no-repeat;
    background-position: center 70%;
    background-size: min(800px, 90vw) auto;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

.help__hero-content { position: relative; z-index: 2; text-align: center; max-width: 860px; padding: 0 20px; }

.help__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gp-primary-on-dark);
    background: rgba(109, 179, 63, 0.12);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    border: 1px solid rgba(109, 179, 63, 0.3);
}

.help__h1 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #fff 0%, var(--gp-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help__sub { font-size: clamp(1rem, 2vw, 1.2rem); color: #cbd5e0; margin: 0 0 28px; line-height: 1.6; }

.help__search {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    align-items: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.help__search svg { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.7); flex-shrink: 0; }
.help__search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 15px;
    outline: none;
    padding: 10px 0;
}
.help__search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.help__search button {
    /* #e74c3c es literalmente el valor de --gp-error -- este CTA estaba
       pintado con el color de error, no con el rojo de marca. --gp-cta
       (#cd232e) da 5,42:1 con blanco, cumple sin necesitar el hover. */
    background: var(--gp-cta);
    color: #fff;
    font-weight: 700;
    font-family: 'Poppins', system-ui, sans-serif;
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
    box-shadow: 0 6px 16px rgba(205, 35, 46, 0.35);
    white-space: nowrap;
}
.help__search button:hover { background: var(--gp-cta-hover); transform: translateY(-1px); }
.help__search-hint { margin: 16px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 540px) {
    .help__search {
        flex-direction: column;
        border-radius: 20px;
        padding: 16px;
        gap: 8px;
    }
    .help__search svg { align-self: flex-start; }
    .help__search input { width: 100%; padding: 4px 0; }
    .help__search button { width: 100%; padding: 12px; }
}

.help__categories { position: relative; z-index: 3; margin-top: -60px; padding: 0 16px 48px; }
.help__categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) { .help__categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .help__categories-grid { grid-template-columns: 1fr; } }

.help__cat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 32px rgba(15, 30, 26, 0.08);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
    display: block;
}
.help__cat:hover {
    transform: translateY(-3px);
    border-color: rgba(44, 138, 62, 0.35);
    box-shadow: 0 16px 40px rgba(15, 30, 26, 0.14);
    text-decoration: none;
    color: inherit;
}
.help__cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(44, 138, 62, 0.12), rgba(44, 138, 62, 0.18));
    color: var(--gp-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.help__cat-icon svg { width: 22px; height: 22px; }
.help__cat strong {
    display: block;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 15px;
    color: var(--gp-text);
    margin-bottom: 4px;
}
.help__cat span { font-size: 13px; color: #718096; }

.help__faq {
    background: var(--gp-bg-warm);
    padding: 64px 20px 80px;
    border-top: 1px solid #e2e8f0;
}
.help__faq-inner { max-width: 860px; margin: 0 auto; }
.help__faq-header { text-align: center; margin-bottom: 40px; }
.help__faq-header h2 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--gp-text);
    margin: 0 0 10px;
}
.help__faq-header p { color: #718096; font-size: 16px; margin: 0; }

.help__faq-group { margin-bottom: 40px; }
.help__faq-group-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gp-primary-dark);
    margin: 0 0 16px;
    padding-left: 4px;
}

.help__item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.help__item:hover { border-color: rgba(44, 138, 62, 0.3); }
.help__item[open] {
    border-color: var(--gp-primary);
    box-shadow: 0 8px 24px rgba(15, 30, 26, 0.08);
}
.help__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--gp-text);
}
.help__item summary::-webkit-details-marker { display: none; }
.help__item summary::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gp-primary);
    border-bottom: 2px solid var(--gp-primary);
    transform: rotate(45deg);
    transition: transform 200ms ease;
    flex-shrink: 0;
}
.help__item[open] summary::after { transform: rotate(-135deg); }

.help__item-body { padding: 0 22px 20px; color: #2d3748; font-size: 15px; line-height: 1.65; }
.help__item-body a { color: var(--gp-primary-dark); font-weight: 600; }

.help__escalate { max-width: 860px; margin: 0 auto; padding: 56px 20px 80px; }
.help__escalate-box {
    background: linear-gradient(135deg, rgba(44, 138, 62, 0.08), rgba(44, 138, 62, 0.12));
    border: 1px solid rgba(44, 138, 62, 0.25);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
}
.help__escalate-box h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--gp-text);
    margin: 0 0 8px;
}
.help__escalate-box p { color: #718096; margin: 0 0 22px; line-height: 1.6; }
.help__escalate-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.help__btn {
    /* Mismo CTA que .help__search button, duplicado en la caja de escalar
       de esta misma pagina -- mismo bug, mismo arreglo. */
    background: var(--gp-cta);
    color: #fff;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(205, 35, 46, 0.3);
    transition: transform 180ms ease, background 180ms ease;
}
.help__btn:hover {
    background: var(--gp-cta-hover);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}
.help__btn--ghost {
    background: #fff;
    color: var(--gp-primary-dark);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 30, 26, 0.05);
}
.help__btn--ghost:hover {
    background: #fff;
    color: var(--gp-primary-dark);
    border-color: var(--gp-primary);
}
