/* Acordeón Casos de Éxito Ecuador — 1c96af08 */

.ace-1c96af08-wrapper {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ══════════════════════════════════════ */
/* ── Mini Menu ── */
/* ══════════════════════════════════════ */

.ace-1c96af08-mini-menu {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    z-index: 50;
}

.ace-1c96af08-mini-menu.ace-1c96af08-menu-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

.ace-1c96af08-mini-menu.ace-1c96af08-menu-stuck {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

.ace-1c96af08-mini-menu-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.ace-1c96af08-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: #F1F5F9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.ace-1c96af08-menu-btn:hover {
    background: #DBEAFE;
    color: #1E40AF;
    transform: translateY(-1px);
}

.ace-1c96af08-menu-btn:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.ace-1c96af08-menu-btn.ace-1c96af08-menu-active {
    background: #2563EB;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.ace-1c96af08-menu-btn.ace-1c96af08-menu-active .ace-1c96af08-menu-dot {
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.ace-1c96af08-menu-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94A3B8;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ace-1c96af08-menu-btn:hover .ace-1c96af08-menu-dot {
    background: #2563EB;
}

/* ══════════════════════════════════════ */
/* ── Item ── */
/* ══════════════════════════════════════ */

.ace-1c96af08-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, border-left-width 0.3s ease;
    border-left: 4px solid transparent;
    /* Ensure scroll-margin accounts for sticky elements */
    scroll-margin-top: 120px;
}

.ace-1c96af08-item + .ace-1c96af08-item {
    margin-top: 16px;
}

.ace-1c96af08-item:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    border-color: #CBD5E1;
}

.ace-1c96af08-item.ace-1c96af08-active {
    border-left-color: #2563EB;
    border-left-width: 4px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

/* ── Header ── */
.ace-1c96af08-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: background-color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ace-1c96af08-header:hover {
    background-color: #F0F7FF;
}

.ace-1c96af08-header:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: -2px;
    border-radius: 8px;
}

.ace-1c96af08-item.ace-1c96af08-active .ace-1c96af08-header {
    background-color: #F0F7FF;
}

/* ── Icon ── */
.ace-1c96af08-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    background-color: #DBEAFE;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.ace-1c96af08-item.ace-1c96af08-active .ace-1c96af08-icon-wrap {
    background-color: #BFDBFE;
    transform: scale(1.05);
}

.ace-1c96af08-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1E40AF;
    line-height: 1;
}

.ace-1c96af08-icon svg {
    width: 28px;
    height: 28px;
    fill: #1E40AF;
}

/* ── Text ── */
.ace-1c96af08-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ace-1c96af08-title {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.ace-1c96af08-item:hover .ace-1c96af08-title {
    color: #1E40AF;
}

.ace-1c96af08-item.ace-1c96af08-active .ace-1c96af08-title {
    color: #1E40AF;
}

.ace-1c96af08-desc {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}

/* ── Arrow ── */
.ace-1c96af08-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ace-1c96af08-arrow svg {
    width: 20px;
    height: 20px;
    fill: #94A3B8;
    transition: fill 0.25s ease;
}

.ace-1c96af08-item:hover .ace-1c96af08-arrow svg {
    fill: #2563EB;
}

.ace-1c96af08-item.ace-1c96af08-active .ace-1c96af08-arrow {
    transform: rotate(180deg);
}

.ace-1c96af08-item.ace-1c96af08-active .ace-1c96af08-arrow svg {
    fill: #2563EB;
}

/* ── Body ── */
.ace-1c96af08-body {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.ace-1c96af08-body[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

.ace-1c96af08-item.ace-1c96af08-active .ace-1c96af08-body {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
}

.ace-1c96af08-body-inner {
    padding: 0 28px 28px 28px;
    border-top: 1px solid #E2E8F0;
    margin-top: 0;
    padding-top: 24px;
    color: #334155;
    line-height: 1.7;
}

.ace-1c96af08-body-inner h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0 0 12px 0;
}

.ace-1c96af08-body-inner p {
    margin: 0 0 14px 0;
    font-size: 15px;
}

.ace-1c96af08-body-inner ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}

.ace-1c96af08-body-inner ul li {
    position: relative;
    padding: 6px 0 6px 16px;
    font-size: 14px;
    color: #475569;
}

.ace-1c96af08-body-inner ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #2563EB;
    border-radius: 50%;
}

/* ══════════════════════════════════════ */
/* ── Responsive ── */
/* ══════════════════════════════════════ */

@media (max-width: 767px) {
    .ace-1c96af08-mini-menu {
        padding: 10px 12px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .ace-1c96af08-mini-menu-inner {
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .ace-1c96af08-mini-menu-inner::-webkit-scrollbar {
        display: none;
    }

    .ace-1c96af08-menu-btn {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .ace-1c96af08-menu-dot {
        width: 5px;
        height: 5px;
    }

    .ace-1c96af08-header {
        padding: 18px 20px;
        gap: 14px;
    }

    .ace-1c96af08-icon-wrap {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 10px;
    }

    .ace-1c96af08-icon {
        font-size: 20px;
    }

    .ace-1c96af08-icon svg {
        width: 20px;
        height: 20px;
    }

    .ace-1c96af08-title {
        font-size: 16px;
    }

    .ace-1c96af08-desc {
        font-size: 13px;
    }

    .ace-1c96af08-body-inner {
        padding: 0 20px 20px 20px;
        padding-top: 18px;
    }

    .ace-1c96af08-item + .ace-1c96af08-item {
        margin-top: 12px;
    }

    .ace-1c96af08-item {
        scroll-margin-top: 80px;
    }
}
