@layer components {
    /* =============================================================
     * Help / FAQ — CMS page /faqs
     * Hero foto + search Alpine filtra acordeón
     * ============================================================= */
    .elg-help { color: rgb(4 29 64); }

    /* Página a ancho completo, sin el padding lateral global de #maincontent
     * ni el max-width de .columns (mismo patrón que la home en 01-base.css). */
    .cms-faqs #maincontent {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none !important;
        margin-block: 0 !important;
    }
    .cms-faqs .columns {
        max-width: none !important;
        padding-inline: 0 !important;
        margin-inline: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    .cms-faqs .column.main {
        max-width: none !important;
        width: 100% !important;
    }
    .cms-faqs .breadcrumbs { display: none; }

    .elg-help-hero {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 1.4;
        max-height: 480px;
        overflow: hidden;
        background: #1a1a1a;
    }
    @media (max-width: 768px) {
        .elg-help-hero { aspect-ratio: 3 / 4; max-height: none; }
    }
    .elg-help-hero-img {
        position: absolute; inset: 0;
        width: 100%; height: 100%;
        object-fit: cover; object-position: center;
    }
    .elg-help-hero-overlay {
        position: absolute; inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
    }
    .elg-help-hero-caption {
        position: absolute;
        left: 0; right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 0 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        color: var(--color-on-primary);
        text-align: center;
    }
    .elg-help-hero-title {
        font-size: 1.25rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        margin: 0;
        text-transform: none;
    }
    .elg-help-hero-search {
        width: min(654px, 90%);
        height: 48px;
        display: flex;
        align-items: center;
        gap: 28px;
        background: transparent;
        border: 1px solid #fff;
        border-radius: 0;
        padding: 5px 21px;
        color: #fff;
    }
    .elg-help-hero-search-input {
        flex: 1;
        border: 0;
        background: transparent;
        padding: 0;
        font-size: 0.9375rem;
        outline: none;
        box-shadow: none;
        color: #fff;
    }
    .elg-help-hero-search-input::placeholder { color: rgb(255 255 255 / 0.85); }
    @media (max-width: 768px) {
        .elg-help-hero-caption {
            top: auto;
            bottom: 1.5rem;
            transform: none;
            padding: 0 1.25rem;
            align-items: flex-start;
            text-align: left;
            gap: 1rem;
        }
        .elg-help-hero-title {
            font-size: 1.75rem;
            text-transform: uppercase;
        }
        .elg-help-hero-search { width: 100%; }
    }

    .elg-help-personal {
        text-align: center;
        margin: 3.5rem auto 0;
        max-width: 720px;
        padding: 0 1.25rem;
    }
    .elg-help-personal-title {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin: 0 0 0.5rem 0;
    }
    .elg-help-personal-sub {
        font-size: 0.875rem;
        color: rgb(4 29 64 / 0.75);
        margin: 0 0 2rem 0;
    }
    .elg-help-personal-sub a {
        color: rgb(4 29 64);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .elg-help-personal-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
    @media (max-width: 640px) {
        .elg-help-personal-actions { grid-template-columns: 1fr; }
    }
    .elg-help-action {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1rem;
        border: 1px solid rgb(4 29 64);
        color: rgb(4 29 64);
        font-size: 0.75rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease;
        background: transparent;
        text-align: center;
    }
    .elg-help-action:hover {
        background: rgb(4 29 64);
        color: var(--color-on-primary);
    }

    .elg-help-faqs {
        max-width: 1200px;
        margin: 4rem auto;
        padding: 0 2rem;
    }
    @media (max-width: 768px) {
        .elg-help-faqs { padding: 0 1.25rem; }
    }
    .elg-help-faqs-title {
        font-size: clamp(1.25rem, 2vw, 1.625rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin: 0 0 1.5rem 0;
        color: rgb(4 29 64);
    }
    .elg-help-faqs-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .elg-help-faq {
        border-bottom: 1px solid rgb(4 29 64 / 0.12);
    }
    .elg-help-faq-btn {
        width: 100%;
        background: transparent;
        border: 0;
        padding: 1.25rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        text-align: left;
        cursor: pointer;
        font-size: 0.875rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        font-weight: 500;
        color: rgb(4 29 64);
    }
    .elg-help-faq-btn:hover { color: rgb(4 29 64 / 0.7); }
    @media (max-width: 768px) {
        .elg-help-faq-btn {
            padding: 0.75rem 0;
            font-size: 0.6875rem;
        }
    }
    .elg-help-faq-chev {
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }
    .elg-help-faq-chev.rotate-180 { transform: rotate(180deg); }

    .elg-help-faq-body {
        padding: 0 0 1.5rem 0;
        font-size: 0.9375rem;
        line-height: 1.65;
        color: rgb(4 29 64 / 0.85);
        max-width: 56rem;
    }
    .elg-help-faq-body p { margin: 0 0 1rem 0; }
    .elg-help-faq-body p:last-child { margin-bottom: 0; }
    .elg-help-faq-body a {
        color: rgb(4 29 64);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .elg-help-faq-body ol {
        margin: 0.75rem 0 1rem 1.25rem;
        padding: 0;
    }
    .elg-help-faq-body ol li {
        margin-bottom: 0.5rem;
    }

    .elg-help-faqs-empty {
        margin: 2rem 0 0;
        padding: 1.5rem;
        background: rgb(4 29 64 / 0.04);
        text-align: center;
        font-size: 0.9375rem;
        color: rgb(4 29 64 / 0.75);
    }

    [x-cloak] { display: none !important; }
}
