/* ===== CENTRO DE AYUDA - appticc ===== */
/* Se carga después de blog.css: reutiliza .page-header y .breadcrumb */

.help-search {
    position: relative;
    max-width: 560px;
    margin: 32px auto 0;
    padding: 0 var(--spacing-md);
}
.help-search svg {
    position: absolute;
    left: calc(var(--spacing-md) + 18px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}
.help-search input {
    width: 100%;
    font: inherit;
    font-size: var(--font-size-base);
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border-2);
    border-radius: 999px;
    padding: 15px 20px 15px 50px;
    box-shadow: 0 4px 16px rgba(26, 24, 20, 0.06);
    transition: border-color .2s, box-shadow .2s;
}
.help-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 99, 42, 0.14);
}

.help-section {
    padding: var(--spacing-2xl) 0 var(--spacing-3xl);
    background: var(--background);
}
/* styles.css da 96px de padding a todo <section> */
.help-category { padding: 0; margin-bottom: var(--spacing-2xl); }
.help-category-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: var(--spacing-md);
}
.help-category-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}
.help-category-head span {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}
.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}
@media (min-width: 640px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }

.help-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.help-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-2);
    box-shadow: 0 10px 28px rgba(26, 24, 20, 0.08);
}
.help-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.help-card-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}
.help-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.help-badge-video { color: #fff; background: var(--text-dark); }
.help-badge-soon { color: var(--text-gray); background: var(--background); border: 1px solid var(--border); }
.help-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark);
    transition: color .2s;
}
.help-card:hover .help-card-title { color: var(--primary); }
.help-card-desc {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--text-gray);
}
.help-empty {
    display: none;
    text-align: center;
    color: var(--text-gray);
    padding: var(--spacing-xl) 0;
}
.help-empty.is-visible { display: block; }

/* Caja de contacto */
.help-contact {
    display: grid;
    gap: var(--spacing-md);
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
}
@media (min-width: 760px) { .help-contact { grid-template-columns: 1fr auto; } }
.help-contact h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.help-contact p { color: var(--text-gray); line-height: 1.6; }
.help-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    padding: 11px 18px;
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
}
.help-btn:hover { transform: translateY(-2px); }
.help-btn-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.help-btn-ghost {
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border-2);
}
.help-btn-ghost:hover { border-color: var(--primary); }

/* ===== ARTÍCULO ===== */
.help-article {
    padding: 48px 0 var(--spacing-3xl);
    background: var(--background);
}
.help-article-inner { max-width: 820px; margin: 0 auto; }
.help-article-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.help-article h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.help-article-lead {
    font-size: var(--font-size-lg);
    line-height: 1.65;
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
}
.help-article-inner > h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin: var(--spacing-xl) 0 var(--spacing-sm);
}
.help-topics {
    list-style: none;
    display: grid;
    gap: 10px;
}
.help-topics li {
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
    color: var(--text-gray);
}
.help-topics li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--peach-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C44E18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* Pasos por escrito */
.help-steps ol {
    list-style: none;
    counter-reset: paso;
    display: grid;
    gap: 12px;
    margin: 0 0 var(--spacing-md);
    padding: 0;
}
.help-steps li {
    counter-increment: paso;
    position: relative;
    padding-left: 40px;
    line-height: 1.65;
    color: var(--text-gray);
}
.help-steps li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--peach-soft);
}
.help-steps strong { color: var(--text-dark); font-weight: 600; }
.help-steps a { color: var(--primary-dark); }
.help-tip {
    margin: 0 0 var(--spacing-md);
    padding: 14px 18px;
    border-left: 3px solid #D97706;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--white);
    color: var(--text-gray);
    line-height: 1.6;
    font-size: var(--font-size-sm);
}
.help-tip::before { content: "Consejo · "; font-weight: 700; color: #B45309; }

.help-related-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: var(--spacing-md);
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: border-color .2s;
}
.help-related-guide:hover { border-color: var(--primary); }
.help-related-guide span { color: var(--text-light); font-weight: 400; font-size: var(--font-size-sm); }

/* Vídeo (mismo patrón que en el blog: se carga al pulsar play) */
.yt-video { margin: 0 0 var(--spacing-md); }
.yt-facade { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #111827; }
.yt-facade button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-facade .yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(17,24,39,.85); box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s, background .2s; }
.yt-facade .yt-play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.yt-facade button:hover .yt-play, .yt-facade button:focus-visible .yt-play { transform: scale(1.08); background: #D97706; }
.yt-facade button:focus-visible { outline: 3px solid #D97706; outline-offset: 3px; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-caption { margin-top: .6rem; font-size: .875rem; color: #6B7280; line-height: 1.5; }

.help-video-soon {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1A1814 0%, #3A2A20 100%);
    color: #F5EFE8;
    margin-bottom: var(--spacing-md);
}
.help-video-soon strong { font-size: 1.15rem; }
.help-video-soon p { color: #C9BFB3; font-size: var(--font-size-sm); max-width: 380px; line-height: 1.6; }
.help-video-soon a { color: #FFBF73; font-weight: 600; font-size: var(--font-size-sm); }

/* Anterior / siguiente */
.help-pager {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}
@media (min-width: 640px) { .help-pager { grid-template-columns: 1fr 1fr; } }
.help-pager a {
    display: block;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    transition: border-color .2s;
}
.help-pager a:hover { border-color: var(--primary); }
.help-pager a span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
}
.help-pager .help-pager-next { text-align: right; }
@media (min-width: 640px) { .help-pager .help-pager-next:only-child { grid-column: 2; } }

.help-article .help-contact { margin-top: var(--spacing-xl); }
