/* ========================================
   CENTRO DE AYUDA - ENCUENTRAIGLESIAS.COM
   Diseño completamente alineado con el sitio
   ======================================== */

/* ========== HERO BANNER ========== */
.help-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f2f52, #1f4c84);
    overflow: hidden;
    padding: 80px 0 60px;
}

.help-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.12;
    z-index: 0;
}

.help-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.help-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.help-hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #e3eeff;
    font-weight: 500;
    margin: 0 auto 32px;
    max-width: 800px;
}

/* ========== SEARCH BOX (estilo hero) ========== */
.help-search-box {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.help-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 50px;
    padding: 14px 14px 14px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 620px;
    width: 100%;
}

.help-search input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: #223;
}

.help-search input::placeholder {
    color: #9ca3af;
}

.help-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: #d9a028;
    color: #1f2430;
    padding: 12px 24px;
    box-shadow: 0 8px 18px rgba(217, 160, 40, 0.25);
    transition: all 0.3s;
}

.help-search button:hover {
    background: #c28e1f;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(217, 160, 40, 0.35);
}

/* ========== CONTENT SECTION ========== */
.help-content-section {
    position: relative;
    padding: 80px 0;
    background: #fff;
}

.help-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== SECTION TITLES ========== */
.help-section-title {
    text-align: center;
    margin: 0 auto 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    color: #233246;
    font-weight: 800;
}

.help-section-subtitle {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
    color: #6b7b8c;
    font-size: 1.1rem;
}

/* ========== CATEGORIES GRID ========== */
.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.help-category-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.help-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #123c68, #d9a028);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.help-category-card:hover {
    transform: translateY(-8px);
    border-color: #123c68;
    box-shadow: 0 20px 40px rgba(18, 60, 104, 0.12);
}

.help-category-card:hover::before {
    transform: scaleX(1);
}

.help-category-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.help-category-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2d3d;
    margin: 0 0 12px 0;
}

.help-category-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.help-category-card:hover h2 a {
    color: #123c68;
}

.help-category-card p {
    color: #6b7b8c;
    line-height: 1.7;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.help-view-articles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d9a028;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}

.help-view-articles:hover {
    color: #123c68;
    gap: 12px;
}

/* ========== QUICK LINKS ========== */
.help-quick-links {
    background: #f8fafc;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}

.help-quick-links h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 40px 0;
    color: #233246;
}

.help-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.help-quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1f2d3d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.help-quick-link:hover {
    background: #123c68;
    border-color: #123c68;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(18, 60, 104, 0.15);
}

.help-quick-link .icon {
    font-size: 2rem;
    transition: transform 0.3s;
}

.help-quick-link:hover .icon {
    transform: scale(1.15);
}

/* ========== INTERNAL PAGES (category, article, search) ========== */
.help-internal-page {
    padding-top: 80px;
    min-height: calc(100vh - 70px);
    background: #f8fafc;
}

.help-internal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ========== BREADCRUMBS ========== */
.help-breadcrumbs {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #6b7b8c;
}

.help-breadcrumbs a {
    color: #d9a028;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.help-breadcrumbs a:hover {
    color: #123c68;
}

.help-breadcrumbs .separator {
    margin: 0 8px;
    color: #cbd5e0;
}

.help-breadcrumbs .current {
    color: #1f2d3d;
    font-weight: 600;
}

/* ========== CONTENT CARD ========== */
.help-content-card {
    background: white;
    border-radius: 18px;
    padding: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.help-content-card h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #233246;
    margin: 0 0 16px 0;
}

.help-category-description {
    font-size: 1.125rem;
    color: #6b7b8c;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ========== ARTICLES LIST ========== */
.help-articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.help-article-item {
    padding: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
    background: white;
}

.help-article-item:hover {
    border-color: #d9a028;
    box-shadow: 0 8px 20px rgba(217, 160, 40, 0.1);
    transform: translateX(4px);
}

.help-article-item h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.help-article-item h2 a {
    color: #1f2d3d;
    text-decoration: none;
    transition: color 0.3s;
}

.help-article-item h2 a:hover {
    color: #123c68;
}

.help-article-excerpt {
    color: #6b7b8c;
    line-height: 1.7;
    margin-bottom: 16px;
}

.help-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d9a028;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.help-read-more:hover {
    color: #123c68;
    gap: 10px;
}

/* ========== ARTICLE BODY ========== */
.help-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1f2d3d;
}

.help-article-body h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #233246;
    margin: 0 0 24px 0;
}

.help-article-body h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #233246;
    margin: 48px 0 20px 0;
}

.help-article-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #233246;
    margin: 32px 0 16px 0;
}

.help-article-body p {
    margin: 0 0 20px 0;
}

.help-article-body ul,
.help-article-body ol {
    margin: 20px 0;
    padding-left: 28px;
}

.help-article-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.help-article-body a {
    color: #d9a028;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.help-article-body a:hover {
    color: #123c68;
    text-decoration: underline;
}

.help-article-body strong {
    font-weight: 700;
    color: #233246;
}

.help-article-body code {
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d9a028;
}

.help-article-body pre {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

/* ========== VOTE WIDGET ========== */
.help-article-feedback {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    text-align: center;
}

.help-article-feedback p strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #233246;
    font-size: 1.2rem;
}

.help-vote-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.help-vote-btn {
    padding: 14px 32px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.help-vote-btn:hover {
    border-color: #123c68;
    background: #123c68;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 60, 104, 0.15);
}

.help-vote-btn.yes:hover {
    border-color: #d9a028;
    background: #d9a028;
    color: #1f2430;
}

.help-vote-btn .icon {
    font-size: 1.5rem;
}

.help-thanks {
    color: #d9a028;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========== SIDEBAR ========== */
.help-sidebar {
    position: sticky;
    top: 90px;
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.help-sidebar h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #233246;
    margin: 0 0 20px 0;
}

.help-sidebar-search {
    margin-bottom: 32px;
}

.help-sidebar-search form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-sidebar-search input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.help-sidebar-search input:focus {
    border-color: #d9a028;
}

.help-sidebar-search button {
    padding: 12px 20px;
    background: #d9a028;
    color: #1f2430;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.help-sidebar-search button:hover {
    background: #c28e1f;
    transform: translateY(-2px);
}

.help-sidebar-categories {
    margin-bottom: 32px;
}

.help-sidebar-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-sidebar-categories li {
    margin-bottom: 4px;
}

.help-sidebar-categories a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #1f2d3d;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.help-sidebar-categories a:hover {
    background: #f8fafc;
    color: #123c68;
    padding-left: 16px;
}

.help-sidebar-contact {
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

.help-sidebar-contact p {
    color: #6b7b8c;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.help-contact-btn {
    display: block;
    padding: 12px 20px;
    background: #123c68;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: all 0.3s;
}

.help-contact-btn:hover {
    background: #0f2f52;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 60, 104, 0.2);
}

/* ========== BUTTONS ========== */
.help-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #d9a028;
    color: #1f2430;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(217, 160, 40, 0.25);
    transition: all 0.3s;
}

.help-btn-primary:hover {
    background: #c28e1f;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(217, 160, 40, 0.35);
}

.help-btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: #f8fafc;
    color: #1f2d3d;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.help-btn-back:hover {
    background: #e2e8f0;
}

/* ========== SEARCH RESULTS ========== */
.help-results-count {
    margin-bottom: 24px;
    color: #6b7b8c;
    font-size: 1rem;
}

.help-results-count strong {
    color: #233246;
    font-weight: 700;
}

.help-no-results {
    text-align: center;
    padding: 60px 24px;
}

.help-no-results p {
    color: #6b7b8c;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .help-internal-container {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: static;
    }

    .help-categories-grid,
    .help-quick-grid {
        grid-template-columns: 1fr;
    }

    .help-content-card {
        padding: 32px 24px;
    }

    .help-hero {
        min-height: 320px;
        padding: 60px 0 40px;
    }

    .help-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .help-search {
        flex-direction: column;
        padding: 16px;
        gap: 8px;
    }

    .help-search button {
        width: 100%;
    }

    .help-vote-buttons {
        flex-direction: column;
    }
}
